Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001023/0.001024, allocations: 102.9 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2106/0.2106, allocations: 45.91 MB / 344.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000292/0.0002921, allocations: 8 kB / 418.2 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.158, allocations: 63.47 MB / 481.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00197/0.16, allocations: 1.326 MB / 483 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.1611, allocations: 0.5537 MB / 483.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.73e-05/0.1612, allocations: 3.938 kB / 483.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.1614, allocations: 11.88 kB / 483.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.592e-05/0.1614, allocations: 11.91 kB / 483.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.1618, allocations: 63.92 kB / 483.6 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001765/0.162, allocations: 107.7 kB / 483.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.1622, allocations: 19.98 kB / 483.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1623, allocations: 39.84 kB / 483.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.962e-05/0.1624, allocations: 31.83 kB / 483.8 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.1624, allocations: 4 kB / 483.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.69e-05/0.1624, allocations: 4 kB / 483.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.051e-05/0.1625, allocations: 15.92 kB / 483.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.751e-05/0.1625, allocations: 37.64 kB / 483.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.1626, allocations: 56.11 kB / 483.9 MB, free: 2.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.1627, allocations: 4 kB / 483.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1627, allocations: 0 / 483.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1627, allocations: 0 / 483.9 MB, free: 2.98 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007025/0.1634, allocations: 403 kB / 484.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.1634, allocations: 12.03 kB / 484.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.714e-05/0.1635, allocations: 38.55 kB / 484.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.244e-05/0.1635, allocations: 15.91 kB / 484.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.1638, allocations: 202.8 kB / 484.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.1638, allocations: 4 kB / 484.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.252e-05/0.1638, allocations: 8 kB / 484.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.1641, allocations: 105.6 kB / 484.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.1642, allocations: 4 kB / 484.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.1642, allocations: 4 kB / 484.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.1642, allocations: 7.938 kB / 484.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.1644, allocations: 55.95 kB / 484.8 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006963/0.1651, allocations: 396.5 kB / 485.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003375/0.1654, allocations: 114.5 kB / 485.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.1655, allocations: 52.83 kB / 485.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.1656, allocations: 3.953 kB / 485.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/0.1659, allocations: 107.3 kB / 485.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.1659, allocations: 0 / 485.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004808/0.1664, allocations: 149.5 kB / 485.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.1664, allocations: 59.41 kB / 485.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.1666, allocations: 150.3 kB / 485.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.1666, allocations: 25.7 kB / 485.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.843e-05/0.1667, allocations: 108.2 kB / 485.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.546e-05/0.1667, allocations: 19.8 kB / 485.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-06/0.1667, allocations: 0 / 485.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1669, allocations: 322.8 kB / 486.2 MB, free: 448 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.167, allocations: 39.92 kB / 486.3 MB, free: 408 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.1671, allocations: 57.69 kB / 486.3 MB, free: 344 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001123/0.1673, allocations: 27.98 kB / 486.4 MB, free: 316 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1673, allocations: 0 / 486.4 MB, free: 316 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002777/0.1675, allocations: 137.4 kB / 486.5 MB, free: 172 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.1676, allocations: 8 kB / 486.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.1676, allocations: 0 / 486.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1676, allocations: 0 / 486.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.75e-05/0.1677, allocations: 23.95 kB / 486.5 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1677, allocations: 4 kB / 486.5 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.165e-05/0.1678, allocations: 27.97 kB / 486.6 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.1679, allocations: 4 kB / 486.6 MB, free: 104 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * 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.000121/0.168, allocations: 117.8 kB / 486.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.973e-05/0.168, allocations: 11.86 kB / 486.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.613e-05/0.168, allocations: 12.72 kB / 486.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1681, allocations: 3.984 kB / 486.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1681, allocations: 0 / 486.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1681, allocations: 0 / 486.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005436/0.1686, allocations: 410.3 kB / 487.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1686, allocations: 0 / 487.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.268e-05/0.1687, allocations: 15.98 kB / 487.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1687, allocations: 0 / 487.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.1688, allocations: 0 / 487.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1688, allocations: 0 / 487.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1688, allocations: 4.281 kB / 487.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004514/0.1692, allocations: 263.7 kB / 487.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.277e-05/0.1693, allocations: 92.86 kB / 487.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.1693, allocations: 7.938 kB / 487.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.1695, allocations: 27.98 kB / 487.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.806e-05/0.1695, allocations: 16.03 kB / 487.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.1695, allocations: 4 kB / 487.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.872e-05/0.1697, allocations: 115.4 kB / 487.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1697, allocations: 0 / 487.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002322/0.1699, allocations: 16 kB / 487.7 MB, free: 14.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008536/0.1708, allocations: 0.787 MB / 488.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002756/0.171, allocations: 92 kB / 488.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1711, allocations: 0 / 488.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.1712, allocations: 51.98 kB / 488.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.1715, allocations: 18.66 kB / 488.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.173, allocations: 0.719 MB / 489.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.1733, allocations: 0.7004 MB / 490 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.928e-05/0.1734, allocations: 8.547 kB / 490 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.599e-05/0.1734, allocations: 35.42 kB / 490.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1734, allocations: 0 / 490.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01652/0.19, allocations: 2.214 MB / 492.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003169/0.1903, allocations: 176.9 kB / 492.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.096, allocations: 0 / 492.4 MB, free: 10.07 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat