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.0008822/0.0008819, allocations: 101.8 kB / 17.01 MB, free: 6.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 193.8 kB / 17.91 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2525/0.2525, allocations: 46.19 MB / 344.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002803/0.0002804, allocations: 11.98 kB / 418.8 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1489, allocations: 63.57 MB / 482.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002119/0.1511, allocations: 1.402 MB / 483.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000446/0.1515, allocations: 143.6 kB / 483.9 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.484e-05/0.1516, allocations: 7.938 kB / 483.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.488e-05/0.1517, allocations: 7.922 kB / 484 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.864e-05/0.1517, allocations: 3.938 kB / 484 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.1521, allocations: 87.39 kB / 484 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001821/0.1523, allocations: 95.75 kB / 484.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.1525, allocations: 21.39 kB / 484.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.755e-05/0.1526, allocations: 35.84 kB / 484.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.8e-05/0.1526, allocations: 31.84 kB / 484.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.1527, allocations: 4 kB / 484.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.1e-05/0.1527, allocations: 4 kB / 484.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.653e-05/0.1527, allocations: 19.91 kB / 484.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.1529, allocations: 37.64 kB / 484.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.153, allocations: 59.88 kB / 484.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.153, allocations: 4 kB / 484.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1531, allocations: 0 / 484.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.1531, allocations: 3.938 kB / 484.4 MB, free: 2.566 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.0007878/0.1539, allocations: 443.2 kB / 484.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.1539, allocations: 11.97 kB / 484.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.707e-05/0.154, allocations: 19.81 kB / 484.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.1542, allocations: 194.8 kB / 485 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.1543, allocations: 4 kB / 485 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.1543, allocations: 12 kB / 485 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004001/0.1547, allocations: 168.5 kB / 485.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1547, allocations: 0 / 485.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.1547, allocations: 4 kB / 485.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1548, allocations: 4 kB / 485.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003733/0.1551, allocations: 131.8 kB / 485.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008255/0.156, allocations: 0.5672 MB / 485.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000414/0.1564, allocations: 166.4 kB / 486.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.1566, allocations: 72.84 kB / 486.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.1566, allocations: 0 / 486.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.1566, allocations: 34.56 kB / 486.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.02e-07/0.1567, allocations: 0 / 486.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006653/0.1573, allocations: 233.7 kB / 486.4 MB, free: 348 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.804e-05/0.1574, allocations: 110.8 kB / 486.5 MB, free: 212 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.1576, allocations: 136.7 kB / 486.6 MB, free: 64 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.1576, allocations: 33.7 kB / 486.7 MB, free: 24 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.656e-05/0.1577, allocations: 108 kB / 486.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.1577, allocations: 19.75 kB / 486.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.55e-06/0.1577, allocations: 0 / 486.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1579, allocations: 318.8 kB / 487.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.158, allocations: 63.95 kB / 487.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.1582, allocations: 104.2 kB / 487.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.1584, allocations: 76 kB / 487.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.1584, allocations: 0 / 487.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003894/0.1588, allocations: 177.4 kB / 487.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1589, allocations: 7.953 kB / 487.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.1589, allocations: 0 / 487.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.1589, allocations: 4.062 kB / 487.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.159, allocations: 31.97 kB / 487.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.1591, allocations: 4 kB / 487.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.1592, allocations: 44.06 kB / 487.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.1592, allocations: 4 kB / 487.6 MB, free: 15.05 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 (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 initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.1593, allocations: 121.7 kB / 487.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.269e-05/0.1594, allocations: 15.84 kB / 487.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.257e-05/0.1594, allocations: 16.66 kB / 487.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1594, allocations: 0 / 487.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1595, allocations: 4 kB / 487.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.1595, allocations: 0 / 487.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.1597, allocations: 209.6 kB / 488 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1597, allocations: 0 / 488 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.1598, allocations: 27.97 kB / 488 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1598, allocations: 4 kB / 488 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.1598, allocations: 0 / 488 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1598, allocations: 3.953 kB / 488 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1598, allocations: 0 / 488 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004503/0.1603, allocations: 267.4 kB / 488.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.783e-05/0.1604, allocations: 84.95 kB / 488.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.1604, allocations: 7.938 kB / 488.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.1606, allocations: 43.97 kB / 488.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.72e-05/0.1607, allocations: 11.94 kB / 488.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.1607, allocations: 0 / 488.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.978e-05/0.1607, allocations: 109.3 kB / 488.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1607, allocations: 0 / 488.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.161, allocations: 19.91 kB / 488.5 MB, free: 14.03 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000135/0.1611, allocations: 91.78 kB / 488.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004306/0.1616, allocations: 148 kB / 488.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1616, allocations: 4 kB / 488.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001916/0.1618, allocations: 75.94 kB / 488.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.1621, allocations: 19.98 kB / 488.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005161/0.1626, allocations: 253.4 kB / 489.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.1629, allocations: 0.7004 MB / 489.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.705e-05/0.163, allocations: 12.66 kB / 489.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.746e-05/0.163, allocations: 11.44 kB / 489.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.163, allocations: 0 / 489.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of Templates: time 0.003343/0.1664, allocations: 1.177 MB / 491 MB, free: 11.49 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)