Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds") translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001164/0.001164, allocations: 109.6 kB / 18.3 MB, free: 4.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001317, allocations: 216 kB / 19.25 MB, free: 3.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 247.4 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2343/0.2343, allocations: 46.11 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001427, allocations: 77.22 kB / 418.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1523, allocations: 62.45 MB / 480.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003862/0.1562, allocations: 1.701 MB / 482.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008052/0.1571, allocations: 171.5 kB / 482.6 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.1573, allocations: 4 kB / 482.6 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.998e-05/0.1574, allocations: 7.875 kB / 482.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.1576, allocations: 15.75 kB / 482.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005737/0.1582, allocations: 95.84 kB / 482.7 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003016/0.1585, allocations: 107.7 kB / 482.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.1587, allocations: 29.38 kB / 482.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.1589, allocations: 43.91 kB / 482.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.335e-05/0.159, allocations: 43.77 kB / 482.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.028e-05/0.159, allocations: 8 kB / 482.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.111e-05/0.159, allocations: 8 kB / 482.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.903e-05/0.1591, allocations: 23.86 kB / 482.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.683e-05/0.1592, allocations: 43.73 kB / 483 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.1594, allocations: 87.69 kB / 483.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1594, allocations: 0 / 483.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1594, allocations: 0 / 483.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1594, allocations: 0 / 483.1 MB, free: 2.922 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001037/0.1605, allocations: 451.3 kB / 483.5 MB, free: 2.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.1605, allocations: 8.031 kB / 483.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.428e-05/0.1606, allocations: 12.75 kB / 483.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.1609, allocations: 202.5 kB / 483.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.1609, allocations: 12.36 kB / 483.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.161, allocations: 4.375 kB / 483.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000416/0.1614, allocations: 154.5 kB / 483.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1614, allocations: 192 / 483.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.1614, allocations: 3.938 kB / 483.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.1614, allocations: 4 kB / 483.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003832/0.1618, allocations: 111.8 kB / 484 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008282/0.1627, allocations: 0.5437 MB / 484.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004393/0.1631, allocations: 138.5 kB / 484.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.1633, allocations: 64.78 kB / 484.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.1634, allocations: 0 / 484.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.1634, allocations: 34.5 kB / 484.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.605e-06/0.1634, allocations: 3.984 kB / 484.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006747/0.1641, allocations: 189.5 kB / 485 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.1642, allocations: 106.8 kB / 485.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.1643, allocations: 133.1 kB / 485.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.1643, allocations: 29.7 kB / 485.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.5e-05/0.1644, allocations: 112 kB / 485.3 MB, free: 416 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.176e-05/0.1645, allocations: 31.7 kB / 485.4 MB, free: 384 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.734e-05/0.1645, allocations: 29.7 kB / 485.4 MB, free: 348 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1647, allocations: 322.8 kB / 485.7 MB, free: 16 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.1649, allocations: 51.94 kB / 485.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/0.1651, allocations: 88.12 kB / 485.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003534/0.1655, allocations: 114.5 kB / 486 MB, free: 15.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1655, allocations: 0 / 486 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004354/0.166, allocations: 145.4 kB / 486.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.166, allocations: 8 kB / 486.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.166, allocations: 0 / 486.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.166, allocations: 8 kB / 486.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.1662, allocations: 31.97 kB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.1662, allocations: 0 / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.1664, allocations: 27.91 kB / 486.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.1664, allocations: 4 kB / 486.2 MB, free: 15.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.1665, allocations: 117.8 kB / 486.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.141e-05/0.1666, allocations: 11.91 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.388e-05/0.1666, allocations: 16.7 kB / 486.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1666, allocations: 0 / 486.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1666, allocations: 0 / 486.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.1667, allocations: 3.938 kB / 486.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002508/0.1669, allocations: 209.5 kB / 486.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1669, allocations: 0 / 486.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.1671, allocations: 35.91 kB / 486.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1671, allocations: 0 / 486.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.1671, allocations: 0 / 486.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.525e-05/0.1671, allocations: 4 kB / 486.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1671, allocations: 3.938 kB / 486.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004583/0.1676, allocations: 235.3 kB / 486.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.1676, allocations: 84.95 kB / 486.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.1677, allocations: 12 kB / 486.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.1678, allocations: 19.97 kB / 486.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.991e-05/0.1679, allocations: 11.98 kB / 486.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.1679, allocations: 7.938 kB / 486.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.043e-05/0.168, allocations: 107.2 kB / 487.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.168, allocations: 0 / 487.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002518/0.1682, allocations: 16 kB / 487.1 MB, free: 14.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001244/0.1684, allocations: 103.2 kB / 487.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004867/0.1689, allocations: 116.3 kB / 487.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1689, allocations: 4 kB / 487.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002025/0.1691, allocations: 64.22 kB / 487.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.1696, allocations: 20.11 kB / 487.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000669/0.1703, allocations: 255.5 kB / 487.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.1706, allocations: 0.7002 MB / 488.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.106e-05/0.1707, allocations: 19.44 kB / 488.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of SimCode: time 4.7e-07/0.1707, allocations: 0 / 488.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of Templates: time 0.003454/0.1742, allocations: 1.402 MB / 489.7 MB, free: 11.8 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)