Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.001567/0.001567, allocations: 120.8 kB / 20.33 MB, free: 1.543 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.001565/0.001565, allocations: 214 kB / 23.61 MB, free: 4.93 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.455/1.455, allocations: 230.5 MB / 257.2 MB, free: 8.059 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.2217/0.2217, allocations: 44.91 MB / 358.6 MB, free: 6.328 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",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.002194/0.002194, allocations: 68.12 kB / 0.4927 GB, free: 10.87 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3101, allocations: 65.47 MB / 0.5566 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002246/0.3123, allocations: 0.8163 MB / 0.5574 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002206/0.3125, allocations: 52.47 kB / 0.5575 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.938e-05/0.3126, allocations: 1.5 kB / 0.5575 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.3127, allocations: 7.875 kB / 0.5575 GB, free: 6.863 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.76e-05/0.3127, allocations: 1.219 kB / 0.5575 GB, free: 6.863 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001234/0.3128, allocations: 27.19 kB / 0.5575 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001222/0.313, allocations: 34.98 kB / 0.5575 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.3131, allocations: 18.52 kB / 0.5576 GB, free: 6.809 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.876e-05/0.3131, allocations: 12.59 kB / 0.5576 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.276e-05/0.3131, allocations: 14.11 kB / 0.5576 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.3132, allocations: 7.75 kB / 0.5576 GB, free: 6.785 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.046e-05/0.3132, allocations: 6.594 kB / 0.5576 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.3132, allocations: 9.281 kB / 0.5576 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.841e-05/0.3132, allocations: 15.25 kB / 0.5576 GB, free: 6.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.3133, allocations: 44.41 kB / 0.5577 GB, free: 6.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3133, allocations: 0.9688 kB / 0.5577 GB, free: 6.727 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3133, allocations: 0 / 0.5577 GB, free: 6.727 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.3134, allocations: 0 / 0.5577 GB, free: 6.727 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004548/0.3138, allocations: 280.4 kB / 0.5579 GB, free: 6.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.3139, allocations: 12.41 kB / 0.5579 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.951e-05/0.3139, allocations: 38.75 kB / 0.558 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.885e-05/0.3139, allocations: 8.891 kB / 0.558 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001957/0.3141, allocations: 114.5 kB / 0.5581 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.3141, allocations: 4.375 kB / 0.5581 GB, free: 6.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.3141, allocations: 8.312 kB / 0.5581 GB, free: 6.223 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.3143, allocations: 46.25 kB / 0.5582 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.3143, allocations: 3.938 kB / 0.5582 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.3143, allocations: 4 kB / 0.5582 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.3143, allocations: 0 / 0.5582 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.486e-05/0.3143, allocations: 19.98 kB / 0.5582 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004971/0.3148, allocations: 263.7 kB / 0.5584 GB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.676e-05/0.3149, allocations: 26.56 kB / 0.5585 GB, free: 5.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.99e-05/0.3149, allocations: 8.922 kB / 0.5585 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.3149, allocations: 0 / 0.5585 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.952e-05/0.315, allocations: 59.36 kB / 0.5585 GB, free: 5.727 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.315, allocations: 0 / 0.5585 GB, free: 5.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001439/0.3152, allocations: 49.81 kB / 0.5586 GB, free: 5.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.3152, allocations: 51.41 kB / 0.5586 GB, free: 5.609 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.3153, allocations: 117.8 kB / 0.5587 GB, free: 5.484 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.3153, allocations: 29.7 kB / 0.5588 GB, free: 5.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.935e-05/0.3154, allocations: 92.08 kB / 0.5589 GB, free: 5.355 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.3154, allocations: 7.953 kB / 0.5589 GB, free: 5.348 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.307e-05/0.3154, allocations: 21.72 kB / 0.5589 GB, free: 5.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.3156, allocations: 315.2 kB / 0.5592 GB, free: 5.004 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.146e-05/0.3156, allocations: 15.92 kB / 0.5592 GB, free: 4.988 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.934e-05/0.3156, allocations: 21.7 kB / 0.5592 GB, free: 4.961 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.563e-05/0.3157, allocations: 29.66 kB / 0.5592 GB, free: 4.926 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.3157, allocations: 3.938 kB / 0.5592 GB, free: 4.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.739e-05/0.3158, allocations: 57.62 kB / 0.5593 GB, free: 4.859 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.3158, allocations: 4 kB / 0.5593 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3158, allocations: 4 kB / 0.5593 GB, free: 4.852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.3158, allocations: 0 / 0.5593 GB, free: 4.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.133e-05/0.3158, allocations: 4 kB / 0.5593 GB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3158, allocations: 0 / 0.5593 GB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.335e-05/0.3159, allocations: 11.88 kB / 0.5593 GB, free: 4.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.3159, allocations: 7.984 kB / 0.5593 GB, free: 4.828 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.186e-05/0.316, allocations: 113.8 kB / 0.5594 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.205e-05/0.316, allocations: 8.031 kB / 0.5595 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.799e-05/0.316, allocations: 8 kB / 0.5595 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.316, allocations: 0 / 0.5595 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.316, allocations: 4 kB / 0.5595 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.316, allocations: 3.938 kB / 0.5595 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002961/0.3163, allocations: 269.6 kB / 0.5597 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.3163, allocations: 0 / 0.5597 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.257e-05/0.3163, allocations: 4 kB / 0.5597 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3163, allocations: 0 / 0.5597 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.3164, allocations: 7.938 kB / 0.5597 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.3164, allocations: 0 / 0.5597 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3164, allocations: 0 / 0.5597 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001497/0.3165, allocations: 155.5 kB / 0.5599 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.082e-05/0.3165, allocations: 3.953 kB / 0.5599 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.3165, allocations: 3.938 kB / 0.5599 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.067e-05/0.3166, allocations: 4 kB / 0.5599 GB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.127e-05/0.3166, allocations: 0 / 0.5599 GB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.3166, allocations: 8.062 kB / 0.5599 GB, free: 4.164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.589e-05/0.3167, allocations: 91.27 kB / 0.56 GB, free: 4.074 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3167, allocations: 0 / 0.56 GB, free: 4.074 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002194/0.3169, allocations: 11.94 kB / 0.56 GB, free: 4.062 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004289/0.3173, allocations: 0.6817 MB / 0.5607 GB, free: 3.355 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.807e-05/0.3174, allocations: 23.98 kB / 0.5607 GB, free: 3.332 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.3174, allocations: 7.938 kB / 0.5607 GB, free: 3.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.068e-05/0.3174, allocations: 15.92 kB / 0.5607 GB, free: 3.309 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.3177, allocations: 4 kB / 0.5607 GB, free: 3.305 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.3189, allocations: 1.29 MB / 0.562 GB, free: 1.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.584e-05/0.319, allocations: 67.34 kB / 0.562 GB, free: 1.844 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.237e-05/0.319, allocations: 4.234 kB / 0.562 GB, free: 1.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.099e-05/0.319, allocations: 19.44 kB / 0.5621 GB, free: 1.82 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.319, allocations: 0 / 0.5621 GB, free: 1.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02826/0.3473, allocations: 1.661 MB / 0.5637 GB, free: 300 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.34, allocations: 11.94 kB / 0.5637 GB, free: 288 kB / 398.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.294897679239511]