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.000969/0.000969, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.0009316/0.0009316, allocations: 167.7 kB / 24.99 MB, free: 8.219 MB / 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 0.9134/0.9134, allocations: 177 MB / 205.2 MB, free: 5.574 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.032e-06/1.032e-06, allocations: 0 / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.117e-06/1.015e-05, allocations: 2.312 kB / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.00835/0.00836, allocations: 13.36 MB / 286.3 MB, free: 4.332 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1147/0.123, allocations: 19.36 MB / 305.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009045/0.1239, allocations: 186.9 kB / 305.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.1255, allocations: 1.03 MB / 306.9 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003543/0.1291, allocations: 2.381 MB / 309.3 MB, free: 8.703 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00254/0.1316, allocations: 1.439 MB / 310.7 MB, free: 7.832 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004934/0.1366, allocations: 6.649 MB / 317.4 MB, free: 4.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003475/0.1369, allocations: 236 kB / 317.6 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009648/0.1379, allocations: 1.507 MB / 319.1 MB, free: 3.281 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005145/0.1384, allocations: 0.7551 MB / 319.9 MB, free: 2.523 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.184e-05/0.1385, allocations: 68 kB / 319.9 MB, free: 2.457 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.1399, allocations: 1.206 MB / 321.1 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.1401, allocations: 313.7 kB / 321.5 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004303/0.1405, allocations: 0.7009 MB / 322.2 MB, free: 244 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002129/0.1426, allocations: 2.712 MB / 324.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1426, allocations: 8 kB / 324.9 MB, free: 13.51 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1426, allocations: 0 / 324.9 MB, free: 13.51 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.15e-05/0.1427, allocations: 0 / 324.9 MB, free: 13.51 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.002784/0.1454, allocations: 3.722 MB / 328.6 MB, free: 9.727 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.1455, allocations: 11.98 kB / 328.6 MB, free: 9.715 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003139/0.1458, allocations: 425.5 kB / 329 MB, free: 9.297 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/0.1481, allocations: 2.693 MB / 331.7 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.1481, allocations: 37 kB / 331.8 MB, free: 6.465 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-05/0.1482, allocations: 51.95 kB / 331.8 MB, free: 6.414 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006463/0.1489, allocations: 0.5124 MB / 332.3 MB, free: 5.891 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1489, allocations: 3.938 kB / 332.3 MB, free: 5.887 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001547/0.149, allocations: 27.94 kB / 332.3 MB, free: 5.859 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.149, allocations: 19.98 kB / 332.4 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005449/0.1496, allocations: 470.3 kB / 332.8 MB, free: 5.387 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002797/0.1524, allocations: 2.668 MB / 335.5 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004248/0.1528, allocations: 353.8 kB / 335.8 MB, free: 2.316 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004146/0.1532, allocations: 430 kB / 336.3 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01658/0.1698, allocations: 15.21 MB / 351.5 MB, free: 2.293 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003841/0.1702, allocations: 275.7 kB / 351.7 MB, free: 2.012 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.276e-06/0.1702, allocations: 4 kB / 351.7 MB, free: 2.008 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.00184/0.172, allocations: 1.057 MB / 352.8 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.1721, allocations: 59.41 kB / 352.9 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002846/0.1749, allocations: 2.994 MB / 355.9 MB, free: 13.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.175, allocations: 37.69 kB / 355.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/0.1761, allocations: 1.562 MB / 357.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.1762, allocations: 174.6 kB / 357.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/0.1765, allocations: 228 kB / 357.8 MB, free: 11.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1766, allocations: 0.5082 MB / 358.4 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.1769, allocations: 129.9 kB / 358.5 MB, free: 11.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005567/0.1774, allocations: 0.6353 MB / 359.1 MB, free: 10.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008053/0.1782, allocations: 0.8379 MB / 360 MB, free: 9.227 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.1782, allocations: 7.938 kB / 360 MB, free: 9.219 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001372/0.1796, allocations: 1.101 MB / 361.1 MB, free: 8.105 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.1796, allocations: 13 kB / 361.1 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.619e-05/0.1797, allocations: 76 kB / 361.2 MB, free: 8.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004372/0.1802, allocations: 267.5 kB / 361.4 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000407/0.1806, allocations: 163.7 kB / 361.6 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000788/0.1813, allocations: 1.089 MB / 362.7 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006326/0.182, allocations: 99.28 kB / 362.8 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.998e-05/0.1821, allocations: 64.56 kB / 362.8 MB, free: 6.312 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.0003442/0.1824, allocations: 216.3 kB / 363 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/0.1827, allocations: 389.6 kB / 363.4 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001776/0.1845, allocations: 1.089 MB / 364.5 MB, free: 4.613 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.1845, allocations: 4 kB / 364.5 MB, free: 4.609 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1845, allocations: 0 / 364.5 MB, free: 4.609 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.1845, allocations: 3.984 kB / 364.5 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/0.1872, allocations: 2.148 MB / 366.7 MB, free: 2.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.473e-05/0.1873, allocations: 68 kB / 366.7 MB, free: 2.312 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.1875, allocations: 55.89 kB / 366.8 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003558/0.1878, allocations: 247.1 kB / 367 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-05/0.1879, allocations: 36.67 kB / 367.1 MB, free: 1.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007143/0.1886, allocations: 1.061 MB / 368.1 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1886, allocations: 4 kB / 368.1 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.1897, allocations: 1.031 MB / 369.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004805/0.1902, allocations: 431.2 kB / 369.6 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00023/0.1904, allocations: 8 kB / 369.6 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000476/0.1909, allocations: 23.61 kB / 369.6 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.191, allocations: 67.86 kB / 369.7 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.755e-05/0.1911, allocations: 39.98 kB / 369.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001738/0.1928, allocations: 1.635 MB / 371.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1928, allocations: 0 / 371.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001052/0.1939, allocations: 0.5775 MB / 371.9 MB, free: 13.03 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.000941/0.1948, allocations: 0.8305 MB / 372.8 MB, free: 12.19 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.1959, allocations: 0.6514 MB / 373.4 MB, free: 11.51 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1959, allocations: 4 kB / 373.4 MB, free: 11.51 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000482/0.1964, allocations: 406.4 kB / 373.8 MB, free: 11.08 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001822/0.1982, allocations: 0.6178 MB / 374.4 MB, free: 10.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/0.2021, allocations: 3.778 MB / 378.2 MB, free: 6.617 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/0.2024, allocations: 361.8 kB / 378.6 MB, free: 6.242 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007409/0.2031, allocations: 390.9 kB / 378.9 MB, free: 5.855 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.2033, allocations: 156.5 kB / 379.1 MB, free: 5.703 MB / 330.7 MB Notification: Performance of SimCode: time 7.81e-07/0.2033, allocations: 0 / 379.1 MB, free: 5.703 MB / 330.7 MB Notification: Performance of Templates: time 0.03801/0.2413, allocations: 32.61 MB / 411.7 MB, free: 5.551 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.3083576050121337]