Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.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.001388/0.001388, allocations: 110.6 kB / 18.94 MB, free: 2.789 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.001597/0.001597, allocations: 219.5 kB / 22.26 MB, free: 5.219 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.479/1.479, allocations: 207.6 MB / 233 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05188/0.05188, allocations: 9.158 MB / 294.4 MB, free: 12.69 MB / 238.1 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",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.002319/0.002319, allocations: 80.42 kB / 411.1 MB, free: 46.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08584/0.08816, allocations: 50.75 MB / 461.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01852/0.1067, allocations: 12.94 MB / 474.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.1177, allocations: 8.63 MB / 483.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.1178, allocations: 0 / 483.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002359/0.1181, allocations: 47.72 kB / 483.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005813/0.1239, allocations: 1.881 MB / 485.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007072/0.131, allocations: 2.276 MB / 487.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.1312, allocations: 127.1 kB / 487.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.415e-05/0.1312, allocations: 4 kB / 487.8 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.465e-05/0.1313, allocations: 51.78 kB / 487.8 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.1314, allocations: 47.78 kB / 487.8 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.1315, allocations: 4 kB / 487.9 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.014/0.1455, allocations: 6.938 MB / 494.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.014e-05/0.1455, allocations: 23.84 kB / 494.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.1456, allocations: 43.81 kB / 494.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01152/0.1571, allocations: 3.777 MB / 498.6 MB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1571, allocations: 0 / 498.6 MB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1571, allocations: 0 / 498.6 MB, free: 7.809 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.1571, allocations: 0 / 498.6 MB, free: 7.809 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.002699/0.1598, allocations: 0.8224 MB / 499.5 MB, free: 6.953 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1599, allocations: 15.92 kB / 499.5 MB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.923e-05/0.1599, allocations: 50.73 kB / 499.5 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003501/0.1603, allocations: 48.8 kB / 499.6 MB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.1605, allocations: 142.4 kB / 499.7 MB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.1605, allocations: 8.312 kB / 499.7 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.1606, allocations: 15.95 kB / 499.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009009/0.1615, allocations: 259.1 kB / 500 MB, free: 6.379 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1615, allocations: 0 / 500 MB, free: 6.379 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.1615, allocations: 4 kB / 500 MB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.1615, allocations: 4 kB / 500 MB, free: 6.371 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007846/0.1623, allocations: 219.7 kB / 0.4885 GB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008333/0.1631, allocations: 0.638 MB / 0.4891 GB, free: 5.422 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009124/0.164, allocations: 240.9 kB / 0.4893 GB, free: 5.168 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.521e-05/0.1641, allocations: 49.75 kB / 0.4894 GB, free: 5.113 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1199/0.284, allocations: 33.49 MB / 0.5221 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.229e-05/0.2841, allocations: 30.56 kB / 0.5221 GB, free: 3.543 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.315e-06/0.2841, allocations: 7.938 kB / 0.5221 GB, free: 3.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.001746/0.2858, allocations: 365.2 kB / 0.5225 GB, free: 3.172 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.442e-05/0.2859, allocations: 85.05 kB / 0.5226 GB, free: 3.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.286, allocations: 136.2 kB / 0.5227 GB, free: 2.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.2861, allocations: 29.7 kB / 0.5227 GB, free: 2.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.484e-05/0.2861, allocations: 96.08 kB / 0.5228 GB, free: 2.797 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.634e-05/0.2862, allocations: 55.52 kB / 0.5229 GB, free: 2.742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.2863, allocations: 65.62 kB / 0.5229 GB, free: 2.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.2865, allocations: 322.8 kB / 0.5232 GB, free: 2.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.2866, allocations: 59.95 kB / 0.5233 GB, free: 2.289 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.2868, allocations: 93.64 kB / 0.5234 GB, free: 2.188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003424/0.2871, allocations: 144 kB / 0.5235 GB, free: 2.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2871, allocations: 4 kB / 0.5235 GB, free: 2.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005157/0.2877, allocations: 213.5 kB / 0.5237 GB, free: 1.816 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.2877, allocations: 11.94 kB / 0.5237 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2877, allocations: 0 / 0.5237 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.2877, allocations: 4 kB / 0.5237 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.2879, allocations: 55.89 kB / 0.5238 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.2879, allocations: 4 kB / 0.5238 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.2881, allocations: 7.891 kB / 0.5238 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/0.2881, allocations: 19.98 kB / 0.5238 GB, free: 1.715 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001412/0.2883, allocations: 133.8 kB / 0.5239 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.534e-05/0.2883, allocations: 11.89 kB / 0.524 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1894/0.4777, allocations: 2.24 MB / 0.5261 GB, free: 71.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/0.4777, allocations: 9.266 kB / 0.5262 GB, free: 71.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.4777, allocations: 0 / 0.5262 GB, free: 71.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.659e-06/0.4777, allocations: 2.438 kB / 0.5262 GB, free: 71.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.4791, allocations: 1.066 MB / 0.5272 GB, free: 71.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.4791, allocations: 0.75 kB / 0.5272 GB, free: 71.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.4794, allocations: 38.19 kB / 0.5272 GB, free: 71.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.836e-06/0.4794, allocations: 5.688 kB / 0.5272 GB, free: 71.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.4794, allocations: 1.922 kB / 0.5272 GB, free: 71.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.4794, allocations: 1.719 kB / 0.5272 GB, free: 71.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4794, allocations: 1.188 kB / 0.5272 GB, free: 71.01 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007027/0.4801, allocations: 0.6622 MB / 0.5279 GB, free: 70.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.376e-05/0.4801, allocations: 26.8 kB / 0.5279 GB, free: 70.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.4802, allocations: 8.062 kB / 0.5279 GB, free: 70.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.4803, allocations: 1.156 kB / 0.5279 GB, free: 70.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.779e-05/0.4804, allocations: 13.17 kB / 0.5279 GB, free: 70.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/0.4804, allocations: 4.062 kB / 0.5279 GB, free: 70.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.879e-05/0.4804, allocations: 101.1 kB / 0.528 GB, free: 70.65 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4804, allocations: 0 / 0.528 GB, free: 70.65 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002819/0.4833, allocations: 0.9127 MB / 0.5289 GB, free: 70.62 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.004931/0.4882, allocations: 2.196 MB / 0.5311 GB, free: 69.58 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000446/0.4886, allocations: 211.8 kB / 0.5313 GB, free: 69.51 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4886, allocations: 0.75 kB / 0.5313 GB, free: 69.51 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.4888, allocations: 125 kB / 0.5314 GB, free: 69.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006398/0.4895, allocations: 71.81 kB / 0.5315 GB, free: 69.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003577/0.493, allocations: 2.617 MB / 0.534 GB, free: 67.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.4932, allocations: 0.7362 MB / 0.5347 GB, free: 66.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006924/0.4939, allocations: 377.4 kB / 0.5351 GB, free: 66.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.4941, allocations: 68.97 kB / 0.5352 GB, free: 66.9 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4941, allocations: 0 / 0.5352 GB, free: 66.9 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07438/0.5685, allocations: 36.74 MB / 0.571 GB, free: 37.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/13.78, allocations: 11.67 kB / 0.5711 GB, free: 37.67 MB / 398.1 MB " [Timeout remaining time 646] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0004 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.58220544699725] Failed to read output from testmodel.py, exit status != 0: 13.911485401004029 13.931715097 13.770545866 Calling exit ...