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.0007422/0.0007422, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001067/0.00181, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006381/0.0006381, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009361/0.001574, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8052/0.8052, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1346/0.9398, allocations: 52.48 MB / 238.5 MB, free: 7.633 MB / 234.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.603e-06/1.603e-06, allocations: 3.938 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.051e-05/1.211e-05, allocations: 6.656 kB / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.00779/0.007802, allocations: 13.13 MB / 252.9 MB, free: 9.195 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01544/0.02324, allocations: 19.48 MB / 272.4 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009998/0.02424, allocations: 193.8 kB / 272.5 MB, free: 5.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.0257, allocations: 1.072 MB / 273.6 MB, free: 4.398 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00309/0.02879, allocations: 2.336 MB / 276 MB, free: 2.043 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002044/0.03083, allocations: 1.391 MB / 277.3 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004718/0.03555, allocations: 6.502 MB / 283.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003309/0.03588, allocations: 281.6 kB / 284.1 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002595/0.03848, allocations: 3.285 MB / 287.4 MB, free: 6.418 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006404/0.03912, allocations: 0.7903 MB / 288.2 MB, free: 5.625 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.03922, allocations: 68 kB / 288.3 MB, free: 5.559 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001763/0.04098, allocations: 1.256 MB / 289.5 MB, free: 4.301 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.04113, allocations: 253.9 kB / 289.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004531/0.04158, allocations: 0.6425 MB / 290.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002053/0.04363, allocations: 2.541 MB / 292.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.091e-05/0.04364, allocations: 0 / 292.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.04365, allocations: 0 / 292.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.938e-05/0.04367, allocations: 0 / 292.9 MB, free: 0.8555 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.002552/0.04622, allocations: 4.147 MB / 297.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.796e-05/0.04625, allocations: 8.031 kB / 297.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.04645, allocations: 271.7 kB / 297.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/0.0484, allocations: 2.102 MB / 299.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.04843, allocations: 37 kB / 299.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.892e-05/0.04849, allocations: 51.92 kB / 299.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004619/0.04896, allocations: 447.5 kB / 300 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.04897, allocations: 0 / 300 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.049, allocations: 23.98 kB / 300 MB, free: 9.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.04902, allocations: 19.98 kB / 300 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002966/0.04931, allocations: 211.8 kB / 300.2 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.05101, allocations: 1.445 MB / 301.7 MB, free: 7.895 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002813/0.05129, allocations: 317 kB / 302 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002577/0.05154, allocations: 335.7 kB / 302.3 MB, free: 7.246 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1168/0.1683, allocations: 22.81 MB / 325.1 MB, free: 61.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003276/0.1686, allocations: 214.7 kB / 325.3 MB, free: 61.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.777e-06/0.1686, allocations: 0.5 kB / 325.3 MB, free: 61.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001158/0.1698, allocations: 0.6561 MB / 326 MB, free: 61.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.1698, allocations: 60.86 kB / 326.1 MB, free: 61.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/0.1714, allocations: 2.513 MB / 328.6 MB, free: 60.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.1715, allocations: 31.95 kB / 328.6 MB, free: 60.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/0.1718, allocations: 0.7283 MB / 329.3 MB, free: 60.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.456e-05/0.1719, allocations: 166.2 kB / 329.5 MB, free: 60.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/0.172, allocations: 187.9 kB / 329.7 MB, free: 60.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.861e-05/0.1721, allocations: 345.2 kB / 330 MB, free: 60.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-05/0.1722, allocations: 72.02 kB / 330.1 MB, free: 60.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.1723, allocations: 440.8 kB / 330.5 MB, free: 59.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.1727, allocations: 0.6464 MB / 331.2 MB, free: 59.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.1727, allocations: 2.75 kB / 331.2 MB, free: 59.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006336/0.1733, allocations: 0.7101 MB / 331.9 MB, free: 59.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1733, allocations: 10.11 kB / 331.9 MB, free: 59.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-05/0.1734, allocations: 28.61 kB / 331.9 MB, free: 59.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000234/0.1736, allocations: 145.9 kB / 332.1 MB, free: 59.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.1739, allocations: 189.3 kB / 332.2 MB, free: 59.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003197/0.1742, allocations: 0.6476 MB / 332.9 MB, free: 58.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004329/0.1747, allocations: 98.5 kB / 333 MB, free: 58.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.235e-05/0.1747, allocations: 39.84 kB / 333 MB, free: 58.91 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.0002196/0.1749, allocations: 173.4 kB / 333.2 MB, free: 58.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.1751, allocations: 239.6 kB / 333.4 MB, free: 58.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009049/0.176, allocations: 0.8024 MB / 334.2 MB, free: 58.69 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.176, allocations: 4.406 kB / 334.2 MB, free: 58.69 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.176, allocations: 3.219 kB / 334.2 MB, free: 58.69 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.176, allocations: 0 / 334.2 MB, free: 58.69 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.1771, allocations: 1.592 MB / 335.8 MB, free: 58.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.581e-05/0.1772, allocations: 9.562 kB / 335.8 MB, free: 58.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.1773, allocations: 65.67 kB / 335.9 MB, free: 58.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002659/0.1776, allocations: 380.6 kB / 336.3 MB, free: 58.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001882/0.1777, allocations: 141.1 kB / 336.4 MB, free: 58.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.1778, allocations: 14.41 kB / 336.4 MB, free: 58.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002673/0.178, allocations: 0.6211 MB / 337 MB, free: 57.65 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.178, allocations: 3.531 kB / 337.1 MB, free: 57.65 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003934/0.1784, allocations: 0.5959 MB / 337.6 MB, free: 57.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.1786, allocations: 17.62 kB / 337.7 MB, free: 57.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.1789, allocations: 21.92 kB / 337.7 MB, free: 57.45 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.025e-05/0.1789, allocations: 45.12 kB / 337.7 MB, free: 57.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.114e-05/0.179, allocations: 16.12 kB / 337.7 MB, free: 57.45 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005953/0.1796, allocations: 1.331 MB / 339.1 MB, free: 57.31 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1796, allocations: 0 / 339.1 MB, free: 57.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006636/0.1802, allocations: 0.5744 MB / 339.7 MB, free: 57.3 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.0007335/0.181, allocations: 0.9288 MB / 340.6 MB, free: 57.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004781/0.1814, allocations: 0.4982 MB / 341.1 MB, free: 57.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.724e-05/0.1815, allocations: 43.97 kB / 341.1 MB, free: 57.03 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002384/0.1817, allocations: 288.9 kB / 341.4 MB, free: 56.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/0.1835, allocations: 5.874 MB / 347.3 MB, free: 51.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005129/0.1886, allocations: 3.773 MB / 351.1 MB, free: 47.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001561/0.1888, allocations: 370.1 kB / 351.4 MB, free: 47.6 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004949/0.1893, allocations: 390.9 kB / 351.8 MB, free: 47.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004837/0.1898, allocations: 0.557 MB / 352.4 MB, free: 46.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.673e-06/0.1898, allocations: 0 / 352.4 MB, free: 46.66 MB / 314.7 MB Notification: Performance of Templates: time 0.03845/0.2282, allocations: 38.14 MB / 390.5 MB, free: 9.648 MB / 314.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0970858531072736]