Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001862/0.001862, allocations: 115 kB / 17.13 MB, free: 5.914 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.002329/0.002329, allocations: 211.2 kB / 20.1 MB, free: 2.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.571/1.571, allocations: 207.6 MB / 230.5 MB, free: 4.043 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3323/0.3323, allocations: 44.24 MB / 326.6 MB, free: 6.859 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.003641/0.003641, allocations: 79.88 kB / 462.2 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3336, allocations: 60.99 MB / 0.5109 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002662/0.3363, allocations: 0.8244 MB / 0.5117 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002639/0.3365, allocations: 53.09 kB / 0.5118 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.387e-05/0.3366, allocations: 1.125 kB / 0.5118 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000132/0.3368, allocations: 13.02 kB / 0.5118 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.507e-05/0.3368, allocations: 4 kB / 0.5118 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000136/0.3369, allocations: 16.7 kB / 0.5118 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.337, allocations: 38.03 kB / 0.5119 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.3372, allocations: 17.77 kB / 0.5119 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.472e-05/0.3372, allocations: 16.27 kB / 0.5119 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.559e-05/0.3373, allocations: 10.28 kB / 0.5119 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.3373, allocations: 3.406 kB / 0.5119 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.283e-05/0.3373, allocations: 3.344 kB / 0.5119 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.205e-05/0.3373, allocations: 12.98 kB / 0.5119 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.339e-05/0.3373, allocations: 16.47 kB / 0.5119 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001233/0.3375, allocations: 48.95 kB / 0.512 GB, free: 12.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3375, allocations: 0 / 0.512 GB, free: 12.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3375, allocations: 0 / 0.512 GB, free: 12.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.3375, allocations: 0 / 0.512 GB, free: 12.37 MB / 382.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.0004356/0.3379, allocations: 345.9 kB / 0.5123 GB, free: 12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.338, allocations: 17.41 kB / 0.5123 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.06e-05/0.338, allocations: 35.78 kB / 0.5124 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.338, allocations: 8.047 kB / 0.5124 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.3382, allocations: 182.1 kB / 0.5125 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.3383, allocations: 6.594 kB / 0.5126 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.3383, allocations: 2.906 kB / 0.5126 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.3384, allocations: 58.12 kB / 0.5126 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.3384, allocations: 3.938 kB / 0.5126 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.3384, allocations: 0 / 0.5126 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.3385, allocations: 1.188 kB / 0.5126 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.31e-05/0.3385, allocations: 20.14 kB / 0.5126 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/0.339, allocations: 300.5 kB / 0.5129 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.296e-05/0.3391, allocations: 26.11 kB / 0.5129 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.896e-05/0.3391, allocations: 8.109 kB / 0.513 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.3391, allocations: 0 / 0.513 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.901e-05/0.3392, allocations: 53.41 kB / 0.513 GB, free: 11.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.3392, allocations: 0 / 0.513 GB, free: 11.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001525/0.3394, allocations: 47.19 kB / 0.513 GB, free: 11.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.077e-05/0.3394, allocations: 55.41 kB / 0.5131 GB, free: 11.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.034e-05/0.3395, allocations: 116.1 kB / 0.5132 GB, free: 11.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.899e-06/0.3395, allocations: 33.69 kB / 0.5132 GB, free: 10.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.359e-05/0.3395, allocations: 90.28 kB / 0.5133 GB, free: 10.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.3395, allocations: 6.453 kB / 0.5133 GB, free: 10.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.935e-05/0.3396, allocations: 17.22 kB / 0.5134 GB, free: 10.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.404e-05/0.3396, allocations: 319.7 kB / 0.5137 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.515e-05/0.3396, allocations: 12.12 kB / 0.5137 GB, free: 10.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.822e-05/0.3397, allocations: 17.94 kB / 0.5137 GB, free: 10.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.566e-05/0.3397, allocations: 30.2 kB / 0.5137 GB, free: 10.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3397, allocations: 4 kB / 0.5137 GB, free: 10.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.987e-05/0.3398, allocations: 53.14 kB / 0.5138 GB, free: 10.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.3398, allocations: 5.25 kB / 0.5138 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.3398, allocations: 5.047 kB / 0.5138 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.3399, allocations: 1.219 kB / 0.5138 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.083e-05/0.3399, allocations: 6.688 kB / 0.5138 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3399, allocations: 1.094 kB / 0.5138 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.902e-05/0.3399, allocations: 10.06 kB / 0.5138 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.34, allocations: 5.203 kB / 0.5138 GB, free: 10.44 MB / 382.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 6.289e-05/0.34, allocations: 112.2 kB / 0.5139 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.34, allocations: 3.281 kB / 0.5139 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.844e-05/0.3401, allocations: 12.89 kB / 0.5139 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3401, allocations: 0.9375 kB / 0.5139 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3401, allocations: 4 kB / 0.5139 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.3401, allocations: 5 kB / 0.5139 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/0.3403, allocations: 296.3 kB / 0.5142 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3403, allocations: 384 / 0.5142 GB, free: 9.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.882e-05/0.3404, allocations: 10.08 kB / 0.5142 GB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.3404, allocations: 1.062 kB / 0.5142 GB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.3404, allocations: 3.938 kB / 0.5142 GB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3404, allocations: 5.062 kB / 0.5142 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3404, allocations: 0 / 0.5142 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.3405, allocations: 152.9 kB / 0.5144 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.12e-05/0.3406, allocations: 82.12 kB / 0.5145 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.3406, allocations: 4.906 kB / 0.5145 GB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.252e-05/0.3406, allocations: 4.891 kB / 0.5145 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.3407, allocations: 1.062 kB / 0.5145 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.3407, allocations: 6.656 kB / 0.5145 GB, free: 9.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.775e-05/0.3407, allocations: 91.33 kB / 0.5146 GB, free: 9.613 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3407, allocations: 0 / 0.5146 GB, free: 9.613 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002227/0.3409, allocations: 9.594 kB / 0.5146 GB, free: 9.609 MB / 382.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.0002884/0.3412, allocations: 0.6791 MB / 0.5152 GB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000107/0.3413, allocations: 21.8 kB / 0.5153 GB, free: 8.922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3413, allocations: 1.781 kB / 0.5153 GB, free: 8.922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.881e-05/0.3414, allocations: 13.31 kB / 0.5153 GB, free: 8.914 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.3416, allocations: 11.7 kB / 0.5153 GB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008725/0.3425, allocations: 1.3 MB / 0.5166 GB, free: 7.637 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.3426, allocations: 0.6836 MB / 0.5172 GB, free: 6.934 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.224e-05/0.3426, allocations: 2.656 kB / 0.5172 GB, free: 6.934 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.862e-05/0.3427, allocations: 14.25 kB / 0.5172 GB, free: 6.922 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3427, allocations: 0 / 0.5172 GB, free: 6.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.3687, allocations: 1.583 MB / 0.5188 GB, free: 5.965 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.144/8.512, allocations: 13.47 kB / 0.5188 GB, free: 5.957 MB / 382.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 11.60487421300786]