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.00158/0.00158, allocations: 124.5 kB / 17.79 MB, free: 5.246 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.001655/0.001655, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.515/1.515, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.00281/0.00281, allocations: 51.91 kB / 373.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1243, allocations: 53.34 MB / 426.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.2043/0.3286, allocations: 14.06 MB / 440.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02853/0.3571, allocations: 20.36 MB / 461.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004222/0.3614, allocations: 192.2 kB / 461.4 MB, free: 4.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004011/0.3654, allocations: 1.128 MB / 462.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009909/0.3753, allocations: 2.299 MB / 464.8 MB, free: 2.312 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006645/0.3819, allocations: 1.43 MB / 466.3 MB, free: 1.566 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.3939, allocations: 6.444 MB / 472.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007362/0.3947, allocations: 256 kB / 473 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002304/0.397, allocations: 1.105 MB / 474.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002232/0.3992, allocations: 1.057 MB / 475.1 MB, free: 13.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002511/0.3995, allocations: 68.97 kB / 475.2 MB, free: 13.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005085/0.4045, allocations: 1.477 MB / 476.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004487/0.405, allocations: 310.5 kB / 477 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002044/0.407, allocations: 1.301 MB / 478.3 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006838/0.4139, allocations: 3.653 MB / 481.9 MB, free: 9.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.4139, allocations: 0 / 481.9 MB, free: 9.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4139, allocations: 0 / 481.9 MB, free: 9.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.484e-05/0.414, allocations: 0 / 481.9 MB, free: 9.191 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.006367/0.4203, allocations: 3.624 MB / 485.5 MB, free: 5.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.4204, allocations: 15.97 kB / 485.6 MB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005108/0.4209, allocations: 389.6 kB / 485.9 MB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004178/0.4251, allocations: 2.535 MB / 488.5 MB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.068e-05/0.4251, allocations: 37 kB / 488.5 MB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.4253, allocations: 51.95 kB / 488.6 MB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.4268, allocations: 0.6953 MB / 489.3 MB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.4268, allocations: 0 / 489.3 MB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.779e-05/0.4269, allocations: 20 kB / 489.3 MB, free: 1.734 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.56e-05/0.4269, allocations: 19.98 kB / 489.3 MB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.4286, allocations: 0.7851 MB / 490.1 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005621/0.4343, allocations: 2.888 MB / 493 MB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.4357, allocations: 0.6313 MB / 493.6 MB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.4368, allocations: 0.5806 MB / 494.2 MB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03542/0.4722, allocations: 30.72 MB / 0.5126 GB, free: 9.762 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008997/0.4731, allocations: 369.5 kB / 0.513 GB, free: 9.387 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.855e-06/0.4731, allocations: 0 / 0.513 GB, free: 9.387 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003708/0.4768, allocations: 1.393 MB / 0.5143 GB, free: 7.965 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.4769, allocations: 59.34 kB / 0.5144 GB, free: 7.895 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004792/0.4817, allocations: 2.799 MB / 0.5171 GB, free: 5.074 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002304/0.4819, allocations: 41.69 kB / 0.5171 GB, free: 5.027 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/0.4835, allocations: 1.396 MB / 0.5185 GB, free: 3.625 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003248/0.4838, allocations: 170.6 kB / 0.5187 GB, free: 3.457 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003974/0.4842, allocations: 226.4 kB / 0.5189 GB, free: 3.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.4844, allocations: 333.9 kB / 0.5192 GB, free: 2.898 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007015/0.4851, allocations: 241.9 kB / 0.5194 GB, free: 2.664 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009558/0.486, allocations: 0.5936 MB / 0.52 GB, free: 1.902 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.4876, allocations: 0.8802 MB / 0.5209 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.4876, allocations: 0 / 0.5209 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002712/0.4903, allocations: 1.285 MB / 0.5221 GB, free: 15.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.4904, allocations: 8 kB / 0.5221 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.4905, allocations: 80 kB / 0.5222 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006248/0.4911, allocations: 277.2 kB / 0.5225 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006258/0.4917, allocations: 174.5 kB / 0.5226 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001116/0.4928, allocations: 0.8786 MB / 0.5235 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.4942, allocations: 123.2 kB / 0.5236 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.4943, allocations: 63.94 kB / 0.5237 GB, free: 13.94 MB / 446.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.0007871/0.4951, allocations: 429.5 kB / 0.5241 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004863/0.4956, allocations: 381.7 kB / 0.5245 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003271/0.4989, allocations: 1.253 MB / 0.5257 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.4989, allocations: 4 kB / 0.5257 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.4989, allocations: 4 kB / 0.5257 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4989, allocations: 7.922 kB / 0.5257 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004317/0.5032, allocations: 2.185 MB / 0.5278 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001106/0.5033, allocations: 71.98 kB / 0.5279 GB, free: 9.523 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003491/0.5037, allocations: 55.95 kB / 0.5279 GB, free: 9.469 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005656/0.5042, allocations: 272.8 kB / 0.5282 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.588e-05/0.5043, allocations: 32 kB / 0.5282 GB, free: 9.168 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.5054, allocations: 0.8559 MB / 0.5291 GB, free: 8.289 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.5054, allocations: 12.03 kB / 0.5291 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002371/0.5077, allocations: 1.135 MB / 0.5302 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/0.5089, allocations: 486.4 kB / 0.5307 GB, free: 6.609 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003379/0.5093, allocations: 8 kB / 0.5307 GB, free: 6.602 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007478/0.51, allocations: 35.97 kB / 0.5307 GB, free: 6.566 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.5102, allocations: 63.88 kB / 0.5308 GB, free: 6.504 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.5103, allocations: 40 kB / 0.5308 GB, free: 6.465 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00299/0.5133, allocations: 1.82 MB / 0.5326 GB, free: 4.641 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5133, allocations: 0 / 0.5326 GB, free: 4.641 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001983/0.5153, allocations: 0.5774 MB / 0.5331 GB, free: 4.062 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.001412/0.5167, allocations: 0.7772 MB / 0.5339 GB, free: 3.277 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002074/0.5187, allocations: 0.8071 MB / 0.5347 GB, free: 2.449 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.5187, allocations: 128 / 0.5347 GB, free: 2.449 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.5199, allocations: 476 kB / 0.5351 GB, free: 1.961 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/0.523, allocations: 0.5907 MB / 0.5357 GB, free: 1.375 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006721/0.5297, allocations: 3.993 MB / 0.5396 GB, free: 13.33 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.531, allocations: 1.604 MB / 0.5412 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001137/0.5322, allocations: 383 kB / 0.5415 GB, free: 11.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.5324, allocations: 163.4 kB / 0.5417 GB, free: 11.16 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5324, allocations: 0 / 0.5417 GB, free: 11.16 MB / 462.1 MB Notification: Performance of Templates: time 0.06265/0.5951, allocations: 33.67 MB / 0.5746 GB, free: 9.785 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/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: 6.0647378750145435]