Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001711/0.001711, allocations: 115.1 kB / 18.45 MB, free: 4.566 MB / 14.72 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.002327/0.002327, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 254.8 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 43.94 kB / 374.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1024, allocations: 53.34 MB / 427.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01566/0.118, allocations: 14.06 MB / 441.5 MB, free: 6.199 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2155/0.3336, allocations: 20.35 MB / 461.9 MB, free: 7.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002382/0.3359, allocations: 191 kB / 462.1 MB, free: 7.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002983/0.3389, allocations: 1.128 MB / 463.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008136/0.3471, allocations: 2.293 MB / 465.5 MB, free: 5.754 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005941/0.353, allocations: 1.429 MB / 466.9 MB, free: 5.199 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01158/0.3646, allocations: 6.443 MB / 473.4 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008428/0.3654, allocations: 258.2 kB / 473.6 MB, free: 2.754 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002272/0.3677, allocations: 1.104 MB / 474.7 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001759/0.3695, allocations: 1.051 MB / 475.8 MB, free: 1.809 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002414/0.3697, allocations: 69.78 kB / 475.8 MB, free: 1.809 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005361/0.3751, allocations: 1.472 MB / 477.3 MB, free: 1.367 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004502/0.3755, allocations: 312.9 kB / 477.6 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002135/0.3776, allocations: 1.309 MB / 478.9 MB, free: 332 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009013/0.3867, allocations: 3.654 MB / 482.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3867, allocations: 0 / 482.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3867, allocations: 1.094 kB / 482.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001251/0.3868, allocations: 0 / 482.6 MB, free: 14.52 MB / 382.1 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.007935/0.3947, allocations: 3.632 MB / 486.2 MB, free: 11.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3948, allocations: 8.719 kB / 486.2 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008484/0.3956, allocations: 389.8 kB / 486.6 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00431/0.3999, allocations: 2.527 MB / 489.1 MB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.4, allocations: 36.39 kB / 489.2 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.4001, allocations: 55.91 kB / 489.2 MB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.4016, allocations: 0.7058 MB / 489.9 MB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.4016, allocations: 1.938 kB / 489.9 MB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.305e-05/0.4017, allocations: 15.66 kB / 490 MB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.72e-05/0.4017, allocations: 22.86 kB / 490 MB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.4033, allocations: 0.7849 MB / 490.8 MB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006182/0.4095, allocations: 2.874 MB / 493.6 MB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.4108, allocations: 0.6431 MB / 494.3 MB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009926/0.4118, allocations: 0.5737 MB / 494.9 MB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03373/0.4455, allocations: 30.73 MB / 0.5133 GB, free: 3.973 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008352/0.4464, allocations: 358.3 kB / 0.5136 GB, free: 3.613 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.086e-06/0.4464, allocations: 3.938 kB / 0.5136 GB, free: 3.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003759/0.4501, allocations: 1.397 MB / 0.515 GB, free: 2.184 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.4502, allocations: 59.39 kB / 0.515 GB, free: 2.113 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004085/0.4543, allocations: 2.796 MB / 0.5178 GB, free: 15.29 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.4544, allocations: 37.7 kB / 0.5178 GB, free: 15.25 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001293/0.4557, allocations: 1.4 MB / 0.5192 GB, free: 13.85 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002092/0.4559, allocations: 174.6 kB / 0.5193 GB, free: 13.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003342/0.4562, allocations: 222.4 kB / 0.5195 GB, free: 13.45 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4564, allocations: 341.9 kB / 0.5199 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00067/0.4571, allocations: 237.9 kB / 0.5201 GB, free: 12.88 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009455/0.458, allocations: 0.5852 MB / 0.5207 GB, free: 12.13 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.4596, allocations: 0.8802 MB / 0.5215 GB, free: 11.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.4596, allocations: 5.75 kB / 0.5215 GB, free: 11.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002928/0.4626, allocations: 1.293 MB / 0.5228 GB, free: 9.77 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.4626, allocations: 12 kB / 0.5228 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001299/0.4627, allocations: 80 kB / 0.5229 GB, free: 9.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006298/0.4634, allocations: 273.3 kB / 0.5231 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006237/0.464, allocations: 171.7 kB / 0.5233 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.4651, allocations: 0.8782 MB / 0.5242 GB, free: 8.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.4668, allocations: 119.2 kB / 0.5243 GB, free: 8.223 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.467, allocations: 60 kB / 0.5243 GB, free: 8.164 MB / 430.1 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.0008726/0.4678, allocations: 417.6 kB / 0.5247 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006258/0.4685, allocations: 381.7 kB / 0.5251 GB, free: 7.371 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003096/0.4716, allocations: 1.265 MB / 0.5263 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.4716, allocations: 8 kB / 0.5263 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4716, allocations: 0 / 0.5263 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.4716, allocations: 3.984 kB / 0.5263 GB, free: 6.09 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00445/0.476, allocations: 2.185 MB / 0.5285 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001029/0.4761, allocations: 68 kB / 0.5285 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003423/0.4765, allocations: 64.62 kB / 0.5286 GB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005275/0.477, allocations: 264.8 kB / 0.5289 GB, free: 3.43 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.48e-05/0.4771, allocations: 39.98 kB / 0.5289 GB, free: 3.391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.4781, allocations: 0.8635 MB / 0.5297 GB, free: 2.504 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.4781, allocations: 0 / 0.5297 GB, free: 2.504 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.4805, allocations: 1.14 MB / 0.5309 GB, free: 1.328 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.4816, allocations: 482.5 kB / 0.5313 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003654/0.482, allocations: 11.98 kB / 0.5313 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007145/0.4827, allocations: 39.91 kB / 0.5314 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.4828, allocations: 55.95 kB / 0.5314 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.03e-05/0.4829, allocations: 39.98 kB / 0.5315 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002777/0.4857, allocations: 1.82 MB / 0.5332 GB, free: 14.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4857, allocations: 0 / 0.5332 GB, free: 14.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001867/0.4876, allocations: 0.5735 MB / 0.5338 GB, free: 14.29 MB / 446.1 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.001372/0.489, allocations: 0.7794 MB / 0.5346 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001973/0.4909, allocations: 0.8071 MB / 0.5353 GB, free: 12.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4909, allocations: 7.938 kB / 0.5353 GB, free: 12.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009757/0.4919, allocations: 476.1 kB / 0.5358 GB, free: 12.19 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003323/0.4952, allocations: 0.5923 MB / 0.5364 GB, free: 11.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006725/0.502, allocations: 4.057 MB / 0.5403 GB, free: 7.484 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/0.5032, allocations: 1.596 MB / 0.5419 GB, free: 5.859 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003803/0.5035, allocations: 179.4 kB / 0.5421 GB, free: 5.684 MB / 446.1 MB Notification: Performance of SimCode: time 1.784e-06/0.5035, allocations: 0 / 0.5421 GB, free: 5.684 MB / 446.1 MB Notification: Performance of Templates: time 0.06875/0.5723, allocations: 48.11 MB / 0.5891 GB, free: 5.691 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.528204577014549]