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.001002/0.001002, allocations: 87.67 kB / 21.19 MB, free: 3.371 MB / 18.57 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.001462/0.001462, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 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.09/1.09, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] 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 1.463e-06/1.463e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.576e-05/1.722e-05, allocations: 5.266 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009251/0.009268, allocations: 13.41 MB / 286.3 MB, free: 4.008 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1407/0.15, allocations: 19.38 MB / 305.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.1514, allocations: 191.6 kB / 305.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001945/0.1533, allocations: 1.039 MB / 306.9 MB, free: 9.934 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005141/0.1585, allocations: 2.382 MB / 309.3 MB, free: 8.594 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003104/0.1616, allocations: 1.434 MB / 310.7 MB, free: 7.695 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00578/0.1674, allocations: 6.766 MB / 317.5 MB, free: 4.438 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004675/0.1678, allocations: 246 kB / 317.7 MB, free: 4.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.1693, allocations: 1.5 MB / 319.2 MB, free: 2.938 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000655/0.1699, allocations: 0.759 MB / 320 MB, free: 2.176 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.17, allocations: 68 kB / 320.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.1719, allocations: 1.206 MB / 321.3 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.1721, allocations: 313.7 kB / 321.6 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005259/0.1726, allocations: 0.7009 MB / 322.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.1754, allocations: 2.708 MB / 325 MB, free: 13.17 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1754, allocations: 4 kB / 325 MB, free: 13.17 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1754, allocations: 0 / 325 MB, free: 13.17 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.384e-05/0.1755, allocations: 0 / 325 MB, free: 13.17 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.003726/0.1792, allocations: 3.731 MB / 328.7 MB, free: 9.379 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.1793, allocations: 11.98 kB / 328.7 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003811/0.1797, allocations: 430.5 kB / 329.1 MB, free: 8.945 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002427/0.1821, allocations: 2.693 MB / 331.8 MB, free: 6.152 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.1821, allocations: 36.98 kB / 331.9 MB, free: 6.113 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.06e-05/0.1822, allocations: 59.94 kB / 331.9 MB, free: 6.055 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006831/0.1829, allocations: 0.5124 MB / 332.4 MB, free: 5.531 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1829, allocations: 0 / 332.4 MB, free: 5.531 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.714e-05/0.1829, allocations: 19.94 kB / 332.5 MB, free: 5.512 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.183, allocations: 23.98 kB / 332.5 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005727/0.1835, allocations: 466.4 kB / 332.9 MB, free: 5.039 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003511/0.1871, allocations: 2.671 MB / 335.6 MB, free: 2.324 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004852/0.1875, allocations: 351.2 kB / 336 MB, free: 1.973 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004493/0.188, allocations: 434 kB / 336.4 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01497/0.203, allocations: 15.21 MB / 351.6 MB, free: 1.945 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003223/0.2033, allocations: 271.8 kB / 351.9 MB, free: 1.668 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.853e-06/0.2033, allocations: 0 / 351.9 MB, free: 1.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001422/0.2047, allocations: 1.057 MB / 352.9 MB, free: 0.5938 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.2048, allocations: 63.41 kB / 353 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/0.207, allocations: 2.995 MB / 356 MB, free: 13.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.207, allocations: 37.7 kB / 356 MB, free: 13.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009217/0.208, allocations: 1.57 MB / 357.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.2081, allocations: 170.6 kB / 357.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.2083, allocations: 232 kB / 358 MB, free: 11.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2084, allocations: 0.5043 MB / 358.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.2086, allocations: 129.9 kB / 358.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004103/0.209, allocations: 0.6315 MB / 359.2 MB, free: 9.953 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006285/0.2096, allocations: 0.8345 MB / 360.1 MB, free: 8.887 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.2096, allocations: 7.938 kB / 360.1 MB, free: 8.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001066/0.2107, allocations: 1.106 MB / 361.2 MB, free: 7.762 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.2107, allocations: 12.62 kB / 361.2 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.251e-05/0.2108, allocations: 79.98 kB / 361.3 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003743/0.2111, allocations: 263.8 kB / 361.5 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.2114, allocations: 166.5 kB / 361.7 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006456/0.2121, allocations: 1.089 MB / 362.8 MB, free: 6.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000414/0.2125, allocations: 99.34 kB / 362.9 MB, free: 6.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.957e-05/0.2126, allocations: 60 kB / 362.9 MB, free: 5.973 MB / 314.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.0002789/0.2129, allocations: 228.2 kB / 363.2 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002347/0.2131, allocations: 385.7 kB / 363.5 MB, free: 5.359 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.2144, allocations: 1.081 MB / 364.6 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2144, allocations: 4 kB / 364.6 MB, free: 4.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2144, allocations: 0 / 364.6 MB, free: 4.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.2144, allocations: 7.969 kB / 364.6 MB, free: 4.262 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002403/0.2168, allocations: 2.143 MB / 366.8 MB, free: 2.039 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-05/0.2169, allocations: 68 kB / 366.8 MB, free: 1.973 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.2171, allocations: 56.08 kB / 366.9 MB, free: 1.918 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000372/0.2175, allocations: 250.9 kB / 367.1 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.2175, allocations: 43.86 kB / 367.2 MB, free: 1.629 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007498/0.2183, allocations: 1.058 MB / 368.2 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2183, allocations: 4 kB / 368.2 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.2194, allocations: 1.027 MB / 369.3 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005569/0.22, allocations: 423.3 kB / 369.7 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002096/0.2202, allocations: 12 kB / 369.7 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000473/0.2206, allocations: 28 kB / 369.7 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.2208, allocations: 63.81 kB / 369.8 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-05/0.2208, allocations: 39.98 kB / 369.8 MB, free: 14.9 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001838/0.2227, allocations: 1.643 MB / 371.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2227, allocations: 0 / 371.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001094/0.2238, allocations: 0.5658 MB / 372 MB, free: 12.69 MB / 330.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.001041/0.2248, allocations: 0.8381 MB / 372.9 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009789/0.2258, allocations: 0.6509 MB / 373.5 MB, free: 11.17 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2258, allocations: 4 kB / 373.5 MB, free: 11.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00055/0.2263, allocations: 406.2 kB / 373.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.2282, allocations: 0.6153 MB / 374.5 MB, free: 10.13 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004187/0.2323, allocations: 3.774 MB / 378.3 MB, free: 6.277 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002886/0.2326, allocations: 361.8 kB / 378.7 MB, free: 5.902 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001019/0.2336, allocations: 390.9 kB / 379 MB, free: 5.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002043/0.2338, allocations: 160.5 kB / 379.2 MB, free: 5.359 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.2339, allocations: 0 / 379.2 MB, free: 5.359 MB / 330.7 MB Notification: Performance of Templates: time 0.04392/0.2778, allocations: 32.61 MB / 411.8 MB, free: 5.207 MB / 362.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.641342872288078]