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.001244/0.001244, allocations: 107.4 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2199/0.2199, allocations: 46.11 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 76.25 kB / 417 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1642, allocations: 62.44 MB / 479.5 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.0038/0.168, allocations: 1.779 MB / 481.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000659/0.1687, allocations: 151.6 kB / 481.4 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.866e-05/0.1688, allocations: 7.938 kB / 481.4 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.542e-05/0.1689, allocations: 7.922 kB / 481.4 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.918e-05/0.169, allocations: 7.875 kB / 481.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003347/0.1693, allocations: 83.91 kB / 481.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.1695, allocations: 107.7 kB / 481.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.1696, allocations: 33.39 kB / 481.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.409e-05/0.1697, allocations: 39.86 kB / 481.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.638e-05/0.1698, allocations: 43.81 kB / 481.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.132e-05/0.1698, allocations: 8 kB / 481.7 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.37e-05/0.1699, allocations: 8 kB / 481.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.1699, allocations: 19.92 kB / 481.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.202e-05/0.17, allocations: 43.73 kB / 481.8 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.1702, allocations: 87.69 kB / 481.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1702, allocations: 0 / 481.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1702, allocations: 4 kB / 481.9 MB, free: 3.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1702, allocations: 0 / 481.9 MB, free: 3.219 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.0008637/0.1711, allocations: 443.3 kB / 482.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.1711, allocations: 8.031 kB / 482.3 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.835e-05/0.1712, allocations: 16.75 kB / 482.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002807/0.1715, allocations: 196.2 kB / 482.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.1715, allocations: 8.375 kB / 482.6 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.1716, allocations: 8.375 kB / 482.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004079/0.172, allocations: 146.4 kB / 482.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.172, allocations: 192 / 482.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.172, allocations: 15.94 kB / 482.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.1721, allocations: 0 / 482.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005575/0.1726, allocations: 111.8 kB / 482.8 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009164/0.1736, allocations: 0.5553 MB / 483.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005322/0.1741, allocations: 138.5 kB / 483.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.1744, allocations: 56.84 kB / 483.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.1744, allocations: 0 / 483.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.1745, allocations: 34.56 kB / 483.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.1745, allocations: 4 kB / 483.6 MB, free: 1.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008851/0.1754, allocations: 185.3 kB / 483.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.639e-05/0.1755, allocations: 110.8 kB / 483.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.1756, allocations: 136.6 kB / 484 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.1757, allocations: 33.7 kB / 484.1 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.94e-05/0.1758, allocations: 108 kB / 484.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.041e-05/0.1758, allocations: 23.66 kB / 484.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.792e-05/0.1759, allocations: 25.7 kB / 484.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1761, allocations: 326.8 kB / 484.5 MB, free: 328 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002212/0.1763, allocations: 51.95 kB / 484.6 MB, free: 276 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/0.1766, allocations: 88.17 kB / 484.7 MB, free: 172 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005286/0.1772, allocations: 118.9 kB / 484.8 MB, free: 44 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1772, allocations: 0 / 484.8 MB, free: 44 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0006057/0.1778, allocations: 149.5 kB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.1779, allocations: 8 kB / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1779, allocations: 0 / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.1779, allocations: 4 kB / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002401/0.1781, allocations: 31.91 kB / 485 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.1782, allocations: 0 / 485 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.1783, allocations: 31.91 kB / 485 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.1784, allocations: 7.984 kB / 485 MB, free: 15.81 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.0001171/0.1785, allocations: 117.9 kB / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.628e-05/0.1785, allocations: 7.906 kB / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.316e-05/0.1786, allocations: 16.72 kB / 485.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1786, allocations: 0 / 485.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1786, allocations: 0 / 485.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.1787, allocations: 3.938 kB / 485.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003222/0.179, allocations: 209.5 kB / 485.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.179, allocations: 0 / 485.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.1792, allocations: 31.91 kB / 485.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.1792, allocations: 0 / 485.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.1792, allocations: 7.938 kB / 485.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.96e-06/0.1793, allocations: 3.984 kB / 485.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1793, allocations: 0 / 485.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006928/0.18, allocations: 235.3 kB / 485.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.746e-05/0.18, allocations: 92.94 kB / 485.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/0.1801, allocations: 192 / 485.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.1802, allocations: 23.97 kB / 485.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.1803, allocations: 11.92 kB / 485.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.1803, allocations: 7.938 kB / 485.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.616e-05/0.1804, allocations: 101.5 kB / 485.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1804, allocations: 8 kB / 485.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002341/0.1806, allocations: 16 kB / 485.9 MB, free: 14.84 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 9.531e-05/0.1807, allocations: 95.19 kB / 486 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.1813, allocations: 127.8 kB / 486.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1814, allocations: 4.125 kB / 486.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.1816, allocations: 55.95 kB / 486.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.1821, allocations: 18.17 kB / 486.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007485/0.1828, allocations: 253.9 kB / 486.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.1832, allocations: 0.7007 MB / 487.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.705e-05/0.1834, allocations: 20.64 kB / 487.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.127e-05/0.1834, allocations: 15.44 kB / 487.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1834, allocations: 0 / 487.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of Templates: time 0.004773/0.1882, allocations: 1.296 MB / 488.5 MB, free: 12.21 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)