Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 109.1 kB / 21.18 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001453/0.001453, allocations: 217.3 kB / 24.49 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 230.5 MB / 258.1 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 63.91 kB / 379 MB, free: 2.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.254, allocations: 53.4 MB / 432.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01588/0.2699, allocations: 14.08 MB / 446.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02839/0.2983, allocations: 20.38 MB / 466.9 MB, free: 4.145 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002697/0.301, allocations: 189.8 kB / 467.1 MB, free: 3.957 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003617/0.3046, allocations: 1.13 MB / 468.2 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008791/0.3134, allocations: 2.316 MB / 470.5 MB, free: 500 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00711/0.3205, allocations: 1.445 MB / 472 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01253/0.333, allocations: 6.486 MB / 478.5 MB, free: 8.535 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008897/0.3339, allocations: 249 kB / 478.7 MB, free: 8.258 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002103/0.336, allocations: 1.104 MB / 479.8 MB, free: 7.148 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001988/0.338, allocations: 1.052 MB / 480.9 MB, free: 6.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004042/0.3384, allocations: 68 kB / 480.9 MB, free: 6.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005717/0.3441, allocations: 1.487 MB / 482.4 MB, free: 4.535 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006478/0.3448, allocations: 309.7 kB / 482.7 MB, free: 4.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002371/0.3472, allocations: 1.3 MB / 484 MB, free: 2.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007743/0.3549, allocations: 3.651 MB / 487.7 MB, free: 15.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3549, allocations: 0 / 487.7 MB, free: 15.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3549, allocations: 0 / 487.7 MB, free: 15.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001415/0.3551, allocations: 3.938 kB / 487.7 MB, free: 15.25 MB / 398.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.006915/0.362, allocations: 3.547 MB / 491.2 MB, free: 11.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.362, allocations: 12.03 kB / 491.2 MB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000723/0.3627, allocations: 393.6 kB / 491.6 MB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004759/0.3675, allocations: 2.355 MB / 494 MB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.184e-05/0.3676, allocations: 29 kB / 494 MB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002379/0.3678, allocations: 55.94 kB / 494 MB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.3693, allocations: 0.7031 MB / 494.7 MB, free: 8.004 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.3693, allocations: 0 / 494.7 MB, free: 8.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.3694, allocations: 24 kB / 494.8 MB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.875e-05/0.3694, allocations: 19.98 kB / 494.8 MB, free: 7.961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.3711, allocations: 0.7928 MB / 495.6 MB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006133/0.3772, allocations: 2.828 MB / 498.4 MB, free: 4.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.3785, allocations: 0.5636 MB / 499 MB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.3795, allocations: 0.5809 MB / 499.6 MB, free: 3.133 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02743/0.4069, allocations: 13.76 MB / 0.5013 GB, free: 4.984 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007963/0.4077, allocations: 361.6 kB / 0.5016 GB, free: 4.621 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.316e-06/0.4077, allocations: 0 / 0.5016 GB, free: 4.621 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003524/0.4113, allocations: 1.322 MB / 0.5029 GB, free: 3.289 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.883e-05/0.4113, allocations: 67.33 kB / 0.503 GB, free: 3.211 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004692/0.416, allocations: 2.796 MB / 0.5057 GB, free: 404 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.4161, allocations: 41.69 kB / 0.5058 GB, free: 356 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001397/0.4175, allocations: 1.392 MB / 0.5071 GB, free: 14.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002486/0.4178, allocations: 174.6 kB / 0.5073 GB, free: 14.78 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003495/0.4181, allocations: 218.4 kB / 0.5075 GB, free: 14.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.4183, allocations: 341.9 kB / 0.5078 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006258/0.4189, allocations: 241.8 kB / 0.508 GB, free: 13.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008922/0.4198, allocations: 0.5966 MB / 0.5086 GB, free: 13.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.4214, allocations: 0.8724 MB / 0.5095 GB, free: 12.17 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.4214, allocations: 4 kB / 0.5095 GB, free: 12.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002595/0.424, allocations: 1.278 MB / 0.5107 GB, free: 10.88 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.424, allocations: 12 kB / 0.5107 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001268/0.4241, allocations: 84.12 kB / 0.5108 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006097/0.4248, allocations: 284 kB / 0.5111 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005878/0.4253, allocations: 171.7 kB / 0.5113 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.4264, allocations: 0.8832 MB / 0.5121 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/0.4276, allocations: 115.2 kB / 0.5122 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.4278, allocations: 64 kB / 0.5123 GB, free: 9.262 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.0008805/0.4286, allocations: 434.1 kB / 0.5127 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006892/0.4293, allocations: 373.7 kB / 0.5131 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003153/0.4325, allocations: 1.259 MB / 0.5143 GB, free: 7.188 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.4325, allocations: 4 kB / 0.5143 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4325, allocations: 0 / 0.5143 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.4325, allocations: 7.922 kB / 0.5143 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004601/0.4371, allocations: 2.157 MB / 0.5164 GB, free: 4.945 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001073/0.4372, allocations: 68 kB / 0.5165 GB, free: 4.879 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.4375, allocations: 59.88 kB / 0.5165 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005169/0.4381, allocations: 264.9 kB / 0.5168 GB, free: 4.559 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.046e-05/0.4381, allocations: 43.92 kB / 0.5168 GB, free: 4.516 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009941/0.4391, allocations: 0.8599 MB / 0.5177 GB, free: 3.633 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.4391, allocations: 0 / 0.5177 GB, free: 3.633 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.4413, allocations: 1.146 MB / 0.5188 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.4424, allocations: 411.2 kB / 0.5192 GB, free: 2.039 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004535/0.4429, allocations: 8 kB / 0.5192 GB, free: 2.031 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008081/0.4437, allocations: 35.95 kB / 0.5192 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.4438, allocations: 59.94 kB / 0.5193 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.771e-05/0.4439, allocations: 39.98 kB / 0.5193 GB, free: 1.898 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003154/0.4471, allocations: 1.82 MB / 0.5211 GB, free: 76 kB / 430.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4471, allocations: 7.938 kB / 0.5211 GB, free: 68 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001652/0.4487, allocations: 0.562 MB / 0.5216 GB, free: 15.5 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.001351/0.4501, allocations: 0.7797 MB / 0.5224 GB, free: 14.71 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.452, allocations: 0.8105 MB / 0.5232 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.452, allocations: 0 / 0.5232 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009666/0.453, allocations: 476.2 kB / 0.5237 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003013/0.456, allocations: 0.6013 MB / 0.5242 GB, free: 12.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007343/0.4634, allocations: 4.047 MB / 0.5282 GB, free: 8.684 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001608/0.465, allocations: 1.6 MB / 0.5298 GB, free: 7.055 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004294/0.4654, allocations: 167.4 kB / 0.5299 GB, free: 6.891 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4654, allocations: 0 / 0.5299 GB, free: 6.891 MB / 446.1 MB Notification: Performance of Templates: time 0.2992/0.7646, allocations: 48.12 MB / 0.5769 GB, free: 70.59 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.300657828804106]