Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.001331/0.001331, 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.001404/0.001404, allocations: 209.2 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.777 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.2316/0.2316, allocations: 44.93 MB / 358.8 MB, free: 6.039 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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",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.002172/0.002172, allocations: 67.91 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3463, allocations: 65.47 MB / 0.557 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003097/0.3494, allocations: 1.617 MB / 0.5585 GB, free: 5.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.3505, allocations: 0.56 MB / 0.5591 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.965e-05/0.3505, allocations: 0 / 0.5591 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.391e-05/0.3506, allocations: 7.875 kB / 0.5591 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.506e-05/0.3507, allocations: 23.8 kB / 0.5591 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003241/0.351, allocations: 87.77 kB / 0.5592 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001875/0.3512, allocations: 111.7 kB / 0.5593 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.76e-05/0.3513, allocations: 27.95 kB / 0.5593 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.54e-05/0.3514, allocations: 51.84 kB / 0.5594 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.401e-05/0.3514, allocations: 31.83 kB / 0.5594 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.964e-05/0.3514, allocations: 8 kB / 0.5594 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.627e-05/0.3515, allocations: 8 kB / 0.5594 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.688e-05/0.3515, allocations: 27.86 kB / 0.5594 GB, free: 4.949 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.989e-05/0.3515, allocations: 31.8 kB / 0.5595 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001458/0.3517, allocations: 95.5 kB / 0.5596 GB, free: 4.824 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.3517, allocations: 4 kB / 0.5596 GB, free: 4.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.3517, allocations: 0 / 0.5596 GB, free: 4.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.3517, allocations: 0 / 0.5596 GB, free: 4.82 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005647/0.3523, allocations: 352.5 kB / 0.5599 GB, free: 4.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.815e-05/0.3523, allocations: 8.031 kB / 0.5599 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.948e-05/0.3523, allocations: 42.73 kB / 0.56 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.695e-05/0.3524, allocations: 16.88 kB / 0.56 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.3526, allocations: 157 kB / 0.5601 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.3526, allocations: 4.375 kB / 0.5601 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.3526, allocations: 12.38 kB / 0.5601 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.3529, allocations: 97.77 kB / 0.5602 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.3529, allocations: 0 / 0.5602 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3529, allocations: 8 kB / 0.5602 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.886e-06/0.3529, allocations: 0 / 0.5602 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.3531, allocations: 51.95 kB / 0.5603 GB, free: 4.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000611/0.3537, allocations: 343.6 kB / 0.5606 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.354, allocations: 102.5 kB / 0.5607 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/0.3542, allocations: 32.92 kB / 0.5607 GB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.3542, allocations: 3.938 kB / 0.5608 GB, free: 3.492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.3545, allocations: 99.36 kB / 0.5608 GB, free: 3.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.3545, allocations: 0 / 0.5608 GB, free: 3.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004254/0.3549, allocations: 145.5 kB / 0.561 GB, free: 3.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.3549, allocations: 55.41 kB / 0.561 GB, free: 3.168 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.3551, allocations: 148.6 kB / 0.5612 GB, free: 3.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.3551, allocations: 33.7 kB / 0.5612 GB, free: 2.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.454e-05/0.3552, allocations: 104 kB / 0.5613 GB, free: 2.871 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.3552, allocations: 23.94 kB / 0.5613 GB, free: 2.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-05/0.3553, allocations: 29.7 kB / 0.5614 GB, free: 2.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3554, allocations: 318.8 kB / 0.5617 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.3555, allocations: 31.98 kB / 0.5617 GB, free: 2.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.3556, allocations: 57.69 kB / 0.5618 GB, free: 2.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.3559, allocations: 73.73 kB / 0.5618 GB, free: 2.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3559, allocations: 4 kB / 0.5618 GB, free: 2.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002822/0.3561, allocations: 117.5 kB / 0.5619 GB, free: 2.195 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.3562, allocations: 14.75 kB / 0.562 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.3562, allocations: 0 / 0.562 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.3562, allocations: 0 / 0.562 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.549e-05/0.3563, allocations: 15.98 kB / 0.562 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.3563, allocations: 0 / 0.562 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.523e-05/0.3564, allocations: 24.02 kB / 0.562 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.3564, allocations: 0 / 0.562 GB, free: 2.145 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.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.0001123/0.3565, allocations: 121.8 kB / 0.5621 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.237e-05/0.3565, allocations: 15.84 kB / 0.5621 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.145e-05/0.3565, allocations: 20.7 kB / 0.5621 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3565, allocations: 0 / 0.5621 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.3565, allocations: 0 / 0.5621 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.3565, allocations: 0 / 0.5621 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005411/0.3571, allocations: 349.6 kB / 0.5625 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3571, allocations: 0 / 0.5625 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.137e-05/0.3572, allocations: 19.86 kB / 0.5625 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.3572, allocations: 8 kB / 0.5625 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.3572, allocations: 4 kB / 0.5625 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3572, allocations: 400 / 0.5625 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3572, allocations: 0 / 0.5625 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000458/0.3577, allocations: 255.3 kB / 0.5627 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.373e-05/0.3577, allocations: 15.92 kB / 0.5628 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.3577, allocations: 0 / 0.5628 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.3578, allocations: 19.97 kB / 0.5628 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.3579, allocations: 20.03 kB / 0.5628 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.3579, allocations: 4 kB / 0.5628 GB, free: 1.227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.445e-05/0.358, allocations: 112.8 kB / 0.5629 GB, free: 1.117 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.358, allocations: 96 / 0.5629 GB, free: 1.117 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.3582, allocations: 23.88 kB / 0.5629 GB, free: 1.094 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,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.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.0007977/0.359, allocations: 0.7748 MB / 0.5637 GB, free: 300 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000292/0.3593, allocations: 83.88 kB / 0.5638 GB, free: 216 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3593, allocations: 0 / 0.5638 GB, free: 216 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.3594, allocations: 40.11 kB / 0.5638 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.3597, allocations: 15.98 kB / 0.5638 GB, free: 160 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.3622, allocations: 1.704 MB / 0.5655 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.737e-05/0.3623, allocations: 85.31 kB / 0.5656 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.624e-05/0.3624, allocations: 8.484 kB / 0.5656 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.01e-05/0.3624, allocations: 23.44 kB / 0.5656 GB, free: 14.23 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3624, allocations: 0 / 0.5656 GB, free: 14.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02895/0.3914, allocations: 3.238 MB / 0.5688 GB, free: 11.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.73, allocations: 18.86 kB / 0.5688 GB, free: 11.11 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000995025 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.749779814854264]