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.001908/0.001908, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002139/0.002139, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.505/1.505, allocations: 230.6 MB / 257.5 MB, free: 8 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.2308/0.2308, allocations: 44.91 MB / 358.8 MB, free: 6.27 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.002115/0.002115, allocations: 59.91 kB / 0.4931 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3402, allocations: 65.47 MB / 0.557 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002303/0.3425, allocations: 0.8247 MB / 0.5578 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002442/0.3427, allocations: 51.92 kB / 0.5579 GB, free: 6.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.434e-05/0.3428, allocations: 1.375 kB / 0.5579 GB, free: 6.859 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.3429, allocations: 7.875 kB / 0.5579 GB, free: 6.852 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.022e-05/0.343, allocations: 5.344 kB / 0.5579 GB, free: 6.848 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001368/0.3431, allocations: 19.61 kB / 0.5579 GB, free: 6.832 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001317/0.3432, allocations: 38.08 kB / 0.5579 GB, free: 6.809 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.3433, allocations: 23.41 kB / 0.558 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.846e-05/0.3434, allocations: 11.81 kB / 0.558 GB, free: 6.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.637e-05/0.3434, allocations: 14.11 kB / 0.558 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.589e-05/0.3434, allocations: 3.469 kB / 0.558 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.18e-05/0.3435, allocations: 5.469 kB / 0.558 GB, free: 6.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.742e-05/0.3435, allocations: 3.984 kB / 0.558 GB, free: 6.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.857e-05/0.3435, allocations: 23.86 kB / 0.558 GB, free: 6.742 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.3436, allocations: 35.78 kB / 0.5581 GB, free: 6.707 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3436, allocations: 3.938 kB / 0.5581 GB, free: 6.703 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3436, allocations: 0 / 0.5581 GB, free: 6.703 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.3436, allocations: 0 / 0.5581 GB, free: 6.703 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.0004413/0.3441, allocations: 291.1 kB / 0.5583 GB, free: 6.383 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3441, allocations: 8.031 kB / 0.5583 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.898e-05/0.3441, allocations: 34.73 kB / 0.5584 GB, free: 6.332 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.684e-05/0.3442, allocations: 8.891 kB / 0.5584 GB, free: 6.324 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.3444, allocations: 118.5 kB / 0.5585 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.691e-06/0.3444, allocations: 384 / 0.5585 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.3444, allocations: 8.375 kB / 0.5585 GB, free: 6.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.3445, allocations: 54.25 kB / 0.5586 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.3445, allocations: 7.875 kB / 0.5586 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/0.3445, allocations: 0 / 0.5586 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3445, allocations: 0 / 0.5586 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.324e-05/0.3446, allocations: 12 kB / 0.5586 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000512/0.3451, allocations: 263.8 kB / 0.5588 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.784e-05/0.3452, allocations: 26.52 kB / 0.5589 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.024e-05/0.3452, allocations: 12.86 kB / 0.5589 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-06/0.3452, allocations: 0 / 0.5589 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.245e-05/0.3453, allocations: 55.42 kB / 0.5589 GB, free: 5.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.3453, allocations: 0 / 0.5589 GB, free: 5.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001566/0.3454, allocations: 49.62 kB / 0.559 GB, free: 5.625 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.3455, allocations: 55.41 kB / 0.559 GB, free: 5.559 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.3456, allocations: 121.8 kB / 0.5591 GB, free: 5.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.3456, allocations: 29.7 kB / 0.5592 GB, free: 5.395 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.467e-05/0.3457, allocations: 96.16 kB / 0.5593 GB, free: 5.297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.171e-05/0.3457, allocations: 3.953 kB / 0.5593 GB, free: 5.293 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.3457, allocations: 17.72 kB / 0.5593 GB, free: 5.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.3459, allocations: 330.7 kB / 0.5596 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.518e-05/0.3459, allocations: 0 / 0.5596 GB, free: 4.938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.074e-05/0.346, allocations: 21.72 kB / 0.5596 GB, free: 4.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.872e-05/0.346, allocations: 33.64 kB / 0.5596 GB, free: 4.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.346, allocations: 0 / 0.5596 GB, free: 4.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.361e-05/0.3461, allocations: 54.02 kB / 0.5597 GB, free: 4.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.3461, allocations: 4 kB / 0.5597 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.3461, allocations: 0 / 0.5597 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.3461, allocations: 0 / 0.5597 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.515e-05/0.3462, allocations: 7.938 kB / 0.5597 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3462, allocations: 0 / 0.5597 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.319e-05/0.3462, allocations: 11.89 kB / 0.5597 GB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.3462, allocations: 8.016 kB / 0.5597 GB, free: 4.781 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 0.0001741/0.3464, allocations: 117.8 kB / 0.5598 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.208e-06/0.3464, allocations: 0 / 0.5598 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.622e-05/0.3464, allocations: 11.98 kB / 0.5598 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3464, allocations: 0 / 0.5598 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3464, allocations: 0 / 0.5598 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3464, allocations: 3.938 kB / 0.5599 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003433/0.3468, allocations: 269.6 kB / 0.5601 GB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3468, allocations: 4 kB / 0.5601 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.265e-05/0.3468, allocations: 3.984 kB / 0.5601 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3468, allocations: 4 kB / 0.5601 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.3468, allocations: 7.938 kB / 0.5601 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3468, allocations: 0 / 0.5601 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3468, allocations: 0 / 0.5601 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001976/0.347, allocations: 143.5 kB / 0.5603 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.512e-05/0.347, allocations: 7.984 kB / 0.5603 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.3471, allocations: 4.375 kB / 0.5603 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.66e-05/0.3471, allocations: 7.984 kB / 0.5603 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.3472, allocations: 7.938 kB / 0.5603 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.3472, allocations: 4 kB / 0.5603 GB, free: 4.113 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001141/0.3473, allocations: 95.2 kB / 0.5604 GB, free: 4.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3473, allocations: 0 / 0.5604 GB, free: 4.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002236/0.3475, allocations: 11.94 kB / 0.5604 GB, free: 4.008 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.0005082/0.348, allocations: 0.6734 MB / 0.5611 GB, free: 3.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001102/0.3481, allocations: 31.8 kB / 0.5611 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3481, allocations: 0 / 0.5611 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.779e-05/0.3481, allocations: 4 kB / 0.5611 GB, free: 3.273 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.3484, allocations: 18.22 kB / 0.5611 GB, free: 3.258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/0.3498, allocations: 1.278 MB / 0.5624 GB, free: 1.895 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.3501, allocations: 0.6885 MB / 0.563 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.13e-05/0.3502, allocations: 8.516 kB / 0.563 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.987e-05/0.3502, allocations: 11.44 kB / 0.563 GB, free: 1.16 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3502, allocations: 0 / 0.563 GB, free: 1.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02997/0.3802, allocations: 1.663 MB / 0.5647 GB, free: 15.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.32, allocations: 19.17 kB / 0.5647 GB, free: 15.61 MB / 414.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.404025696996541]