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.001899/0.001899, allocations: 115.6 kB / 20.43 MB, free: 1.465 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.002297/0.002297, allocations: 212 kB / 23.74 MB, free: 4.688 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.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.2246/0.2246, allocations: 44.92 MB / 358.8 MB, free: 6.293 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.00207/0.00207, allocations: 63.89 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2999, allocations: 65.47 MB / 0.557 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002801/0.3027, allocations: 1.635 MB / 0.5586 GB, free: 6.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009413/0.3037, allocations: 0.5269 MB / 0.5591 GB, free: 5.617 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.167e-05/0.3038, allocations: 0 / 0.5591 GB, free: 5.617 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.3039, allocations: 11.86 kB / 0.5591 GB, free: 5.605 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.123e-05/0.3039, allocations: 11.88 kB / 0.5591 GB, free: 5.594 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001829/0.3041, allocations: 39.89 kB / 0.5592 GB, free: 5.555 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.3043, allocations: 83.7 kB / 0.5593 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.3044, allocations: 22.05 kB / 0.5593 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.22e-05/0.3044, allocations: 27.92 kB / 0.5593 GB, free: 5.426 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.885e-05/0.3045, allocations: 31.78 kB / 0.5593 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.3045, allocations: 8 kB / 0.5594 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.437e-05/0.3045, allocations: 8 kB / 0.5594 GB, free: 5.379 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.527e-05/0.3046, allocations: 11.98 kB / 0.5594 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.145e-05/0.3046, allocations: 39.73 kB / 0.5594 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.3048, allocations: 79.59 kB / 0.5595 GB, free: 5.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3048, allocations: 4 kB / 0.5595 GB, free: 5.246 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3048, allocations: 0 / 0.5595 GB, free: 5.246 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.3048, allocations: 0 / 0.5595 GB, free: 5.246 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.0005596/0.3053, allocations: 329.2 kB / 0.5598 GB, free: 4.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.3054, allocations: 12.03 kB / 0.5598 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.538e-05/0.3054, allocations: 38.73 kB / 0.5599 GB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.303e-05/0.3055, allocations: 8.891 kB / 0.5599 GB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.3057, allocations: 142.4 kB / 0.56 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.3057, allocations: 8.375 kB / 0.56 GB, free: 4.656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.287e-05/0.3057, allocations: 8.312 kB / 0.56 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.3059, allocations: 81.78 kB / 0.5601 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.3059, allocations: 4 kB / 0.5601 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.3059, allocations: 0 / 0.5601 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3059, allocations: 7.938 kB / 0.5601 GB, free: 4.551 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.631e-05/0.306, allocations: 31.98 kB / 0.5601 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005676/0.3066, allocations: 323.6 kB / 0.5604 GB, free: 4.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.3067, allocations: 46.56 kB / 0.5605 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.403e-05/0.3067, allocations: 12.89 kB / 0.5605 GB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.3067, allocations: 4 kB / 0.5605 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.3069, allocations: 71.36 kB / 0.5606 GB, free: 4.004 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.3069, allocations: 4 kB / 0.5606 GB, free: 4 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002236/0.3071, allocations: 89.8 kB / 0.5607 GB, free: 3.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.3071, allocations: 51.41 kB / 0.5607 GB, free: 3.844 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.3073, allocations: 136.5 kB / 0.5608 GB, free: 3.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.3073, allocations: 29.7 kB / 0.5609 GB, free: 3.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.701e-05/0.3074, allocations: 104.1 kB / 0.561 GB, free: 3.562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.3074, allocations: 23.92 kB / 0.561 GB, free: 3.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.581e-05/0.3074, allocations: 25.7 kB / 0.561 GB, free: 3.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3076, allocations: 326.8 kB / 0.5613 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.138e-05/0.3076, allocations: 16 kB / 0.5613 GB, free: 3.164 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.364e-05/0.3077, allocations: 38.5 kB / 0.5614 GB, free: 3.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.991e-05/0.3077, allocations: 54.56 kB / 0.5614 GB, free: 3.055 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3078, allocations: 0 / 0.5614 GB, free: 3.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001492/0.3079, allocations: 97.53 kB / 0.5615 GB, free: 2.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3079, allocations: 4 kB / 0.5615 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3079, allocations: 3.938 kB / 0.5615 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.3079, allocations: 7.984 kB / 0.5615 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.472e-05/0.308, allocations: 7.984 kB / 0.5615 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.308, allocations: 4 kB / 0.5615 GB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.328e-05/0.3081, allocations: 4 kB / 0.5616 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.3081, allocations: 4 kB / 0.5616 GB, free: 2.918 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.746e-05/0.3082, allocations: 129.8 kB / 0.5617 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.657e-05/0.3082, allocations: 7.953 kB / 0.5617 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.891e-05/0.3082, allocations: 12.66 kB / 0.5617 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.3082, allocations: 4 kB / 0.5617 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.3082, allocations: 0 / 0.5617 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3082, allocations: 0 / 0.5617 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000371/0.3086, allocations: 321.5 kB / 0.562 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3086, allocations: 0 / 0.562 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.652e-05/0.3087, allocations: 8.125 kB / 0.562 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.3087, allocations: 4 kB / 0.562 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.3087, allocations: 11.92 kB / 0.562 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3087, allocations: 0 / 0.562 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3087, allocations: 0 / 0.562 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.3089, allocations: 187.4 kB / 0.5622 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.787e-05/0.3089, allocations: 11.94 kB / 0.5622 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.3089, allocations: 12.03 kB / 0.5622 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-05/0.309, allocations: 0 / 0.5622 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/0.3091, allocations: 12.05 kB / 0.5622 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.3091, allocations: 7.984 kB / 0.5623 GB, free: 2.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.148e-05/0.3092, allocations: 103.3 kB / 0.5623 GB, free: 2.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3092, allocations: 0 / 0.5623 GB, free: 2.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003679/0.3095, allocations: 16 kB / 0.5624 GB, free: 2.004 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.0005116/0.3101, allocations: 0.7201 MB / 0.5631 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.3102, allocations: 52.3 kB / 0.5631 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3102, allocations: 0 / 0.5631 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.966e-05/0.3102, allocations: 20.14 kB / 0.5631 GB, free: 1.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003169/0.3106, allocations: 18.48 kB / 0.5632 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.3122, allocations: 1.522 MB / 0.5646 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.3125, allocations: 0.6968 MB / 0.5653 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.713e-05/0.3126, allocations: 8.438 kB / 0.5653 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.661e-05/0.3126, allocations: 27.42 kB / 0.5654 GB, free: 14.8 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3126, allocations: 0 / 0.5654 GB, free: 14.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03179/0.3444, allocations: 2.368 MB / 0.5677 GB, free: 12.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.53, allocations: 8.812 kB / 0.5677 GB, free: 12.55 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.623163775999274]