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.0009747/0.0009747, allocations: 77.88 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001022/0.001022, allocations: 170.9 kB / 24.82 MB, free: 8.938 MB / 18.57 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 0.9154/0.9154, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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 1.333e-06/1.333e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.405e-05/1.538e-05, allocations: 6.25 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008469/0.008485, allocations: 13.06 MB / 286.4 MB, free: 4.195 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1169/0.1254, allocations: 19.02 MB / 305.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.1266, allocations: 191.2 kB / 305.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001654/0.1282, allocations: 1.037 MB / 306.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004072/0.1323, allocations: 2.382 MB / 309.1 MB, free: 9.012 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002687/0.135, allocations: 1.44 MB / 310.5 MB, free: 8.137 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004753/0.1398, allocations: 6.761 MB / 317.3 MB, free: 4.883 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003502/0.1401, allocations: 244 kB / 317.5 MB, free: 4.715 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001977/0.1421, allocations: 2.998 MB / 320.5 MB, free: 1.855 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005202/0.1426, allocations: 0.7863 MB / 321.3 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.1427, allocations: 68 kB / 321.4 MB, free: 1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001822/0.1445, allocations: 1.202 MB / 322.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.1447, allocations: 317.7 kB / 322.9 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005475/0.1452, allocations: 0.7087 MB / 323.6 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002401/0.1476, allocations: 2.712 MB / 326.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1477, allocations: 4 kB / 326.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1477, allocations: 0 / 326.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.127e-05/0.1477, allocations: 4 kB / 326.3 MB, free: 12.04 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.003339/0.151, allocations: 3.777 MB / 330.1 MB, free: 8.207 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1511, allocations: 8.031 kB / 330.1 MB, free: 8.199 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002999/0.1514, allocations: 433.5 kB / 330.5 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.1535, allocations: 2.615 MB / 333.1 MB, free: 5.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.1535, allocations: 37 kB / 333.2 MB, free: 5.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.328e-05/0.1536, allocations: 51.94 kB / 333.2 MB, free: 4.969 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005058/0.1541, allocations: 468.7 kB / 333.7 MB, free: 4.504 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1541, allocations: 0.8125 kB / 333.7 MB, free: 4.504 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/0.1541, allocations: 23.94 kB / 333.7 MB, free: 4.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.1541, allocations: 19.98 kB / 333.7 MB, free: 4.461 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.1545, allocations: 415.7 kB / 334.1 MB, free: 4.059 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002363/0.1569, allocations: 2.175 MB / 336.3 MB, free: 1.844 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.1573, allocations: 317.8 kB / 336.6 MB, free: 1.523 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000465/0.1577, allocations: 387.9 kB / 337 MB, free: 1.141 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01449/0.1722, allocations: 15.26 MB / 352.2 MB, free: 1.527 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.1725, allocations: 251.8 kB / 352.5 MB, free: 1.266 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/0.1725, allocations: 0 / 352.5 MB, free: 1.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001191/0.1737, allocations: 1.018 MB / 353.5 MB, free: 240 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.1737, allocations: 67.39 kB / 353.6 MB, free: 160 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.1755, allocations: 2.961 MB / 356.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.1755, allocations: 37.7 kB / 356.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008539/0.1764, allocations: 1.605 MB / 358.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.332e-05/0.1765, allocations: 174.5 kB / 358.3 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004086/0.1769, allocations: 232 kB / 358.6 MB, free: 11.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.177, allocations: 0.5159 MB / 359.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.1771, allocations: 104.3 kB / 359.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.1775, allocations: 0.6118 MB / 359.8 MB, free: 9.621 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005142/0.178, allocations: 0.7988 MB / 360.6 MB, free: 8.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.178, allocations: 4 kB / 360.6 MB, free: 8.586 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008618/0.1788, allocations: 1.051 MB / 361.7 MB, free: 7.523 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.1788, allocations: 8 kB / 361.7 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.093e-05/0.1789, allocations: 80 kB / 361.7 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002938/0.1792, allocations: 263.1 kB / 362 MB, free: 7.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.1795, allocations: 163.7 kB / 362.2 MB, free: 7.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005583/0.18, allocations: 1.065 MB / 363.2 MB, free: 5.922 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004016/0.1804, allocations: 107.2 kB / 363.3 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.717e-05/0.1805, allocations: 60 kB / 363.4 MB, free: 5.758 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.0002708/0.1808, allocations: 212.9 kB / 363.6 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002209/0.181, allocations: 397.6 kB / 364 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.1822, allocations: 1.044 MB / 365 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.1822, allocations: 4 kB / 365 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.1822, allocations: 0 / 365 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1822, allocations: 3.984 kB / 365 MB, free: 4.082 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.1843, allocations: 2.181 MB / 367.2 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.016e-05/0.1843, allocations: 68.12 kB / 367.3 MB, free: 1.758 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.1845, allocations: 59.95 kB / 367.3 MB, free: 1.699 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002437/0.1847, allocations: 235.5 kB / 367.6 MB, free: 1.465 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.1847, allocations: 38.94 kB / 367.6 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005311/0.1853, allocations: 1.052 MB / 368.7 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1853, allocations: 0 / 368.7 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007168/0.186, allocations: 0.9962 MB / 369.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003701/0.1864, allocations: 427.1 kB / 370.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.1865, allocations: 20.03 kB / 370.1 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000303/0.1868, allocations: 15.98 kB / 370.1 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.419e-05/0.1869, allocations: 67.92 kB / 370.2 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.804e-05/0.1869, allocations: 32 kB / 370.2 MB, free: 14.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009493/0.1879, allocations: 1.537 MB / 371.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1879, allocations: 0 / 371.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007904/0.1887, allocations: 0.5696 MB / 372.3 MB, free: 12.64 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.001086/0.1898, allocations: 0.9297 MB / 373.2 MB, free: 11.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006376/0.1904, allocations: 0.6154 MB / 373.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1904, allocations: 0 / 373.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000315/0.1907, allocations: 395.6 kB / 374.2 MB, free: 10.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.192, allocations: 0.6193 MB / 374.9 MB, free: 10.01 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.195, allocations: 3.762 MB / 378.6 MB, free: 6.168 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.1952, allocations: 361.8 kB / 379 MB, free: 5.793 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005697/0.1958, allocations: 386.9 kB / 379.4 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008506/0.1967, allocations: 0.6229 MB / 380 MB, free: 4.785 MB / 330.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1967, allocations: 4 kB / 380 MB, free: 4.781 MB / 330.7 MB Notification: Performance of Templates: time 0.041/0.2376, allocations: 37.52 MB / 417.5 MB, free: 15.77 MB / 378.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] 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","",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.2125621419399977]