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.005336/0.005336, allocations: 100.8 kB / 15.73 MB, free: 6.445 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.00125/0.00125, allocations: 191.1 kB / 16.67 MB, free: 6.348 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.407/1.407, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.07073/0.07073, allocations: 9.102 MB / 279 MB, free: 12.09 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.001473/0.001473, allocations: 66.41 kB / 387 MB, free: 8.496 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2907, allocations: 48.17 MB / 435.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.02044/0.3112, allocations: 17.41 MB / 452.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01817/0.3294, allocations: 16.92 MB / 469.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.3296, allocations: 1.188 kB / 469.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009252/0.3306, allocations: 318.7 kB / 469.8 MB, free: 12.36 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.01874/0.3494, allocations: 6.651 MB / 476.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001775/0.3512, allocations: 0.6143 MB / 477.1 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002498/0.3514, allocations: 199 kB / 477.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.147e-05/0.3515, allocations: 5.125 kB / 477.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.3516, allocations: 91.64 kB / 477.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.3518, allocations: 67.7 kB / 477.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.3518, allocations: 7.938 kB / 477.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01892/0.3707, allocations: 10.46 MB / 487.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.519e-05/0.3708, allocations: 11.92 kB / 487.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.3709, allocations: 59.72 kB / 487.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01427/0.3852, allocations: 4.146 MB / 492.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.3853, allocations: 0 / 492.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3853, allocations: 0 / 492.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.3853, allocations: 0 / 492.1 MB, free: 7.711 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.002452/0.3878, allocations: 0.92 MB / 493 MB, free: 6.738 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/0.3878, allocations: 8.031 kB / 493 MB, free: 6.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.15e-05/0.3879, allocations: 38.56 kB / 493.1 MB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/0.3881, allocations: 31.83 kB / 493.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.3883, allocations: 202.9 kB / 493.3 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.3883, allocations: 8 kB / 493.3 MB, free: 6.406 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.3884, allocations: 8 kB / 493.3 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.3886, allocations: 131.3 kB / 493.4 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.3886, allocations: 0 / 493.4 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.3886, allocations: 3.938 kB / 493.4 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.3887, allocations: 4 kB / 493.4 MB, free: 6.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.3888, allocations: 99.89 kB / 493.5 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007174/0.3895, allocations: 0.5699 MB / 494.1 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002698/0.3898, allocations: 137.1 kB / 494.2 MB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.3899, allocations: 81.75 kB / 494.3 MB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06096/0.4509, allocations: 33.16 MB / 0.5151 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.451, allocations: 42.5 kB / 0.5152 GB, free: 14.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.915e-06/0.451, allocations: 0 / 0.5152 GB, free: 14.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007832/0.4518, allocations: 221.4 kB / 0.5154 GB, free: 14.3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.4519, allocations: 85.11 kB / 0.5155 GB, free: 14.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.452, allocations: 117.7 kB / 0.5156 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.452, allocations: 33.7 kB / 0.5156 GB, free: 14.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.045e-05/0.4521, allocations: 88.53 kB / 0.5157 GB, free: 13.94 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.968e-05/0.4522, allocations: 87.19 kB / 0.5158 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.712e-05/0.4522, allocations: 45.7 kB / 0.5158 GB, free: 13.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.4524, allocations: 322.8 kB / 0.5161 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.346e-05/0.4524, allocations: 43.98 kB / 0.5162 GB, free: 13.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.93e-05/0.4525, allocations: 65.69 kB / 0.5162 GB, free: 13.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.4527, allocations: 117.8 kB / 0.5163 GB, free: 13.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4527, allocations: 0 / 0.5163 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002371/0.453, allocations: 173.5 kB / 0.5165 GB, free: 13.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.453, allocations: 8 kB / 0.5165 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.453, allocations: 3.984 kB / 0.5165 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.453, allocations: 4 kB / 0.5165 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.896e-05/0.4531, allocations: 16 kB / 0.5165 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.4531, allocations: 0 / 0.5165 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.736e-05/0.4532, allocations: 11.89 kB / 0.5165 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.851e-05/0.4532, allocations: 8 kB / 0.5166 GB, free: 13.02 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 9.447e-05/0.4533, allocations: 125.7 kB / 0.5167 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.382e-05/0.4534, allocations: 11.95 kB / 0.5167 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004299/0.4538, allocations: 317.5 kB / 0.517 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002676/0.4541, allocations: 237.5 kB / 0.5172 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4541, allocations: 0 / 0.5172 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.4541, allocations: 0 / 0.5172 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008802/0.455, allocations: 0.7696 MB / 0.518 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.455, allocations: 0 / 0.518 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.4552, allocations: 39.92 kB / 0.518 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.4552, allocations: 0 / 0.518 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.4552, allocations: 8 kB / 0.518 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.4552, allocations: 0 / 0.518 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4553, allocations: 128 / 0.518 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005371/0.4558, allocations: 0.5415 MB / 0.5185 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.169e-05/0.4559, allocations: 96.98 kB / 0.5186 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.872e-05/0.4559, allocations: 7.984 kB / 0.5186 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.456, allocations: 8 kB / 0.5186 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.315e-05/0.4561, allocations: 11.98 kB / 0.5187 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.4561, allocations: 8 kB / 0.5187 GB, free: 10.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.974e-05/0.4561, allocations: 95.58 kB / 0.5188 GB, free: 10.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4561, allocations: 4 kB / 0.5188 GB, free: 10.65 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002691/0.4588, allocations: 0.9385 MB / 0.5197 GB, free: 9.711 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.004439/0.4633, allocations: 2.46 MB / 0.5221 GB, free: 7.219 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004005/0.4637, allocations: 251.3 kB / 0.5223 GB, free: 6.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4637, allocations: 0 / 0.5223 GB, free: 6.961 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.4639, allocations: 120.6 kB / 0.5224 GB, free: 6.844 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009709/0.4649, allocations: 149 kB / 0.5226 GB, free: 6.699 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00296/0.4678, allocations: 2.446 MB / 0.525 GB, free: 4.156 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.4682, allocations: 0.7289 MB / 0.5257 GB, free: 3.402 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.4683, allocations: 42 kB / 0.5257 GB, free: 3.363 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.4684, allocations: 67.41 kB / 0.5258 GB, free: 3.297 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4685, allocations: 0 / 0.5258 GB, free: 3.297 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0677/0.5362, allocations: 30.75 MB / 0.5558 GB, free: 4.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.39/9.926, allocations: 3.438 kB / 0.5558 GB, free: 4.57 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)