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.001336/0.001336, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.00147/0.00147, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.494/1.494, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.2428/0.2428, allocations: 46.94 MB / 360.9 MB, free: 4.285 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.002091/0.002091, allocations: 71.89 kB / 0.4962 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3483, allocations: 66.03 MB / 0.5606 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002956/0.3512, allocations: 1.647 MB / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.3523, allocations: 0.5269 MB / 0.5628 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.691e-05/0.3523, allocations: 0 / 0.5628 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.3524, allocations: 7.875 kB / 0.5628 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.018e-05/0.3525, allocations: 11.86 kB / 0.5628 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.3527, allocations: 43.89 kB / 0.5628 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001568/0.3528, allocations: 75.78 kB / 0.5629 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.353, allocations: 22.05 kB / 0.5629 GB, free: 2.137 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.599e-05/0.353, allocations: 35.84 kB / 0.5629 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.279e-05/0.3531, allocations: 31.78 kB / 0.563 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.3531, allocations: 8 kB / 0.563 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.484e-05/0.3531, allocations: 8 kB / 0.563 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.838e-05/0.3532, allocations: 15.92 kB / 0.563 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.513e-05/0.3532, allocations: 31.81 kB / 0.563 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.3533, allocations: 75.66 kB / 0.5631 GB, free: 1.934 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3533, allocations: 0 / 0.5631 GB, free: 1.934 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3533, allocations: 4 kB / 0.5631 GB, free: 1.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.3534, allocations: 0 / 0.5631 GB, free: 1.93 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.0005682/0.3539, allocations: 334.8 kB / 0.5634 GB, free: 1.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.354, allocations: 16.02 kB / 0.5635 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.94e-05/0.354, allocations: 34.75 kB / 0.5635 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.07e-05/0.354, allocations: 8.891 kB / 0.5635 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.3543, allocations: 138.4 kB / 0.5636 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.3543, allocations: 12.38 kB / 0.5636 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.3543, allocations: 4.375 kB / 0.5636 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.3545, allocations: 85.67 kB / 0.5637 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.3545, allocations: 0 / 0.5637 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.467e-06/0.3545, allocations: 0 / 0.5637 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3545, allocations: 4 kB / 0.5637 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.519e-05/0.3546, allocations: 31.98 kB / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005994/0.3552, allocations: 327.6 kB / 0.5641 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001238/0.3553, allocations: 42.58 kB / 0.5641 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.714e-05/0.3554, allocations: 16.92 kB / 0.5641 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.3554, allocations: 4 kB / 0.5641 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001352/0.3555, allocations: 71.31 kB / 0.5642 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.3555, allocations: 0 / 0.5642 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000222/0.3557, allocations: 89.58 kB / 0.5643 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.3558, allocations: 51.41 kB / 0.5643 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.3559, allocations: 140.5 kB / 0.5645 GB, free: 392 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.3559, allocations: 29.7 kB / 0.5645 GB, free: 356 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.17e-05/0.356, allocations: 100.1 kB / 0.5646 GB, free: 252 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.947e-05/0.356, allocations: 27.95 kB / 0.5646 GB, free: 224 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/0.3561, allocations: 21.72 kB / 0.5646 GB, free: 196 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.3563, allocations: 322.8 kB / 0.5649 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.138e-05/0.3563, allocations: 23.94 kB / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.763e-05/0.3564, allocations: 38.5 kB / 0.565 GB, free: 15.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.912e-05/0.3564, allocations: 46.56 kB / 0.565 GB, free: 15.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3564, allocations: 0 / 0.565 GB, free: 15.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001492/0.3566, allocations: 93.53 kB / 0.5651 GB, free: 15.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.3566, allocations: 8.062 kB / 0.5651 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.3566, allocations: 3.938 kB / 0.5651 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.3566, allocations: 4 kB / 0.5652 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.578e-05/0.3567, allocations: 7.938 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.3567, allocations: 4 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.615e-05/0.3568, allocations: 7.984 kB / 0.5652 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.325e-06/0.3568, allocations: 4 kB / 0.5652 GB, free: 15.61 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 9.491e-05/0.3569, allocations: 117.8 kB / 0.5653 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.3569, allocations: 7.953 kB / 0.5653 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.559e-05/0.3569, allocations: 16.66 kB / 0.5653 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.3569, allocations: 4 kB / 0.5653 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3569, allocations: 0 / 0.5653 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.425e-06/0.3569, allocations: 8.156 kB / 0.5653 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003882/0.3573, allocations: 329.8 kB / 0.5656 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.3573, allocations: 7.938 kB / 0.5656 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.646e-05/0.3574, allocations: 3.984 kB / 0.5656 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.3574, allocations: 4 kB / 0.5657 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.3574, allocations: 0 / 0.5657 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3574, allocations: 4 kB / 0.5657 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3574, allocations: 0 / 0.5657 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002355/0.3576, allocations: 195.4 kB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.684e-05/0.3576, allocations: 7.953 kB / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.3577, allocations: 4.031 kB / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.436e-05/0.3578, allocations: 7.984 kB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.3578, allocations: 7.984 kB / 0.5659 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.3578, allocations: 4.062 kB / 0.5659 GB, free: 14.81 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.755e-05/0.3579, allocations: 109.8 kB / 0.566 GB, free: 14.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3579, allocations: 0 / 0.566 GB, free: 14.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.3581, allocations: 19.94 kB / 0.566 GB, free: 14.68 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.0005306/0.3587, allocations: 0.7241 MB / 0.5667 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001423/0.3588, allocations: 47.98 kB / 0.5668 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3588, allocations: 0 / 0.5668 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.889e-05/0.3589, allocations: 16 kB / 0.5668 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.3592, allocations: 19.92 kB / 0.5668 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.361, allocations: 1.514 MB / 0.5683 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.3613, allocations: 0.7046 MB / 0.569 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.777e-05/0.3614, allocations: 4.438 kB / 0.569 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.901e-05/0.3614, allocations: 27.42 kB / 0.569 GB, free: 11.48 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3614, allocations: 0 / 0.569 GB, free: 11.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03013/0.3916, allocations: 2.37 MB / 0.5713 GB, free: 9.242 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.49, allocations: 8.875 kB / 0.5713 GB, free: 9.234 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.571635747997789]