Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008689/0.0008689, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008443/0.0008443, allocations: 142.1 kB / 24.89 MB, free: 8.777 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9224/0.9224, allocations: 173.4 MB / 201.5 MB, free: 8.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 268.4 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.218e-05/1.36e-05, allocations: 9.688 kB / 268.5 MB, free: 6.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008217/0.008231, allocations: 13.06 MB / 281.5 MB, free: 8.926 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1091/0.1173, allocations: 19.37 MB / 300.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.1185, allocations: 191.5 kB / 301.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001756/0.1202, allocations: 1.067 MB / 302.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004053/0.1243, allocations: 2.406 MB / 304.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002851/0.1271, allocations: 1.452 MB / 306 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005477/0.1326, allocations: 6.636 MB / 312.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004425/0.1331, allocations: 282.5 kB / 312.9 MB, free: 9.531 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002333/0.1354, allocations: 2.905 MB / 315.8 MB, free: 8.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000733/0.1361, allocations: 0.7897 MB / 316.6 MB, free: 7.707 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.1362, allocations: 68 kB / 316.7 MB, free: 7.641 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.1381, allocations: 1.193 MB / 317.9 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.1383, allocations: 314.3 kB / 318.2 MB, free: 6.184 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004703/0.1387, allocations: 0.715 MB / 318.9 MB, free: 5.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001825/0.1406, allocations: 2.712 MB / 321.6 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1406, allocations: 0 / 321.6 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1406, allocations: 4 kB / 321.6 MB, free: 3.031 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.532e-05/0.1406, allocations: 0 / 321.6 MB, free: 3.031 MB / 266.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.002233/0.1428, allocations: 3.473 MB / 325.1 MB, free: 15.7 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.1429, allocations: 12.92 kB / 325.1 MB, free: 15.69 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002835/0.1431, allocations: 271.7 kB / 325.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.1451, allocations: 2.094 MB / 327.4 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.1451, allocations: 40.94 kB / 327.5 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-05/0.1452, allocations: 50.66 kB / 327.5 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004822/0.1457, allocations: 447.5 kB / 328 MB, free: 12.76 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1457, allocations: 0 / 328 MB, free: 12.76 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.1458, allocations: 19.94 kB / 328 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.1458, allocations: 23.92 kB / 328 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003228/0.1461, allocations: 211.8 kB / 328.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.1481, allocations: 1.437 MB / 329.7 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.1484, allocations: 322.5 kB / 330 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000274/0.1486, allocations: 328 kB / 330.3 MB, free: 10.47 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02304/0.1717, allocations: 22.9 MB / 353.2 MB, free: 2.797 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.1719, allocations: 217.3 kB / 353.4 MB, free: 2.574 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.134e-06/0.1719, allocations: 0 / 353.4 MB, free: 2.574 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009695/0.1729, allocations: 0.6597 MB / 354.1 MB, free: 1.906 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.1729, allocations: 59.41 kB / 354.1 MB, free: 1.836 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.1746, allocations: 2.512 MB / 356.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.1746, allocations: 33.7 kB / 356.7 MB, free: 15.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000356/0.175, allocations: 0.7151 MB / 357.4 MB, free: 14.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.419e-05/0.1751, allocations: 182.5 kB / 357.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.1752, allocations: 190.2 kB / 357.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.572e-05/0.1753, allocations: 341.9 kB / 358.1 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.789e-05/0.1754, allocations: 69.97 kB / 358.1 MB, free: 13.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002391/0.1757, allocations: 443 kB / 358.6 MB, free: 13.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004215/0.1761, allocations: 0.6037 MB / 359.2 MB, free: 12.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1761, allocations: 4 kB / 359.2 MB, free: 12.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.000667/0.1768, allocations: 0.712 MB / 359.9 MB, free: 11.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1768, allocations: 12.25 kB / 359.9 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.635e-05/0.1768, allocations: 27.98 kB / 359.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/0.1771, allocations: 136.8 kB / 360.1 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.1773, allocations: 167.7 kB / 360.2 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004039/0.1777, allocations: 0.6498 MB / 360.9 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.1782, allocations: 99.34 kB / 361 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.937e-05/0.1782, allocations: 36 kB / 361 MB, free: 10.5 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.0002542/0.1785, allocations: 189.5 kB / 361.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.1786, allocations: 231.7 kB / 361.4 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.1797, allocations: 0.7978 MB / 362.2 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1797, allocations: 4 kB / 362.2 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.1797, allocations: 0 / 362.2 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.1797, allocations: 7.922 kB / 362.2 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001762/0.1814, allocations: 1.583 MB / 363.8 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.373e-05/0.1815, allocations: 15.92 kB / 363.8 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.1816, allocations: 51.91 kB / 363.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002106/0.1818, allocations: 131.9 kB / 364 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.1818, allocations: 12 kB / 364 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003552/0.1822, allocations: 0.6342 MB / 364.7 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1822, allocations: 4.031 kB / 364.7 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005055/0.1827, allocations: 0.5969 MB / 365.3 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003588/0.183, allocations: 369.4 kB / 365.6 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.1832, allocations: 8.875 kB / 365.6 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003035/0.1835, allocations: 31.91 kB / 365.7 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.23e-05/0.1836, allocations: 35.94 kB / 365.7 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.1836, allocations: 19.98 kB / 365.7 MB, free: 5.652 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008314/0.1844, allocations: 1.336 MB / 367 MB, free: 4.305 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1844, allocations: 0 / 367 MB, free: 4.305 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007503/0.1852, allocations: 0.5696 MB / 367.6 MB, free: 3.734 MB / 314.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.0008643/0.1861, allocations: 0.9169 MB / 368.5 MB, free: 2.812 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005312/0.1866, allocations: 496.6 kB / 369 MB, free: 2.305 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-05/0.1866, allocations: 36.5 kB / 369.1 MB, free: 2.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002676/0.1869, allocations: 275.8 kB / 369.3 MB, free: 1.977 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.1881, allocations: 0.6019 MB / 369.9 MB, free: 1.379 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003285/0.1914, allocations: 3.761 MB / 373.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.1916, allocations: 365.8 kB / 374 MB, free: 13.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005917/0.1922, allocations: 382.9 kB / 374.4 MB, free: 12.79 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006017/0.1928, allocations: 0.5577 MB / 375 MB, free: 12.22 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1928, allocations: 3.938 kB / 375 MB, free: 12.21 MB / 330.7 MB Notification: Performance of Templates: time 0.0498/0.2426, allocations: 37.23 MB / 412.2 MB, free: 7.477 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.300918444059789]