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.001685/0.001685, allocations: 113.2 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.002079/0.002079, allocations: 212 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.575/1.575, 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.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.229/0.229, allocations: 44.91 MB / 358.8 MB, free: 6.273 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.002095/0.002095, allocations: 61.78 kB / 0.4931 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.3031, allocations: 65.48 MB / 0.557 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002948/0.306, allocations: 1.651 MB / 0.5586 GB, free: 6.113 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.3072, allocations: 0.6027 MB / 0.5592 GB, free: 5.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.605e-05/0.3073, allocations: 11.88 kB / 0.5592 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.3074, allocations: 11.86 kB / 0.5592 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.18e-05/0.3074, allocations: 15.88 kB / 0.5593 GB, free: 5.469 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.3078, allocations: 87.81 kB / 0.5593 GB, free: 5.383 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.308, allocations: 111.7 kB / 0.5594 GB, free: 5.273 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.3081, allocations: 31.95 kB / 0.5595 GB, free: 5.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.956e-05/0.3082, allocations: 39.86 kB / 0.5595 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.071e-05/0.3083, allocations: 43.83 kB / 0.5596 GB, free: 5.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.3083, allocations: 11.94 kB / 0.5596 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.591e-05/0.3084, allocations: 8 kB / 0.5596 GB, free: 5.141 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.168e-05/0.3084, allocations: 19.92 kB / 0.5596 GB, free: 5.121 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.986e-05/0.3084, allocations: 47.72 kB / 0.5596 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.3086, allocations: 91.58 kB / 0.5597 GB, free: 4.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3086, allocations: 0 / 0.5597 GB, free: 4.984 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3086, allocations: 0 / 0.5597 GB, free: 4.984 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.3086, allocations: 0 / 0.5597 GB, free: 4.984 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.0006681/0.3093, allocations: 346.8 kB / 0.5601 GB, free: 4.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3093, allocations: 8.031 kB / 0.5601 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.353e-05/0.3094, allocations: 42.73 kB / 0.5601 GB, free: 4.555 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.3094, allocations: 12.89 kB / 0.5601 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.3097, allocations: 154.3 kB / 0.5603 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.3097, allocations: 4.375 kB / 0.5603 GB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.3097, allocations: 8.375 kB / 0.5603 GB, free: 4.355 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.31, allocations: 101.8 kB / 0.5604 GB, free: 4.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.31, allocations: 4 kB / 0.5604 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.3101, allocations: 7.984 kB / 0.5604 GB, free: 4.238 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3101, allocations: 0 / 0.5604 GB, free: 4.238 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.3102, allocations: 55.91 kB / 0.5604 GB, free: 4.184 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007192/0.3109, allocations: 355.6 kB / 0.5608 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.3113, allocations: 98.45 kB / 0.5609 GB, free: 3.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.3114, allocations: 36.92 kB / 0.5609 GB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.3114, allocations: 0 / 0.5609 GB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.3117, allocations: 99.34 kB / 0.561 GB, free: 3.539 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.3117, allocations: 4 kB / 0.561 GB, free: 3.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000501/0.3122, allocations: 145.5 kB / 0.5611 GB, free: 3.387 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.3122, allocations: 55.39 kB / 0.5612 GB, free: 3.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.3124, allocations: 151.4 kB / 0.5613 GB, free: 3.164 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.3124, allocations: 33.7 kB / 0.5614 GB, free: 3.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.881e-05/0.3125, allocations: 104.1 kB / 0.5615 GB, free: 3.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.993e-05/0.3125, allocations: 19.94 kB / 0.5615 GB, free: 3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.916e-05/0.3126, allocations: 25.7 kB / 0.5615 GB, free: 2.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3127, allocations: 326.8 kB / 0.5618 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.3129, allocations: 27.98 kB / 0.5619 GB, free: 2.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.313, allocations: 53.69 kB / 0.5619 GB, free: 2.555 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.3132, allocations: 77.61 kB / 0.562 GB, free: 2.473 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3132, allocations: 4 kB / 0.562 GB, free: 2.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003093/0.3135, allocations: 117.5 kB / 0.5621 GB, free: 2.348 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3135, allocations: 7.938 kB / 0.5621 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3136, allocations: 4 kB / 0.5621 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.3136, allocations: 0 / 0.5621 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.3137, allocations: 20.02 kB / 0.5621 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.3137, allocations: 3.938 kB / 0.5621 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.528e-05/0.3138, allocations: 15.98 kB / 0.5621 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.3138, allocations: 4 kB / 0.5621 GB, free: 2.293 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.000111/0.3139, allocations: 117.8 kB / 0.5623 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.3139, allocations: 19.83 kB / 0.5623 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.097e-05/0.314, allocations: 17 kB / 0.5623 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.314, allocations: 4 kB / 0.5623 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.314, allocations: 0 / 0.5623 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.314, allocations: 7.938 kB / 0.5623 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005878/0.3146, allocations: 357.5 kB / 0.5626 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3146, allocations: 4 kB / 0.5626 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.855e-05/0.3147, allocations: 15.98 kB / 0.5627 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3147, allocations: 0 / 0.5627 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.3147, allocations: 0 / 0.5627 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3147, allocations: 400 / 0.5627 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.3147, allocations: 3.984 kB / 0.5627 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004925/0.3152, allocations: 255.3 kB / 0.5629 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.108e-05/0.3152, allocations: 19.81 kB / 0.5629 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.3152, allocations: 8 kB / 0.5629 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.3154, allocations: 19.97 kB / 0.563 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/0.3154, allocations: 7.984 kB / 0.563 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.3154, allocations: 8 kB / 0.563 GB, free: 1.363 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.3156, allocations: 113.6 kB / 0.5631 GB, free: 1.254 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3156, allocations: 0 / 0.5631 GB, free: 1.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002737/0.3158, allocations: 23.94 kB / 0.5631 GB, free: 1.23 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.0008127/0.3166, allocations: 0.771 MB / 0.5639 GB, free: 444 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003109/0.317, allocations: 75.89 kB / 0.5639 GB, free: 368 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.317, allocations: 4.125 kB / 0.5639 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.3171, allocations: 47.91 kB / 0.564 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.3174, allocations: 19.92 kB / 0.564 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002783/0.3202, allocations: 1.698 MB / 0.5657 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.3206, allocations: 0.6962 MB / 0.5663 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.988e-05/0.3207, allocations: 12.48 kB / 0.5663 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.716e-05/0.3207, allocations: 35.42 kB / 0.5664 GB, free: 13.73 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3207, allocations: 192 / 0.5664 GB, free: 13.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03052/0.3513, allocations: 2.759 MB / 0.5691 GB, free: 11.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.43, allocations: 10.75 kB / 0.5691 GB, free: 11.09 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.512142232997576]