Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 212.2 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.592/1.592, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2436/0.2436, allocations: 46.96 MB / 360.9 MB, free: 4.023 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002356/0.002356, allocations: 67.89 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3921, allocations: 66.04 MB / 0.5606 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003289/0.3954, allocations: 1.613 MB / 0.5622 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.3965, allocations: 487.8 kB / 0.5626 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.242e-05/0.3965, allocations: 11.94 kB / 0.5626 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.3967, allocations: 11.88 kB / 0.5626 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.412e-05/0.3967, allocations: 7.922 kB / 0.5627 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.397, allocations: 35.84 kB / 0.5627 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.3971, allocations: 87.75 kB / 0.5628 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.3972, allocations: 18.05 kB / 0.5628 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.318e-05/0.3973, allocations: 23.94 kB / 0.5628 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.683e-05/0.3974, allocations: 31.78 kB / 0.5628 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.427e-05/0.3974, allocations: 8 kB / 0.5629 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.481e-05/0.3974, allocations: 8 kB / 0.5629 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.131e-05/0.3974, allocations: 19.97 kB / 0.5629 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.366e-05/0.3975, allocations: 31.8 kB / 0.5629 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.3977, allocations: 75.59 kB / 0.563 GB, free: 1.758 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3977, allocations: 0 / 0.563 GB, free: 1.758 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3977, allocations: 0 / 0.563 GB, free: 1.758 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.3977, allocations: 0 / 0.563 GB, free: 1.758 MB / 398.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.0006565/0.3983, allocations: 326.8 kB / 0.5633 GB, free: 1.406 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3984, allocations: 8.031 kB / 0.5633 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.149e-05/0.3984, allocations: 38.75 kB / 0.5633 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.433e-05/0.3984, allocations: 12.89 kB / 0.5633 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.3987, allocations: 146.3 kB / 0.5635 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.3987, allocations: 4.375 kB / 0.5635 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.3988, allocations: 8.375 kB / 0.5635 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001608/0.3989, allocations: 76.47 kB / 0.5636 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.3989, allocations: 0 / 0.5636 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.3989, allocations: 7.984 kB / 0.5636 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.399, allocations: 4 kB / 0.5636 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.51e-05/0.399, allocations: 27.98 kB / 0.5636 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006105/0.3996, allocations: 319.6 kB / 0.5639 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.3998, allocations: 46.5 kB / 0.564 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.668e-05/0.3998, allocations: 16.92 kB / 0.564 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.3998, allocations: 4 kB / 0.564 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001413/0.4, allocations: 67.38 kB / 0.564 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.4, allocations: 0 / 0.564 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002491/0.4002, allocations: 97.5 kB / 0.5641 GB, free: 440 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.4003, allocations: 55.34 kB / 0.5642 GB, free: 372 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.4004, allocations: 136 kB / 0.5643 GB, free: 228 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.4004, allocations: 41.69 kB / 0.5644 GB, free: 180 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.4005, allocations: 96.09 kB / 0.5645 GB, free: 80 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.4005, allocations: 15.97 kB / 0.5645 GB, free: 64 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.4006, allocations: 25.72 kB / 0.5645 GB, free: 32 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4007, allocations: 326.8 kB / 0.5648 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.053e-05/0.4008, allocations: 12 kB / 0.5648 GB, free: 15.69 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.026e-05/0.4008, allocations: 38.56 kB / 0.5649 GB, free: 15.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.249e-05/0.4009, allocations: 50.52 kB / 0.5649 GB, free: 15.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4009, allocations: 0 / 0.5649 GB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000152/0.4011, allocations: 101.5 kB / 0.565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.4011, allocations: 8 kB / 0.565 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.4011, allocations: 3.938 kB / 0.565 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.4011, allocations: 0 / 0.565 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.858e-05/0.4012, allocations: 11.98 kB / 0.565 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.4012, allocations: 0 / 0.565 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.76e-05/0.4013, allocations: 11.98 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.4013, allocations: 4 kB / 0.565 GB, free: 15.44 MB / 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,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 0.0001186/0.4014, allocations: 125.8 kB / 0.5652 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.4014, allocations: 12.02 kB / 0.5652 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.49e-05/0.4015, allocations: 12.66 kB / 0.5652 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.4015, allocations: 0 / 0.5652 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4015, allocations: 0 / 0.5652 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.4015, allocations: 7.984 kB / 0.5652 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003755/0.4018, allocations: 309.5 kB / 0.5655 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.4018, allocations: 0 / 0.5655 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.672e-05/0.4019, allocations: 4 kB / 0.5655 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.4019, allocations: 0 / 0.5655 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.4019, allocations: 8.188 kB / 0.5655 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4019, allocations: 0 / 0.5655 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4019, allocations: 7.938 kB / 0.5655 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002533/0.4022, allocations: 195.3 kB / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.127e-05/0.4022, allocations: 15.94 kB / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.4022, allocations: 4.031 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.771e-05/0.4023, allocations: 4 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.121e-05/0.4023, allocations: 7.984 kB / 0.5657 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/0.4023, allocations: 4 kB / 0.5657 GB, free: 14.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.889e-05/0.4024, allocations: 113.7 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4024, allocations: 0 / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002392/0.4027, allocations: 12 kB / 0.5658 GB, free: 14.54 MB / 414.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,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.000644/0.4033, allocations: 0.7247 MB / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001429/0.4035, allocations: 47.91 kB / 0.5666 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4035, allocations: 0 / 0.5666 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.496e-05/0.4035, allocations: 23.92 kB / 0.5666 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.4038, allocations: 15.94 kB / 0.5666 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.4056, allocations: 1.518 MB / 0.5681 GB, free: 12.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.804e-05/0.4057, allocations: 87.38 kB / 0.5682 GB, free: 11.99 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.696e-05/0.4057, allocations: 8.422 kB / 0.5682 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.771e-05/0.4058, allocations: 27.42 kB / 0.5682 GB, free: 11.95 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4058, allocations: 0 / 0.5682 GB, free: 11.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.4361, allocations: 2.803 MB / 0.571 GB, free: 9.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.58, allocations: 7.438 kB / 0.571 GB, free: 9.277 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 14.826677517965436]