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.001272/0.001272, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001366/0.001366, allocations: 163.4 kB / 24.91 MB, free: 8.715 MB / 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.8434/0.8434, allocations: 177 MB / 205.2 MB, free: 5.059 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.483e-06/1.483e-06, allocations: 0 / 273.4 MB, free: 1.102 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.003e-05/1.151e-05, allocations: 5.266 kB / 273.4 MB, free: 1.098 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.007894/0.007905, allocations: 13.07 MB / 286.4 MB, free: 3.965 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1069/0.1148, allocations: 19.41 MB / 305.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.116, allocations: 187.1 kB / 306 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00155/0.1176, allocations: 1.066 MB / 307.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003791/0.1214, allocations: 2.404 MB / 309.5 MB, free: 8.789 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002485/0.1239, allocations: 1.452 MB / 311 MB, free: 7.836 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004463/0.1283, allocations: 6.721 MB / 317.7 MB, free: 4.539 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/0.1286, allocations: 277.5 kB / 317.9 MB, free: 4.328 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001836/0.1305, allocations: 2.985 MB / 320.9 MB, free: 1.352 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005467/0.131, allocations: 0.7824 MB / 321.7 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.495e-05/0.1311, allocations: 68 kB / 321.8 MB, free: 0.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001532/0.1326, allocations: 1.206 MB / 323 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001868/0.1328, allocations: 317.7 kB / 323.3 MB, free: 14.98 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005769/0.1334, allocations: 0.7165 MB / 324 MB, free: 14.26 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001978/0.1354, allocations: 2.712 MB / 326.7 MB, free: 11.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1354, allocations: 0 / 326.7 MB, free: 11.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1354, allocations: 0 / 326.7 MB, free: 11.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.1354, allocations: 0 / 326.7 MB, free: 11.54 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.00244/0.1379, allocations: 3.491 MB / 330.2 MB, free: 8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.1379, allocations: 11.98 kB / 330.2 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.1381, allocations: 263.7 kB / 330.5 MB, free: 7.73 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.14, allocations: 2.11 MB / 332.6 MB, free: 5.504 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.1401, allocations: 32.94 kB / 332.6 MB, free: 5.469 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.342e-05/0.1401, allocations: 51.98 kB / 332.7 MB, free: 5.418 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004565/0.1406, allocations: 443.5 kB / 333.1 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.1406, allocations: 4 kB / 333.1 MB, free: 4.969 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.1406, allocations: 19.94 kB / 333.1 MB, free: 4.949 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.1406, allocations: 23.98 kB / 333.2 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003095/0.141, allocations: 211.8 kB / 333.4 MB, free: 4.723 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.1428, allocations: 1.429 MB / 334.8 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.1431, allocations: 317.2 kB / 335.1 MB, free: 2.949 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002686/0.1434, allocations: 328.4 kB / 335.4 MB, free: 2.625 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02226/0.1656, allocations: 22.92 MB / 358.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.1658, allocations: 214 kB / 358.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.633e-06/0.1658, allocations: 0 / 358.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009853/0.1668, allocations: 0.6519 MB / 359.2 MB, free: 9.961 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.1669, allocations: 63.34 kB / 359.3 MB, free: 9.887 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.1682, allocations: 2.512 MB / 361.8 MB, free: 7.348 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.1682, allocations: 37.7 kB / 361.8 MB, free: 7.305 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003421/0.1686, allocations: 0.7229 MB / 362.5 MB, free: 6.574 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.928e-05/0.1687, allocations: 170.5 kB / 362.7 MB, free: 6.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.1688, allocations: 182.3 kB / 362.9 MB, free: 6.223 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.063e-05/0.1689, allocations: 345.9 kB / 363.2 MB, free: 5.879 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.78e-05/0.169, allocations: 73.97 kB / 363.3 MB, free: 5.805 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.1692, allocations: 439 kB / 363.7 MB, free: 5.207 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/0.1696, allocations: 0.6102 MB / 364.3 MB, free: 4.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.1696, allocations: 4 kB / 364.3 MB, free: 4.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006645/0.1703, allocations: 0.712 MB / 365 MB, free: 3.703 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1703, allocations: 8 kB / 365.1 MB, free: 3.695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.485e-05/0.1704, allocations: 23.98 kB / 365.1 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002533/0.1706, allocations: 153 kB / 365.2 MB, free: 3.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.1709, allocations: 163.7 kB / 365.4 MB, free: 3.359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004514/0.1713, allocations: 0.6508 MB / 366 MB, free: 2.684 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.1717, allocations: 95.39 kB / 366.1 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.442e-05/0.1718, allocations: 39.98 kB / 366.2 MB, free: 2.551 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.0002419/0.172, allocations: 169.5 kB / 366.3 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.1722, allocations: 243.6 kB / 366.6 MB, free: 2.137 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009948/0.1732, allocations: 0.7952 MB / 367.4 MB, free: 1.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1732, allocations: 8 kB / 367.4 MB, free: 1.332 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1732, allocations: 7.922 kB / 367.4 MB, free: 1.324 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1732, allocations: 0 / 367.4 MB, free: 1.324 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00135/0.1746, allocations: 1.587 MB / 369 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-05/0.1746, allocations: 8 kB / 369 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.1747, allocations: 64.02 kB / 369 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002048/0.1749, allocations: 128.1 kB / 369.2 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.1749, allocations: 15.98 kB / 369.2 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003495/0.1753, allocations: 0.6303 MB / 369.8 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1753, allocations: 4 kB / 369.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004998/0.1758, allocations: 0.5868 MB / 370.4 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003426/0.1761, allocations: 385.4 kB / 370.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.1763, allocations: 15.92 kB / 370.8 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002995/0.1766, allocations: 24.02 kB / 370.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.874e-05/0.1767, allocations: 47.86 kB / 370.9 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.1767, allocations: 12 kB / 370.9 MB, free: 13.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007926/0.1775, allocations: 1.332 MB / 372.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1775, allocations: 0 / 372.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006821/0.1782, allocations: 0.5697 MB / 372.8 MB, free: 11.79 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.0008632/0.179, allocations: 0.9255 MB / 373.7 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005061/0.1795, allocations: 499.4 kB / 374.2 MB, free: 10.35 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.356e-05/0.1796, allocations: 36.5 kB / 374.2 MB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.1798, allocations: 275.5 kB / 374.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.181, allocations: 0.6049 MB / 375.1 MB, free: 9.418 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002866/0.1839, allocations: 3.742 MB / 378.8 MB, free: 5.602 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.1841, allocations: 365.8 kB / 379.2 MB, free: 5.223 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005649/0.1846, allocations: 382.9 kB / 379.6 MB, free: 4.844 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000569/0.1852, allocations: 0.5577 MB / 380.1 MB, free: 4.277 MB / 330.7 MB Notification: Performance of SimCode: time 7.81e-07/0.1852, allocations: 0 / 380.1 MB, free: 4.277 MB / 330.7 MB Notification: Performance of Templates: time 0.03765/0.2229, allocations: 37.27 MB / 417.4 MB, free: 15.48 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.162441966123879]