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: "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0014/0.0014, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001634/0.001634, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2352/0.2352, allocations: 46.11 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 76.62 kB / 416.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1511, allocations: 62.43 MB / 479.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.004215/0.1554, allocations: 1.776 MB / 481.1 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005232/0.1559, allocations: 155.5 kB / 481.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.1561, allocations: 7.938 kB / 481.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.05e-05/0.1562, allocations: 7.922 kB / 481.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.7e-05/0.1563, allocations: 7.938 kB / 481.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004635/0.1568, allocations: 95.44 kB / 481.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002092/0.157, allocations: 103.8 kB / 481.5 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1572, allocations: 25.39 kB / 481.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.533e-05/0.1573, allocations: 35.86 kB / 481.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.458e-05/0.1574, allocations: 43.81 kB / 481.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.401e-05/0.1574, allocations: 4 kB / 481.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.797e-05/0.1574, allocations: 12 kB / 481.6 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.591e-05/0.1575, allocations: 15.86 kB / 481.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.553e-05/0.1576, allocations: 43.73 kB / 481.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.1577, allocations: 83.97 kB / 481.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1577, allocations: 0 / 481.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1577, allocations: 0 / 481.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.1578, allocations: 0 / 481.8 MB, free: 3.199 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.000814/0.1586, allocations: 451 kB / 482.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.1586, allocations: 8.875 kB / 482.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.811e-05/0.1587, allocations: 38.75 kB / 482.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.035e-05/0.1588, allocations: 12.75 kB / 482.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002814/0.1591, allocations: 200.2 kB / 482.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1591, allocations: 4.375 kB / 482.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.1591, allocations: 8.375 kB / 482.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.1595, allocations: 158.3 kB / 482.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1595, allocations: 3.938 kB / 482.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.1596, allocations: 4 kB / 482.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.1596, allocations: 4 kB / 482.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003743/0.16, allocations: 115.8 kB / 482.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008603/0.1608, allocations: 0.5438 MB / 483.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.1613, allocations: 134.5 kB / 483.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.1614, allocations: 56.84 kB / 483.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.1615, allocations: 4 kB / 483.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.1615, allocations: 34.56 kB / 483.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.884e-06/0.1615, allocations: 0 / 483.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006505/0.1622, allocations: 189.4 kB / 483.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.233e-05/0.1623, allocations: 102.8 kB / 483.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.1624, allocations: 138.1 kB / 484 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.1625, allocations: 29.7 kB / 484 MB, free: 0.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.143e-05/0.1626, allocations: 112 kB / 484.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.1626, allocations: 27.7 kB / 484.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.018e-05/0.1627, allocations: 33.7 kB / 484.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.1629, allocations: 314.8 kB / 484.5 MB, free: 260 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.1631, allocations: 51.94 kB / 484.5 MB, free: 208 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.1633, allocations: 88.25 kB / 484.6 MB, free: 104 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.1637, allocations: 110.8 kB / 484.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1637, allocations: 0 / 484.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000425/0.1641, allocations: 157.6 kB / 484.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.1641, allocations: 4 kB / 484.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1641, allocations: 7.938 kB / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1642, allocations: 0 / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.1643, allocations: 31.97 kB / 484.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.1644, allocations: 8 kB / 484.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.1645, allocations: 31.91 kB / 484.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.1645, allocations: 0 / 484.9 MB, free: 15.74 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.0001358/0.1647, allocations: 117.8 kB / 485.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/0.1647, allocations: 7.906 kB / 485.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.916e-05/0.1648, allocations: 20.7 kB / 485.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.1648, allocations: 4 kB / 485.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1648, allocations: 0 / 485.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.1648, allocations: 3.938 kB / 485.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002358/0.165, allocations: 213.4 kB / 485.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1651, allocations: 0 / 485.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.1652, allocations: 19.97 kB / 485.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.1652, allocations: 7.875 kB / 485.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.1652, allocations: 8 kB / 485.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1652, allocations: 0 / 485.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1652, allocations: 0 / 485.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004352/0.1657, allocations: 235.3 kB / 485.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.47e-05/0.1657, allocations: 85.02 kB / 485.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.1658, allocations: 0 / 485.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.1659, allocations: 31.97 kB / 485.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.166, allocations: 11.92 kB / 485.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.166, allocations: 0 / 485.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.044e-05/0.1661, allocations: 109.7 kB / 485.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1661, allocations: 0 / 485.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002464/0.1663, allocations: 20 kB / 485.8 MB, free: 14.77 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.0008254/0.1672, allocations: 0.767 MB / 486.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004198/0.1676, allocations: 115.9 kB / 486.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1676, allocations: 0 / 486.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001895/0.1678, allocations: 59.94 kB / 486.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003864/0.1682, allocations: 22.27 kB / 486.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.1707, allocations: 1.694 MB / 488.5 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.1712, allocations: 0.6971 MB / 489.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.392e-05/0.1713, allocations: 25.11 kB / 489.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.724e-05/0.1713, allocations: 23.44 kB / 489.2 MB, free: 11.23 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1713, allocations: 0 / 489.2 MB, free: 11.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01458/0.1859, allocations: 2.39 MB / 491.6 MB, free: 8.91 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002558/0.1862, allocations: 191.8 kB / 491.8 MB, free: 8.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.031, allocations: 0 / 491.8 MB, free: 8.648 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)