Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009503/0.0009501, allocations: 100.2 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 192.3 kB / 17.9 MB, free: 5.914 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 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2139/0.2139, allocations: 45.92 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004447/0.0004452, allocations: 4 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1617, allocations: 63.47 MB / 481.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001766/0.1635, allocations: 1.314 MB / 482.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007886/0.1643, allocations: 487.1 kB / 483.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.229e-05/0.1644, allocations: 0 / 483.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.461e-05/0.1645, allocations: 7.938 kB / 483.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.315e-05/0.1645, allocations: 11.91 kB / 483.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001656/0.1647, allocations: 27.92 kB / 483.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000121/0.1648, allocations: 71.78 kB / 483.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.165, allocations: 24.2 kB / 483.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.769e-05/0.165, allocations: 19.92 kB / 483.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.288e-05/0.1651, allocations: 35.72 kB / 483.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.451e-05/0.1651, allocations: 4 kB / 483.6 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.231e-05/0.1651, allocations: 4 kB / 483.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.1651, allocations: 8 kB / 483.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.235e-05/0.1652, allocations: 37.64 kB / 483.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.72e-05/0.1653, allocations: 52.11 kB / 483.7 MB, free: 3.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1653, allocations: 0 / 483.7 MB, free: 3.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1653, allocations: 0 / 483.7 MB, free: 3.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1653, allocations: 0 / 483.7 MB, free: 3.121 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005064/0.1658, allocations: 379.1 kB / 484.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1659, allocations: 8.031 kB / 484.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.259e-05/0.1659, allocations: 46.53 kB / 484.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.092e-05/0.166, allocations: 7.906 kB / 484.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001892/0.1662, allocations: 194.8 kB / 484.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.1662, allocations: 8 kB / 484.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.1662, allocations: 4 kB / 484.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001334/0.1664, allocations: 73.67 kB / 484.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.1664, allocations: 3.938 kB / 484.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-06/0.1664, allocations: 4 kB / 484.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1664, allocations: 4 kB / 484.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.76e-05/0.1665, allocations: 38.88 kB / 484.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005057/0.167, allocations: 360.5 kB / 484.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.222e-05/0.1671, allocations: 54.5 kB / 484.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.028e-05/0.1671, allocations: 16.84 kB / 484.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.1672, allocations: 4 kB / 484.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/0.1673, allocations: 67.42 kB / 485 MB, free: 1.699 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.1673, allocations: 0 / 485 MB, free: 1.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001888/0.1675, allocations: 89.52 kB / 485.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.1675, allocations: 55.41 kB / 485.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.1677, allocations: 140.2 kB / 485.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.1677, allocations: 25.7 kB / 485.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.159e-05/0.1677, allocations: 104 kB / 485.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.305e-05/0.1678, allocations: 19.89 kB / 485.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-06/0.1678, allocations: 0 / 485.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1679, allocations: 318.8 kB / 485.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.56e-05/0.1679, allocations: 16 kB / 485.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.647e-05/0.168, allocations: 42.5 kB / 485.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.977e-05/0.168, allocations: 23.94 kB / 485.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.168, allocations: 0 / 485.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001284/0.1682, allocations: 85.48 kB / 485.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1682, allocations: 4 kB / 485.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1682, allocations: 4 kB / 485.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.428e-06/0.1682, allocations: 4.062 kB / 485.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.991e-05/0.1683, allocations: 11.98 kB / 485.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.1683, allocations: 4 kB / 485.9 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.332e-05/0.1684, allocations: 15.91 kB / 485.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.1684, allocations: 0 / 485.9 MB, free: 0.6953 MB / 350.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: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_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 7.857e-05/0.1685, allocations: 121.8 kB / 486 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/0.1685, allocations: 11.86 kB / 486 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.1685, allocations: 12.72 kB / 486.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1685, allocations: 4 kB / 486.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1685, allocations: 0 / 486.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1685, allocations: 3.938 kB / 486.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000286/0.1688, allocations: 350.5 kB / 486.4 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1688, allocations: 0 / 486.4 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.72e-05/0.1689, allocations: 7.984 kB / 486.4 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1689, allocations: 3.938 kB / 486.4 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.1689, allocations: 7.984 kB / 486.4 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1689, allocations: 4 kB / 486.4 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1689, allocations: 4 kB / 486.4 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001987/0.1691, allocations: 183.4 kB / 486.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.301e-05/0.1692, allocations: 93 kB / 486.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.1692, allocations: 0 / 486.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.589e-05/0.1693, allocations: 7.984 kB / 486.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/0.1694, allocations: 7.984 kB / 486.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.1694, allocations: 8 kB / 486.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.76e-05/0.1694, allocations: 105.5 kB / 486.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1694, allocations: 4 kB / 486.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002252/0.1697, allocations: 15.91 kB / 486.8 MB, free: 15.66 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0004265/0.1701, allocations: 0.7173 MB / 487.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001178/0.1702, allocations: 48.11 kB / 487.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1702, allocations: 4.062 kB / 487.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.979e-05/0.1703, allocations: 27.97 kB / 487.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.1706, allocations: 19.98 kB / 487.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009448/0.1716, allocations: 0.613 MB / 488.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.1718, allocations: 0.7004 MB / 489 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.573e-05/0.1718, allocations: 4.438 kB / 489 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.125e-05/0.1719, allocations: 27.42 kB / 489 MB, free: 13.4 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1719, allocations: 0 / 489 MB, free: 13.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01301/0.1849, allocations: 1.912 MB / 490.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002526/0.1852, allocations: 184.5 kB / 491.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.099, allocations: 0 / 491.1 MB, free: 11.36 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat