Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007633/0.007633, allocations: 99.53 kB / 15.73 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001982/0.001982, allocations: 195.9 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05248/0.05247, allocations: 9.096 MB / 279 MB, free: 12.06 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002089/0.002089, allocations: 71.83 kB / 387 MB, free: 8.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2673, allocations: 48.17 MB / 435.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01931/0.2867, allocations: 17.41 MB / 452.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01925/0.306, allocations: 16.92 MB / 469.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.3062, allocations: 0 / 469.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009888/0.3072, allocations: 289.5 kB / 469.8 MB, free: 12.38 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeBindings: time 0.01929/0.3265, allocations: 6.307 MB / 476.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00182/0.3283, allocations: 0.5675 MB / 476.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000331/0.3287, allocations: 207 kB / 476.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.905e-05/0.3288, allocations: 9.125 kB / 476.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.3289, allocations: 91.52 kB / 476.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.3291, allocations: 51.83 kB / 477 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.3291, allocations: 8 kB / 477 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02146/0.3506, allocations: 10.46 MB / 487.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.297e-05/0.3506, allocations: 11.92 kB / 487.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.3508, allocations: 55.73 kB / 487.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0135/0.3643, allocations: 4.146 MB / 491.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.3643, allocations: 0 / 491.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3643, allocations: 0 / 491.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.3643, allocations: 0 / 491.7 MB, free: 8.125 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.002188/0.3665, allocations: 0.9161 MB / 492.6 MB, free: 7.156 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.3666, allocations: 8.031 kB / 492.6 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.555e-05/0.3666, allocations: 38.56 kB / 492.6 MB, free: 7.102 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.3668, allocations: 39.75 kB / 492.7 MB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.3671, allocations: 202.9 kB / 492.9 MB, free: 6.824 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.3671, allocations: 8 kB / 492.9 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.3672, allocations: 4 kB / 492.9 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.3674, allocations: 135.3 kB / 493 MB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3674, allocations: 3.938 kB / 493 MB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.3674, allocations: 3.938 kB / 493 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.3674, allocations: 3.938 kB / 493 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001499/0.3676, allocations: 99.95 kB / 493.1 MB, free: 6.559 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007382/0.3683, allocations: 0.5699 MB / 493.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002813/0.3686, allocations: 129.1 kB / 493.8 MB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.3688, allocations: 77.75 kB / 493.9 MB, free: 5.684 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06568/0.4345, allocations: 33.17 MB / 0.5147 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.901e-05/0.4346, allocations: 46.5 kB / 0.5148 GB, free: 14.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.375e-06/0.4346, allocations: 0 / 0.5148 GB, free: 14.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007442/0.4353, allocations: 225.7 kB / 0.515 GB, free: 14.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.4354, allocations: 85.05 kB / 0.5151 GB, free: 14.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.4355, allocations: 113.8 kB / 0.5152 GB, free: 14.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.4355, allocations: 33.7 kB / 0.5152 GB, free: 14.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.631e-05/0.4356, allocations: 84.53 kB / 0.5153 GB, free: 14.35 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.811e-05/0.4357, allocations: 83.27 kB / 0.5154 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.824e-05/0.4358, allocations: 41.7 kB / 0.5154 GB, free: 14.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002329/0.436, allocations: 322.8 kB / 0.5157 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.137e-05/0.4361, allocations: 47.98 kB / 0.5158 GB, free: 13.85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.221e-05/0.4362, allocations: 61.69 kB / 0.5158 GB, free: 13.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.4366, allocations: 129.8 kB / 0.5159 GB, free: 13.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4366, allocations: 0 / 0.5159 GB, free: 13.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002663/0.4369, allocations: 165.6 kB / 0.5161 GB, free: 13.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.4369, allocations: 4.375 kB / 0.5161 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.4369, allocations: 8.141 kB / 0.5161 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.437, allocations: 4 kB / 0.5161 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.427e-05/0.4371, allocations: 23.94 kB / 0.5161 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.4371, allocations: 7.922 kB / 0.5161 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.797e-05/0.4371, allocations: 15.88 kB / 0.5162 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.4372, allocations: 4 kB / 0.5162 GB, free: 13.42 MB / 414.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 (state_p.phase,state_h.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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 prepare postOptimizeDAE: time 0.0001127/0.4373, allocations: 121.8 kB / 0.5163 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.164e-05/0.4373, allocations: 7.953 kB / 0.5163 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000556/0.4379, allocations: 313.2 kB / 0.5166 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003131/0.4382, allocations: 241.5 kB / 0.5168 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.4383, allocations: 0 / 0.5168 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.4383, allocations: 7.922 kB / 0.5168 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.4393, allocations: 0.7619 MB / 0.5176 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.4393, allocations: 0 / 0.5176 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.4395, allocations: 40.11 kB / 0.5176 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.4395, allocations: 4 kB / 0.5176 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.4395, allocations: 8 kB / 0.5176 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.4395, allocations: 3.938 kB / 0.5176 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4395, allocations: 0 / 0.5176 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006134/0.4401, allocations: 0.5337 MB / 0.5181 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.596e-05/0.4402, allocations: 101 kB / 0.5182 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.4403, allocations: 0 / 0.5182 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.4404, allocations: 8 kB / 0.5182 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.446e-05/0.4404, allocations: 15.98 kB / 0.5183 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.4405, allocations: 4 kB / 0.5183 GB, free: 11.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.368e-05/0.4405, allocations: 91.27 kB / 0.5183 GB, free: 11.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.014e-06/0.4405, allocations: 4 kB / 0.5184 GB, free: 11.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002488/0.443, allocations: 0.9462 MB / 0.5193 GB, free: 10.12 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_h_int,d_p_int) * Number of discrete variables: 4 (state_h.phase,$cse2.phase,state_p.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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.005791/0.4488, allocations: 2.456 MB / 0.5217 GB, free: 7.629 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004923/0.4494, allocations: 259.2 kB / 0.5219 GB, free: 7.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4494, allocations: 0 / 0.5219 GB, free: 7.363 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.4495, allocations: 116.2 kB / 0.522 GB, free: 7.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.4506, allocations: 149.2 kB / 0.5222 GB, free: 7.105 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003769/0.4544, allocations: 2.447 MB / 0.5246 GB, free: 4.562 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.4548, allocations: 0.7289 MB / 0.5253 GB, free: 3.809 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001848/0.455, allocations: 45.89 kB / 0.5253 GB, free: 3.766 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.4551, allocations: 67.42 kB / 0.5254 GB, free: 3.699 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4551, allocations: 0 / 0.5254 GB, free: 3.699 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07118/0.5263, allocations: 30.75 MB / 0.5554 GB, free: 4.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.769/10.3, allocations: 0 / 0.5554 GB, free: 4.98 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide_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_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1)