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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001838/0.001838, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002198/0.002198, allocations: 207.5 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 230.4 MB / 254 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2237/0.2237, allocations: 46.93 MB / 357 MB, free: 10.16 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003809/0.003809, allocations: 79.88 kB / 0.491 GB, free: 7.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1503, allocations: 66.05 MB / 0.5555 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003159/0.1535, allocations: 1.628 MB / 0.557 GB, free: 3.871 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000984/0.1545, allocations: 0.5159 MB / 0.5576 GB, free: 3.352 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.781e-05/0.1545, allocations: 0 / 0.5576 GB, free: 3.352 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.1547, allocations: 11.86 kB / 0.5576 GB, free: 3.34 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.547e-05/0.1547, allocations: 19.88 kB / 0.5576 GB, free: 3.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001876/0.1549, allocations: 27.91 kB / 0.5576 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001498/0.1551, allocations: 79.77 kB / 0.5577 GB, free: 3.215 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.1552, allocations: 32.2 kB / 0.5577 GB, free: 3.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.112e-05/0.1552, allocations: 31.86 kB / 0.5577 GB, free: 3.148 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.148e-05/0.1553, allocations: 31.78 kB / 0.5578 GB, free: 3.117 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.1553, allocations: 8 kB / 0.5578 GB, free: 3.109 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.061e-05/0.1554, allocations: 8 kB / 0.5578 GB, free: 3.102 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.64e-05/0.1554, allocations: 11.94 kB / 0.5578 GB, free: 3.09 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.922e-05/0.1554, allocations: 39.78 kB / 0.5578 GB, free: 3.051 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.1556, allocations: 79.59 kB / 0.5579 GB, free: 2.973 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1556, allocations: 0 / 0.5579 GB, free: 2.973 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1556, allocations: 0 / 0.5579 GB, free: 2.973 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1556, allocations: 0 / 0.5579 GB, free: 2.973 MB / 414.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.0006078/0.1562, allocations: 395.1 kB / 0.5583 GB, free: 2.539 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1562, allocations: 8.031 kB / 0.5583 GB, free: 2.531 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.743e-05/0.1563, allocations: 42.73 kB / 0.5583 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.1563, allocations: 8.891 kB / 0.5583 GB, free: 2.473 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002804/0.1566, allocations: 200.2 kB / 0.5585 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.1566, allocations: 4.375 kB / 0.5585 GB, free: 2.234 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/0.1566, allocations: 16.36 kB / 0.5586 GB, free: 2.219 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.1568, allocations: 73.73 kB / 0.5586 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.1568, allocations: 4 kB / 0.5586 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.1568, allocations: 4 kB / 0.5586 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1569, allocations: 4 kB / 0.5586 GB, free: 2.129 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.668e-05/0.1569, allocations: 31.98 kB / 0.5587 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.1576, allocations: 360.5 kB / 0.559 GB, free: 1.695 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001168/0.1577, allocations: 46.5 kB / 0.5591 GB, free: 1.641 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.915e-05/0.1577, allocations: 16.89 kB / 0.5591 GB, free: 1.621 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.1577, allocations: 0 / 0.5591 GB, free: 1.621 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001406/0.1579, allocations: 75.38 kB / 0.5591 GB, free: 1.535 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.1579, allocations: 0 / 0.5591 GB, free: 1.535 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002457/0.1581, allocations: 85.56 kB / 0.5592 GB, free: 1.445 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/0.1582, allocations: 55.41 kB / 0.5593 GB, free: 1.379 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.1583, allocations: 133.8 kB / 0.5594 GB, free: 1.238 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.1583, allocations: 29.7 kB / 0.5594 GB, free: 1.203 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.522e-05/0.1584, allocations: 104.1 kB / 0.5595 GB, free: 1.098 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.59e-05/0.1584, allocations: 15.98 kB / 0.5596 GB, free: 1.082 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.687e-05/0.1585, allocations: 37.64 kB / 0.5596 GB, free: 1.039 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1586, allocations: 322.8 kB / 0.5599 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.339e-05/0.1587, allocations: 15.98 kB / 0.5599 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.748e-05/0.1587, allocations: 38.56 kB / 0.5599 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.336e-05/0.1588, allocations: 50.52 kB / 0.56 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1588, allocations: 4 kB / 0.56 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001495/0.159, allocations: 89.53 kB / 0.5601 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.159, allocations: 8 kB / 0.5601 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.159, allocations: 3.938 kB / 0.5601 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.159, allocations: 0 / 0.5601 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.344e-05/0.1591, allocations: 11.98 kB / 0.5601 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1591, allocations: 0 / 0.5601 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.567e-05/0.1591, allocations: 4 kB / 0.5601 GB, free: 480 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.1592, allocations: 4.391 kB / 0.5601 GB, free: 476 kB / 414.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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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.0001039/0.1593, allocations: 121.9 kB / 0.5602 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.093e-05/0.1593, allocations: 15.88 kB / 0.5602 GB, free: 328 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.552e-05/0.1593, allocations: 16.66 kB / 0.5603 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1593, allocations: 0 / 0.5603 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1593, allocations: 0 / 0.5603 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1593, allocations: 0 / 0.5603 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004233/0.1597, allocations: 350.4 kB / 0.5606 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1597, allocations: 0 / 0.5606 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.248e-05/0.1598, allocations: 8 kB / 0.5606 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1598, allocations: 4 kB / 0.5606 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.956e-06/0.1598, allocations: 3.938 kB / 0.5606 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1598, allocations: 192 / 0.5606 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.1598, allocations: 3.984 kB / 0.5606 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000243/0.1601, allocations: 195.4 kB / 0.5608 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.31e-05/0.1601, allocations: 89.08 kB / 0.5609 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.1601, allocations: 4 kB / 0.5609 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.245e-05/0.1602, allocations: 8.062 kB / 0.5609 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.292e-05/0.1603, allocations: 15.97 kB / 0.5609 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.1603, allocations: 0 / 0.5609 GB, free: 15.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001014/0.1604, allocations: 113.2 kB / 0.561 GB, free: 15.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1604, allocations: 0 / 0.561 GB, free: 15.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.1606, allocations: 19.94 kB / 0.561 GB, free: 15.41 MB / 430.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 (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.0006232/0.1613, allocations: 0.724 MB / 0.5618 GB, free: 14.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.1614, allocations: 43.92 kB / 0.5618 GB, free: 14.62 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1614, allocations: 4 kB / 0.5618 GB, free: 14.62 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.02e-05/0.1615, allocations: 16 kB / 0.5618 GB, free: 14.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.1618, allocations: 24.17 kB / 0.5618 GB, free: 14.58 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.1635, allocations: 1.517 MB / 0.5633 GB, free: 12.97 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.1638, allocations: 0.6924 MB / 0.564 GB, free: 12.25 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.363e-05/0.1638, allocations: 12.42 kB / 0.564 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.758e-05/0.1639, allocations: 27.44 kB / 0.564 GB, free: 12.21 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1639, allocations: 0 / 0.564 GB, free: 12.21 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02535/0.1892, allocations: 2.219 MB / 0.5662 GB, free: 10.06 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/7.932, allocations: 8.625 kB / 0.5662 GB, free: 10.05 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997805 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.006964641041122]