Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009108/0.0009108, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001479/0.00239, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001382/0.002439, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8748/0.8748, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1447/1.019, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 222 MB, free: 76 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/1.988e-05, allocations: 2.312 kB / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008124/0.008144, allocations: 12.5 MB / 234.5 MB, free: 3.512 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0163/0.02445, allocations: 18.53 MB / 253 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.02575, allocations: 197.8 kB / 253.2 MB, free: 0.707 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.02743, allocations: 1.049 MB / 254.3 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004195/0.03163, allocations: 2.304 MB / 256.6 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002818/0.03445, allocations: 1.352 MB / 257.9 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006581/0.04103, allocations: 6.365 MB / 264.3 MB, free: 5.586 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006263/0.04166, allocations: 273.7 kB / 264.5 MB, free: 5.273 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003319/0.04498, allocations: 3.168 MB / 267.7 MB, free: 2.016 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001059/0.04603, allocations: 0.7631 MB / 268.5 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.04621, allocations: 72 kB / 268.5 MB, free: 1.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002666/0.04887, allocations: 1.124 MB / 269.7 MB, free: 56 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002067/0.04908, allocations: 250.1 kB / 269.9 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000797/0.04988, allocations: 0.6503 MB / 270.6 MB, free: 15.15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00383/0.05371, allocations: 2.564 MB / 273.1 MB, free: 12.58 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.699e-05/0.05372, allocations: 4 kB / 273.1 MB, free: 12.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.05373, allocations: 0 / 273.1 MB, free: 12.57 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.199e-05/0.05377, allocations: 0 / 273.1 MB, free: 12.57 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.003688/0.05746, allocations: 4.17 MB / 277.3 MB, free: 8.336 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.05749, allocations: 12.02 kB / 277.3 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002467/0.05774, allocations: 267.7 kB / 277.6 MB, free: 8.062 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/0.06002, allocations: 2.118 MB / 279.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.06004, allocations: 40.98 kB / 279.7 MB, free: 5.789 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.707e-05/0.06012, allocations: 43.95 kB / 279.8 MB, free: 5.746 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005121/0.06063, allocations: 451.5 kB / 280.2 MB, free: 5.289 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.06064, allocations: 0 / 280.2 MB, free: 5.289 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.79e-05/0.06068, allocations: 23.94 kB / 280.2 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.0607, allocations: 23.98 kB / 280.3 MB, free: 5.242 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003003/0.061, allocations: 207.8 kB / 280.5 MB, free: 5.039 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.06313, allocations: 1.433 MB / 281.9 MB, free: 3.578 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.06348, allocations: 321.2 kB / 282.2 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002874/0.06377, allocations: 323.2 kB / 282.5 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1384/0.2021, allocations: 22.94 MB / 305.5 MB, free: 34.83 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.2024, allocations: 213.9 kB / 305.7 MB, free: 34.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.624e-06/0.2024, allocations: 0 / 305.7 MB, free: 34.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009471/0.2034, allocations: 0.6558 MB / 306.3 MB, free: 34.23 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.2034, allocations: 59.41 kB / 306.4 MB, free: 34.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.2047, allocations: 2.533 MB / 308.9 MB, free: 32.62 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.2047, allocations: 35.53 kB / 309 MB, free: 32.58 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002857/0.205, allocations: 0.7164 MB / 309.7 MB, free: 32.25 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.014e-05/0.2051, allocations: 173.9 kB / 309.8 MB, free: 32.16 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.2052, allocations: 183.7 kB / 310 MB, free: 32.01 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.192e-05/0.2052, allocations: 342.2 kB / 310.4 MB, free: 31.7 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.426e-05/0.2053, allocations: 72.69 kB / 310.4 MB, free: 31.64 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.2055, allocations: 452.6 kB / 310.9 MB, free: 31.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.2058, allocations: 0.6436 MB / 311.5 MB, free: 30.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.2058, allocations: 0 / 311.5 MB, free: 30.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006309/0.2065, allocations: 0.7069 MB / 312.2 MB, free: 29.85 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2065, allocations: 12 kB / 312.2 MB, free: 29.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.047e-05/0.2065, allocations: 20 kB / 312.3 MB, free: 29.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000253/0.2068, allocations: 157.5 kB / 312.4 MB, free: 29.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002782/0.2071, allocations: 190.8 kB / 312.6 MB, free: 29.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003807/0.2075, allocations: 0.6542 MB / 313.3 MB, free: 28.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004855/0.2079, allocations: 104.3 kB / 313.4 MB, free: 28.74 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.965e-05/0.208, allocations: 36 kB / 313.4 MB, free: 28.7 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002507/0.2083, allocations: 166.8 kB / 313.6 MB, free: 28.54 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.2084, allocations: 235.7 kB / 313.8 MB, free: 28.31 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009677/0.2094, allocations: 0.8042 MB / 314.6 MB, free: 27.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.2094, allocations: 12 kB / 314.6 MB, free: 27.51 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.2094, allocations: 0 / 314.6 MB, free: 27.51 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.2094, allocations: 5.016 kB / 314.6 MB, free: 27.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.2107, allocations: 1.597 MB / 316.2 MB, free: 26.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-05/0.2107, allocations: 12 kB / 316.2 MB, free: 26.24 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/0.2109, allocations: 63.8 kB / 316.3 MB, free: 26.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003242/0.2112, allocations: 369.4 kB / 316.6 MB, free: 25.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002146/0.2114, allocations: 143.9 kB / 316.8 MB, free: 25.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.2114, allocations: 11.98 kB / 316.8 MB, free: 25.67 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003356/0.2118, allocations: 0.6226 MB / 317.4 MB, free: 25.03 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.2118, allocations: 1.25 kB / 317.4 MB, free: 25.03 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005028/0.2123, allocations: 0.606 MB / 318 MB, free: 24.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.2124, allocations: 8 kB / 318 MB, free: 24.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002963/0.2127, allocations: 15.98 kB / 318 MB, free: 24.39 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.163e-05/0.2128, allocations: 47.92 kB / 318.1 MB, free: 24.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.087e-05/0.2128, allocations: 19.92 kB / 318.1 MB, free: 24.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006233/0.2134, allocations: 1.341 MB / 319.4 MB, free: 23.14 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2134, allocations: 3.844 kB / 319.5 MB, free: 23.14 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007721/0.2142, allocations: 0.5813 MB / 320 MB, free: 22.56 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008341/0.2151, allocations: 0.9211 MB / 321 MB, free: 21.78 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005388/0.2156, allocations: 0.4953 MB / 321.4 MB, free: 21.31 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.779e-05/0.2156, allocations: 51.89 kB / 321.5 MB, free: 21.27 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002741/0.2159, allocations: 292.5 kB / 321.8 MB, free: 20.96 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.2177, allocations: 5.795 MB / 327.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005643/0.2233, allocations: 3.796 MB / 331.4 MB, free: 10.22 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001715/0.2235, allocations: 370.8 kB / 331.7 MB, free: 9.84 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005811/0.2241, allocations: 386.9 kB / 332.1 MB, free: 9.457 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005246/0.2246, allocations: 0.5533 MB / 332.7 MB, free: 8.898 MB / 282.7 MB Notification: Performance of SimCode: time 1.462e-06/0.2246, allocations: 4 kB / 332.7 MB, free: 8.895 MB / 282.7 MB Notification: Performance of Templates: time 0.04418/0.2688, allocations: 38.35 MB / 371 MB, free: 2.629 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.515401872806251]