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.001335/0.001335, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001378/0.001378, allocations: 160.5 kB / 24.56 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 0.8778/0.8778, allocations: 177 MB / 204.8 MB, free: 5.555 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.343e-06/1.343e-06, allocations: 0 / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.257e-05/1.392e-05, allocations: 9.266 kB / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01146/0.01148, allocations: 13.4 MB / 286.3 MB, free: 3.977 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1186/0.1301, allocations: 19.38 MB / 305.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008388/0.1309, allocations: 191.1 kB / 305.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.1325, allocations: 1.03 MB / 306.9 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003569/0.136, allocations: 2.385 MB / 309.3 MB, free: 8.781 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001937/0.138, allocations: 1.444 MB / 310.7 MB, free: 7.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004387/0.1424, allocations: 6.766 MB / 317.5 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003047/0.1427, allocations: 248.4 kB / 317.7 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001879/0.1446, allocations: 2.987 MB / 320.7 MB, free: 1.547 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000529/0.1451, allocations: 0.7902 MB / 321.5 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.706e-05/0.1452, allocations: 68 kB / 321.6 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001583/0.1468, allocations: 1.202 MB / 322.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001835/0.1469, allocations: 321.7 kB / 323.1 MB, free: 15.17 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005107/0.1475, allocations: 0.7048 MB / 323.8 MB, free: 14.46 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002026/0.1495, allocations: 2.712 MB / 326.5 MB, free: 11.74 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1495, allocations: 4 kB / 326.5 MB, free: 11.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1495, allocations: 0 / 326.5 MB, free: 11.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.1495, allocations: 0 / 326.5 MB, free: 11.73 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.002663/0.1522, allocations: 3.746 MB / 330.3 MB, free: 7.93 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.1522, allocations: 15.98 kB / 330.3 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002968/0.1525, allocations: 429.5 kB / 330.7 MB, free: 7.492 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00202/0.1545, allocations: 2.619 MB / 333.3 MB, free: 4.773 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.1545, allocations: 29 kB / 333.4 MB, free: 4.742 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-05/0.1546, allocations: 51.95 kB / 333.4 MB, free: 4.691 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006182/0.1552, allocations: 0.5163 MB / 333.9 MB, free: 4.164 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.1552, allocations: 0 / 333.9 MB, free: 4.164 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.805e-05/0.1553, allocations: 19.94 kB / 333.9 MB, free: 4.145 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.1553, allocations: 31.92 kB / 334 MB, free: 4.113 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005132/0.1558, allocations: 474.3 kB / 334.4 MB, free: 3.656 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002678/0.1585, allocations: 2.672 MB / 337.1 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.1589, allocations: 349.8 kB / 337.4 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004013/0.1593, allocations: 418 kB / 337.9 MB, free: 176 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01391/0.1732, allocations: 15.21 MB / 353.1 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003135/0.1735, allocations: 271.7 kB / 353.3 MB, free: 300 kB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.974e-06/0.1735, allocations: 3.938 kB / 353.3 MB, free: 296 kB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001343/0.1749, allocations: 1.069 MB / 354.4 MB, free: 15.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.1749, allocations: 63.39 kB / 354.5 MB, free: 15.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002093/0.177, allocations: 2.991 MB / 357.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.177, allocations: 33.7 kB / 357.5 MB, free: 12.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008679/0.1779, allocations: 1.562 MB / 359.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.576e-05/0.178, allocations: 174.6 kB / 359.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.1782, allocations: 228 kB / 359.4 MB, free: 10.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1783, allocations: 0.5082 MB / 360 MB, free: 9.574 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.1785, allocations: 129.9 kB / 360.1 MB, free: 9.445 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.1788, allocations: 0.6431 MB / 360.7 MB, free: 8.566 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005861/0.1794, allocations: 0.8379 MB / 361.6 MB, free: 7.496 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.1794, allocations: 7.938 kB / 361.6 MB, free: 7.488 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009604/0.1804, allocations: 1.089 MB / 362.7 MB, free: 6.387 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1804, allocations: 12.62 kB / 362.7 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-05/0.1805, allocations: 80.88 kB / 362.8 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003375/0.1808, allocations: 267.5 kB / 363 MB, free: 6.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.1811, allocations: 167.7 kB / 363.2 MB, free: 5.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006026/0.1817, allocations: 1.085 MB / 364.3 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003968/0.1821, allocations: 107.3 kB / 364.4 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.147e-05/0.1822, allocations: 61.06 kB / 364.4 MB, free: 4.586 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.0002716/0.1825, allocations: 212.3 kB / 364.6 MB, free: 4.367 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.1827, allocations: 389.7 kB / 365 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004512/0.1872, allocations: 1.085 MB / 366.1 MB, free: 2.895 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.1872, allocations: 8 kB / 366.1 MB, free: 2.887 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1872, allocations: 0 / 366.1 MB, free: 2.887 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1872, allocations: 0 / 366.1 MB, free: 2.887 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003344/0.1905, allocations: 2.143 MB / 368.3 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.106e-05/0.1906, allocations: 68 kB / 368.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/0.1908, allocations: 60.64 kB / 368.4 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.1913, allocations: 251.1 kB / 368.6 MB, free: 300 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.772e-05/0.1913, allocations: 35.94 kB / 368.7 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008828/0.1922, allocations: 1.061 MB / 369.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1922, allocations: 0 / 369.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.1936, allocations: 1.035 MB / 370.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006029/0.1942, allocations: 427.2 kB / 371.2 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002635/0.1944, allocations: 12.75 kB / 371.2 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004256/0.1949, allocations: 19.98 kB / 371.2 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.195, allocations: 67.86 kB / 371.3 MB, free: 13.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.995e-05/0.195, allocations: 36 kB / 371.3 MB, free: 13.53 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001396/0.1964, allocations: 1.639 MB / 372.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1964, allocations: 0 / 372.9 MB, free: 11.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008379/0.1973, allocations: 0.5735 MB / 373.5 MB, free: 11.31 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.0007704/0.198, allocations: 0.8415 MB / 374.4 MB, free: 10.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008877/0.1989, allocations: 0.651 MB / 375 MB, free: 9.785 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1989, allocations: 0 / 375 MB, free: 9.785 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000359/0.1993, allocations: 414.9 kB / 375.4 MB, free: 9.352 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.2006, allocations: 0.6102 MB / 376 MB, free: 8.754 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003108/0.2037, allocations: 3.766 MB / 379.8 MB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.2039, allocations: 365.8 kB / 380.1 MB, free: 4.527 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005666/0.2045, allocations: 390.9 kB / 380.5 MB, free: 4.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.2046, allocations: 168.5 kB / 380.7 MB, free: 3.977 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2046, allocations: 0 / 380.7 MB, free: 3.977 MB / 330.7 MB Notification: Performance of Templates: time 0.04078/0.2454, allocations: 38.93 MB / 419.6 MB, free: 13.5 MB / 378.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.4117136518470943]