Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001797/0.001797, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002161/0.002161, allocations: 209.3 kB / 23.73 MB, free: 4.387 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.516/1.516, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2303/0.2303, allocations: 44.93 MB / 358.8 MB, free: 6.055 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 62.09 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.343, allocations: 65.47 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003245/0.3462, allocations: 1.606 MB / 0.5585 GB, free: 5.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000984/0.3472, allocations: 499.8 kB / 0.559 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.493e-05/0.3473, allocations: 0 / 0.559 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.3474, allocations: 11.86 kB / 0.559 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.825e-05/0.3475, allocations: 19.8 kB / 0.559 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001724/0.3476, allocations: 35.91 kB / 0.5591 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.3478, allocations: 75.83 kB / 0.5591 GB, free: 5.293 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.3479, allocations: 26.03 kB / 0.5592 GB, free: 5.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.583e-05/0.3479, allocations: 35.8 kB / 0.5592 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.147e-05/0.348, allocations: 19.86 kB / 0.5592 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.348, allocations: 8 kB / 0.5592 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.559e-05/0.348, allocations: 8 kB / 0.5592 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.689e-05/0.3481, allocations: 15.92 kB / 0.5593 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.915e-05/0.3481, allocations: 31.8 kB / 0.5593 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.3483, allocations: 83.64 kB / 0.5594 GB, free: 5.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3483, allocations: 0 / 0.5594 GB, free: 5.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3483, allocations: 0 / 0.5594 GB, free: 5.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.3483, allocations: 0 / 0.5594 GB, free: 5.07 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.0005598/0.3488, allocations: 326.8 kB / 0.5597 GB, free: 4.719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.3489, allocations: 12.03 kB / 0.5597 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.3489, allocations: 38.73 kB / 0.5597 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.253e-05/0.349, allocations: 16.83 kB / 0.5597 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.3492, allocations: 130.4 kB / 0.5599 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.3492, allocations: 12.38 kB / 0.5599 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.139e-05/0.3492, allocations: 8.375 kB / 0.5599 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.3494, allocations: 77.78 kB / 0.56 GB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3494, allocations: 0 / 0.56 GB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.3494, allocations: 0 / 0.56 GB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.3494, allocations: 7.938 kB / 0.56 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.3495, allocations: 39.92 kB / 0.56 GB, free: 4.344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005593/0.3501, allocations: 311.6 kB / 0.5603 GB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.3502, allocations: 46.56 kB / 0.5603 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.22e-05/0.3502, allocations: 20.89 kB / 0.5604 GB, free: 3.918 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.3502, allocations: 0 / 0.5604 GB, free: 3.918 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.3504, allocations: 67.44 kB / 0.5604 GB, free: 3.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.3504, allocations: 0 / 0.5604 GB, free: 3.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002092/0.3506, allocations: 85.52 kB / 0.5605 GB, free: 3.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.3506, allocations: 59.39 kB / 0.5606 GB, free: 3.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.3507, allocations: 137.8 kB / 0.5607 GB, free: 3.535 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.3508, allocations: 25.7 kB / 0.5607 GB, free: 3.504 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.944e-05/0.3508, allocations: 96.09 kB / 0.5608 GB, free: 3.406 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.81e-05/0.3509, allocations: 27.95 kB / 0.5608 GB, free: 3.379 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.447e-05/0.3509, allocations: 29.72 kB / 0.5609 GB, free: 3.344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3511, allocations: 322.8 kB / 0.5612 GB, free: 3.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.047e-05/0.3511, allocations: 19.98 kB / 0.5612 GB, free: 3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.065e-05/0.3512, allocations: 42.45 kB / 0.5612 GB, free: 2.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.572e-05/0.3512, allocations: 46.56 kB / 0.5613 GB, free: 2.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3512, allocations: 0 / 0.5613 GB, free: 2.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001367/0.3514, allocations: 89.53 kB / 0.5614 GB, free: 2.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.3514, allocations: 4 kB / 0.5614 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.3514, allocations: 8 kB / 0.5614 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.3514, allocations: 4 kB / 0.5614 GB, free: 2.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.361e-05/0.3515, allocations: 7.938 kB / 0.5614 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.3515, allocations: 4 kB / 0.5614 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.467e-05/0.3515, allocations: 11.98 kB / 0.5614 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.3515, allocations: 4 kB / 0.5614 GB, free: 2.758 MB / 398.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.463e-05/0.3516, allocations: 113.8 kB / 0.5615 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/0.3517, allocations: 7.953 kB / 0.5615 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.833e-05/0.3517, allocations: 16.64 kB / 0.5615 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3517, allocations: 7.984 kB / 0.5615 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3517, allocations: 4 kB / 0.5615 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3517, allocations: 0 / 0.5615 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003398/0.352, allocations: 321.4 kB / 0.5619 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.352, allocations: 0 / 0.5619 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-05/0.3521, allocations: 8.172 kB / 0.5619 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3521, allocations: 0 / 0.5619 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.3521, allocations: 3.938 kB / 0.5619 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.3521, allocations: 0 / 0.5619 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3521, allocations: 480 / 0.5619 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002311/0.3523, allocations: 199.3 kB / 0.5621 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.609e-05/0.3524, allocations: 7.984 kB / 0.5621 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.3524, allocations: 4.062 kB / 0.5621 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.153e-05/0.3525, allocations: 11.98 kB / 0.5621 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.3525, allocations: 7.984 kB / 0.5621 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.3525, allocations: 4 kB / 0.5621 GB, free: 1.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.598e-05/0.3526, allocations: 105.5 kB / 0.5622 GB, free: 1.871 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3526, allocations: 0 / 0.5622 GB, free: 1.871 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002274/0.3528, allocations: 16 kB / 0.5622 GB, free: 1.855 MB / 398.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.0005941/0.3534, allocations: 0.724 MB / 0.5629 GB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001319/0.3535, allocations: 48.11 kB / 0.563 GB, free: 1.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3535, allocations: 4.062 kB / 0.563 GB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.853e-05/0.3536, allocations: 23.92 kB / 0.563 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.3539, allocations: 15.98 kB / 0.563 GB, free: 1.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.3555, allocations: 1.518 MB / 0.5645 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.082e-05/0.3556, allocations: 83.17 kB / 0.5646 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.477e-05/0.3556, allocations: 8.438 kB / 0.5646 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.117e-05/0.3557, allocations: 27.42 kB / 0.5646 GB, free: 15.27 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3557, allocations: 4 kB / 0.5646 GB, free: 15.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.3846, allocations: 2.805 MB / 0.5673 GB, free: 12.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.65, allocations: 3.938 kB / 0.5673 GB, free: 12.59 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.842993041034788]