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.0008725/0.0008725, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008898/0.0008898, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9209/0.9209, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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.2591/0.2591, allocations: 34.24 MB / 294.8 MB, free: 0.6953 MB / 266.7 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 1.733e-06/1.733e-06, allocations: 0 / 442.1 MB, free: 1.598 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.491e-05/2.664e-05, allocations: 2.281 kB / 442.1 MB, free: 1.594 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.1716/0.1716, allocations: 1.61 MB / 443.8 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007364/0.1724, allocations: 499.2 kB / 444.2 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.627e-05/0.1725, allocations: 3.938 kB / 444.2 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.1726, allocations: 7.219 kB / 444.3 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.207e-05/0.1726, allocations: 21.19 kB / 444.3 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001801/0.1728, allocations: 37.25 kB / 444.3 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001184/0.1729, allocations: 77.92 kB / 444.4 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.173, allocations: 26.31 kB / 444.4 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.784e-05/0.1731, allocations: 40.95 kB / 444.4 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.685e-05/0.1731, allocations: 22.66 kB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.543e-05/0.1732, allocations: 10.97 kB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.025e-05/0.1732, allocations: 5.25 kB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.235e-05/0.1732, allocations: 18.33 kB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.1732, allocations: 25.69 kB / 444.5 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.1734, allocations: 71.92 kB / 444.6 MB, free: 43.14 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1734, allocations: 0 / 444.6 MB, free: 43.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1734, allocations: 0 / 444.6 MB, free: 43.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1734, allocations: 3.938 kB / 444.6 MB, free: 43.13 MB / 410.7 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.0004491/0.1738, allocations: 331.8 kB / 444.9 MB, free: 42.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1739, allocations: 13.78 kB / 444.9 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.93e-05/0.1739, allocations: 37.91 kB / 445 MB, free: 42.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.1739, allocations: 11.39 kB / 445 MB, free: 42.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.1741, allocations: 131 kB / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.1741, allocations: 3.969 kB / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.1742, allocations: 12.88 kB / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001118/0.1743, allocations: 78.64 kB / 445.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.1743, allocations: 192 / 445.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.1743, allocations: 8.062 kB / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1743, allocations: 2.969 kB / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.041e-05/0.1744, allocations: 35.42 kB / 445.3 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003793/0.1747, allocations: 317.1 kB / 445.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.129e-05/0.1748, allocations: 42.55 kB / 445.6 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.223e-05/0.1749, allocations: 14.36 kB / 445.6 MB, free: 42.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.1749, allocations: 0 / 445.6 MB, free: 42.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001046/0.175, allocations: 77.48 kB / 445.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.175, allocations: 3.938 kB / 445.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001801/0.1751, allocations: 79.78 kB / 445.8 MB, free: 42.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.1752, allocations: 57.66 kB / 445.8 MB, free: 42.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.295e-05/0.1752, allocations: 139 kB / 446 MB, free: 42.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.426e-06/0.1752, allocations: 27.89 kB / 446 MB, free: 42.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.252e-05/0.1753, allocations: 103.7 kB / 446.1 MB, free: 41.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.1753, allocations: 14.75 kB / 446.1 MB, free: 41.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.1753, allocations: 28.81 kB / 446.1 MB, free: 41.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.177e-05/0.1754, allocations: 316.9 kB / 446.5 MB, free: 41.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.703e-05/0.1754, allocations: 19.53 kB / 446.5 MB, free: 41.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.074e-05/0.1754, allocations: 43.11 kB / 446.5 MB, free: 41.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.877e-05/0.1755, allocations: 46.08 kB / 446.6 MB, free: 41.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1755, allocations: 0 / 446.6 MB, free: 41.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.266e-05/0.1755, allocations: 94.08 kB / 446.7 MB, free: 41.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.1756, allocations: 6.125 kB / 446.7 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1756, allocations: 5.594 kB / 446.7 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.1756, allocations: 3.984 kB / 446.7 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.094e-05/0.1756, allocations: 13.16 kB / 446.7 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.1756, allocations: 6.812 kB / 446.7 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.038e-05/0.1757, allocations: 17.84 kB / 446.7 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.1757, allocations: 2.938 kB / 446.7 MB, free: 41.54 MB / 410.7 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$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 4.793e-05/0.1757, allocations: 114.7 kB / 446.8 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.052e-05/0.1758, allocations: 12.11 kB / 446.8 MB, free: 41.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.914e-05/0.1758, allocations: 14.16 kB / 446.8 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1758, allocations: 0 / 446.8 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1758, allocations: 11.11 kB / 446.9 MB, free: 41.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1758, allocations: 4.062 kB / 446.9 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.176, allocations: 309.8 kB / 447.2 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.176, allocations: 0 / 447.2 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.566e-05/0.176, allocations: 2.438 kB / 447.2 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.176, allocations: 6.719 kB / 447.2 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.1761, allocations: 7.203 kB / 447.2 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.1761, allocations: 0 / 447.2 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1761, allocations: 0 / 447.2 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001207/0.1762, allocations: 185.8 kB / 447.4 MB, free: 41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.021e-05/0.1762, allocations: 9.516 kB / 447.4 MB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.1762, allocations: 7.938 kB / 447.4 MB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.989e-05/0.1763, allocations: 13.03 kB / 447.4 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.1763, allocations: 6.281 kB / 447.4 MB, free: 40.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.1763, allocations: 3 kB / 447.4 MB, free: 40.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.364e-05/0.1763, allocations: 109.8 kB / 447.5 MB, free: 40.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1763, allocations: 0 / 447.5 MB, free: 40.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000153/0.1765, allocations: 11.91 kB / 447.5 MB, free: 40.91 MB / 410.7 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,fallingEdge.not_u,booleanPulse.pulseStart) * 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.0002062/0.1767, allocations: 0.7281 MB / 448.2 MB, free: 40.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.76e-05/0.1768, allocations: 39.72 kB / 448.3 MB, free: 40.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1768, allocations: 4.125 kB / 448.3 MB, free: 40.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.369e-05/0.1768, allocations: 27.7 kB / 448.3 MB, free: 40.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.1771, allocations: 21.19 kB / 448.3 MB, free: 40.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008209/0.1779, allocations: 1.509 MB / 449.8 MB, free: 38.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.152e-05/0.1779, allocations: 79.62 kB / 449.9 MB, free: 38.92 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.433e-05/0.178, allocations: 13.62 kB / 449.9 MB, free: 38.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.178, allocations: 30.59 kB / 450 MB, free: 38.89 MB / 410.7 MB Notification: Performance of SimCode: time 8.72e-07/0.178, allocations: 0 / 450 MB, free: 38.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01822/0.1962, allocations: 2.957 MB / 452.9 MB, free: 37.92 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.037/7.233, allocations: 3.984 kB / 452.9 MB, free: 37.92 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/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] "" Variables in the reference:time,integrator.y Variables in the result:time,integrator.y [Calling sys.exit(0), Time elapsed: 9.341084266081452]