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.0009056/0.0009056, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009113/0.0009113, allocations: 168.2 kB / 24.91 MB, free: 8.688 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.8711/0.8711, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.773e-06/1.773e-06, allocations: 0 / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.285e-05/1.462e-05, allocations: 6.312 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01223/0.01224, allocations: 13.07 MB / 286.5 MB, free: 4.199 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1213/0.1335, allocations: 19.42 MB / 305.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.1347, allocations: 187.2 kB / 306.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.1363, allocations: 1.062 MB / 307.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003804/0.1401, allocations: 2.402 MB / 309.6 MB, free: 8.711 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002537/0.1426, allocations: 1.456 MB / 311 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004492/0.1471, allocations: 6.712 MB / 317.7 MB, free: 4.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003443/0.1475, allocations: 278.9 kB / 318 MB, free: 4.289 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001865/0.1493, allocations: 2.975 MB / 321 MB, free: 1.402 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005552/0.1499, allocations: 0.7941 MB / 321.8 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.532e-05/0.15, allocations: 68 kB / 321.8 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001615/0.1516, allocations: 1.206 MB / 323 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.1518, allocations: 313.7 kB / 323.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005331/0.1523, allocations: 0.7093 MB / 324.1 MB, free: 14.31 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.1544, allocations: 2.712 MB / 326.8 MB, free: 11.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1544, allocations: 0 / 326.8 MB, free: 11.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1544, allocations: 0 / 326.8 MB, free: 11.59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.018e-05/0.1544, allocations: 0 / 326.8 MB, free: 11.59 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.002523/0.1569, allocations: 3.495 MB / 330.3 MB, free: 8.047 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.157, allocations: 12.03 kB / 330.3 MB, free: 8.035 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000232/0.1572, allocations: 271.7 kB / 330.5 MB, free: 7.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.1591, allocations: 2.102 MB / 332.6 MB, free: 5.551 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.1591, allocations: 37 kB / 332.7 MB, free: 5.512 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.076e-05/0.1592, allocations: 43.98 kB / 332.7 MB, free: 5.469 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/0.1597, allocations: 447.5 kB / 333.2 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.1597, allocations: 1.938 kB / 333.2 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.007e-05/0.1597, allocations: 27.92 kB / 333.2 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.1597, allocations: 16 kB / 333.2 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003096/0.16, allocations: 211.8 kB / 333.4 MB, free: 4.777 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.1619, allocations: 1.429 MB / 334.8 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.1622, allocations: 315 kB / 335.1 MB, free: 3.008 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.1625, allocations: 327.2 kB / 335.5 MB, free: 2.684 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0226/0.1851, allocations: 22.93 MB / 358.4 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002292/0.1853, allocations: 206.1 kB / 358.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.954e-06/0.1853, allocations: 4 kB / 358.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009479/0.1862, allocations: 0.6519 MB / 359.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.1863, allocations: 63.33 kB / 359.3 MB, free: 9.941 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.1877, allocations: 2.515 MB / 361.8 MB, free: 7.398 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.263e-05/0.1877, allocations: 33.7 kB / 361.9 MB, free: 7.359 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003564/0.1881, allocations: 0.7151 MB / 362.6 MB, free: 6.637 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.607e-05/0.1882, allocations: 186.5 kB / 362.8 MB, free: 6.453 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.1883, allocations: 178.3 kB / 362.9 MB, free: 6.273 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.392e-05/0.1884, allocations: 341.9 kB / 363.3 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.1885, allocations: 73.97 kB / 363.3 MB, free: 5.859 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.1887, allocations: 439 kB / 363.8 MB, free: 5.266 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004206/0.1892, allocations: 0.6038 MB / 364.4 MB, free: 4.492 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.1892, allocations: 10.36 kB / 364.4 MB, free: 4.484 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006657/0.1898, allocations: 0.7122 MB / 365.1 MB, free: 3.762 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1898, allocations: 8 kB / 365.1 MB, free: 3.754 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.462e-05/0.1899, allocations: 24 kB / 365.1 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002513/0.1901, allocations: 147.8 kB / 365.3 MB, free: 3.586 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.1904, allocations: 163.7 kB / 365.4 MB, free: 3.426 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004079/0.1908, allocations: 0.6536 MB / 366.1 MB, free: 2.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003985/0.1912, allocations: 99.39 kB / 366.2 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/0.1913, allocations: 32 kB / 366.2 MB, free: 2.617 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.0002518/0.1915, allocations: 182 kB / 366.4 MB, free: 2.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.1917, allocations: 235.7 kB / 366.6 MB, free: 2.199 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.1927, allocations: 0.8113 MB / 367.4 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1927, allocations: 4 kB / 367.4 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.1927, allocations: 3.938 kB / 367.4 MB, free: 1.371 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.1927, allocations: 3.984 kB / 367.4 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001397/0.1941, allocations: 1.583 MB / 369 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.521e-05/0.1941, allocations: 15.92 kB / 369 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.1943, allocations: 47.97 kB / 369.1 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002047/0.1945, allocations: 132.9 kB / 369.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.1945, allocations: 8 kB / 369.2 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003843/0.1949, allocations: 0.634 MB / 369.9 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1949, allocations: 0 / 369.9 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004961/0.1954, allocations: 0.6058 MB / 370.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003409/0.1957, allocations: 373.4 kB / 370.8 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/0.1959, allocations: 15.94 kB / 370.8 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.1962, allocations: 19.98 kB / 370.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.888e-05/0.1962, allocations: 43.86 kB / 370.9 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.322e-05/0.1963, allocations: 19.98 kB / 370.9 MB, free: 13.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008684/0.1971, allocations: 1.332 MB / 372.3 MB, free: 12.42 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1971, allocations: 4 kB / 372.3 MB, free: 12.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007/0.1978, allocations: 0.5696 MB / 372.8 MB, free: 11.84 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.0008194/0.1987, allocations: 0.9276 MB / 373.8 MB, free: 10.9 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005167/0.1992, allocations: 496.4 kB / 374.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.583e-05/0.1992, allocations: 40.5 kB / 374.3 MB, free: 10.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002623/0.1995, allocations: 279.6 kB / 374.6 MB, free: 10.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.2007, allocations: 0.6021 MB / 375.2 MB, free: 9.449 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/0.2037, allocations: 3.738 MB / 378.9 MB, free: 5.637 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/0.204, allocations: 365.8 kB / 379.3 MB, free: 5.258 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000567/0.2045, allocations: 390.9 kB / 379.6 MB, free: 4.871 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005703/0.2051, allocations: 0.5499 MB / 380.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of SimCode: time 7.12e-07/0.2051, allocations: 0 / 380.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of Templates: time 0.03956/0.2447, allocations: 37.29 MB / 417.5 MB, free: 15.53 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.1517865378409624]