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.001186/0.001186, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 197.1 kB / 16.53 MB, free: 6.656 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.354/1.354, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04538/0.04538, allocations: 9.1 MB / 278.9 MB, free: 12.16 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.001444/0.001445, allocations: 71.84 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06888/0.07034, allocations: 48.15 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01789/0.08827, allocations: 17.43 MB / 403.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01495/0.1033, allocations: 16.91 MB / 420.6 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.627e-05/0.1034, allocations: 0 / 420.6 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006483/0.1041, allocations: 283.1 kB / 420.9 MB, free: 6.383 MB / 318.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.01376/0.1178, allocations: 6.319 MB / 427.2 MB, free: 52 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1432/0.2611, allocations: 0.5556 MB / 427.8 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.2613, allocations: 205.8 kB / 428 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.746e-05/0.2614, allocations: 9.797 kB / 428 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.2615, allocations: 88.77 kB / 428.1 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.2616, allocations: 62.08 kB / 428.1 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.2616, allocations: 1.844 kB / 428.1 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01521/0.2768, allocations: 10.09 MB / 438.2 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.2769, allocations: 15.12 kB / 438.3 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.688e-05/0.277, allocations: 50.83 kB / 438.3 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0093/0.2863, allocations: 4.148 MB / 442.4 MB, free: 17.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2863, allocations: 0 / 442.4 MB, free: 17.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2863, allocations: 4 kB / 442.5 MB, free: 17.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.2864, allocations: 0 / 442.5 MB, free: 17.93 MB / 318.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.001759/0.2881, allocations: 0.8853 MB / 443.3 MB, free: 17.28 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.2882, allocations: 12.83 kB / 443.4 MB, free: 17.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.2882, allocations: 37.72 kB / 443.4 MB, free: 17.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.2884, allocations: 27.33 kB / 443.4 MB, free: 17.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.2886, allocations: 206.1 kB / 443.6 MB, free: 17.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.2886, allocations: 2.562 kB / 443.6 MB, free: 17.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.2886, allocations: 11.16 kB / 443.6 MB, free: 17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.2888, allocations: 133.3 kB / 443.8 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.2888, allocations: 6.203 kB / 443.8 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.2888, allocations: 2.281 kB / 443.8 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.2889, allocations: 1.875 kB / 443.8 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001124/0.289, allocations: 96.58 kB / 443.9 MB, free: 16.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005112/0.2895, allocations: 0.5792 MB / 444.4 MB, free: 16.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002238/0.2897, allocations: 122.3 kB / 444.6 MB, free: 16.35 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.945e-05/0.2898, allocations: 85.38 kB / 444.6 MB, free: 16.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05501/0.3449, allocations: 33.17 MB / 477.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.3449, allocations: 38.5 kB / 477.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.185e-06/0.3449, allocations: 4 kB / 477.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005589/0.3455, allocations: 224.2 kB / 478.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.031e-05/0.3455, allocations: 88.56 kB / 478.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.692e-05/0.3456, allocations: 123.6 kB / 478.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.3457, allocations: 29.7 kB / 478.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.829e-05/0.3457, allocations: 84.52 kB / 478.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.222e-05/0.3457, allocations: 74.53 kB / 478.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.465e-05/0.3458, allocations: 44.83 kB / 478.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.002e-05/0.3459, allocations: 322.8 kB / 478.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.042e-05/0.346, allocations: 47.55 kB / 478.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.731e-05/0.346, allocations: 68.19 kB / 478.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.3462, allocations: 112.5 kB / 479 MB, free: 14.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3462, allocations: 0 / 479 MB, free: 14.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002002/0.3464, allocations: 171.3 kB / 479.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3464, allocations: 6.344 kB / 479.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3464, allocations: 5.844 kB / 479.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.3464, allocations: 8 kB / 479.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.011e-05/0.3465, allocations: 23.41 kB / 479.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.3466, allocations: 3.938 kB / 479.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.709e-05/0.3466, allocations: 11.84 kB / 479.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.3467, allocations: 4 kB / 479.3 MB, free: 14.66 MB / 350.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 8.724e-05/0.3467, allocations: 124.6 kB / 479.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.661e-05/0.3468, allocations: 8.656 kB / 479.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004466/0.3473, allocations: 317.2 kB / 479.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002782/0.3475, allocations: 241.8 kB / 480 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.3476, allocations: 7.219 kB / 480 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3476, allocations: 0 / 480 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009223/0.3485, allocations: 0.7534 MB / 480.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.3485, allocations: 0.75 kB / 480.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.3487, allocations: 44.77 kB / 480.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.3487, allocations: 8 kB / 480.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.3487, allocations: 0 / 480.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.3487, allocations: 4 kB / 480.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.3487, allocations: 128 / 480.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005305/0.3493, allocations: 0.5211 MB / 481.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.784e-05/0.3493, allocations: 100.5 kB / 481.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.3494, allocations: 8 kB / 481.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.3495, allocations: 8.062 kB / 481.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.892e-05/0.3495, allocations: 19.91 kB / 481.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.3496, allocations: 8 kB / 481.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.437e-05/0.3496, allocations: 98.73 kB / 481.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3496, allocations: 0 / 481.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002813/0.3524, allocations: 0.9252 MB / 482.5 MB, free: 11.68 MB / 350.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.005516/0.358, allocations: 2.443 MB / 484.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004271/0.3584, allocations: 259 kB / 485.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/0.3584, allocations: 4 kB / 485.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.3586, allocations: 117.4 kB / 485.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.3596, allocations: 140.5 kB / 485.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.3629, allocations: 2.422 MB / 487.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.3632, allocations: 0.7367 MB / 488.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.3633, allocations: 37.95 kB / 488.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.039e-05/0.3634, allocations: 59.42 kB / 488.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3634, allocations: 8 kB / 488.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08254/0.446, allocations: 30.7 MB / 0.5072 GB, free: 6.891 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.096/9.542, allocations: 3.75 kB / 0.5072 GB, free: 6.887 MB / 382.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)