Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.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.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesHelium",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.001717/0.001717, 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.002196/0.002196, allocations: 196.2 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.394/1.394, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04869/0.04869, allocations: 9.089 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.002444/0.002444, allocations: 63.89 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1182, allocations: 48.17 MB / 386.3 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.02714/0.1454, allocations: 17.35 MB / 403.7 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02257/0.168, allocations: 16.8 MB / 420.5 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/0.1683, allocations: 0 / 420.5 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.1695, allocations: 267.1 kB / 420.7 MB, free: 6.562 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.02275/0.1923, allocations: 6.027 MB / 426.7 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1864/0.3787, allocations: 0.5367 MB / 427.3 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003159/0.3791, allocations: 187.1 kB / 427.5 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.502e-05/0.3791, allocations: 7.609 kB / 427.5 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.3793, allocations: 83.31 kB / 427.6 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.3794, allocations: 52.27 kB / 427.6 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.3794, allocations: 10.41 kB / 427.6 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02236/0.4018, allocations: 9.18 MB / 436.8 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.942e-05/0.4019, allocations: 16.56 kB / 436.8 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.4021, allocations: 51.42 kB / 436.9 MB, free: 18.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/0.4138, allocations: 4.017 MB / 440.9 MB, free: 18.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.4139, allocations: 3.156 kB / 440.9 MB, free: 18.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4139, allocations: 1.469 kB / 440.9 MB, free: 18.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.4139, allocations: 0 / 440.9 MB, free: 18.32 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.00197/0.4159, allocations: 0.8851 MB / 441.8 MB, free: 17.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.4159, allocations: 9.688 kB / 441.8 MB, free: 17.7 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.129e-05/0.4159, allocations: 41.22 kB / 441.8 MB, free: 17.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.4161, allocations: 26.22 kB / 441.8 MB, free: 17.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.4163, allocations: 198.4 kB / 442 MB, free: 17.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.4163, allocations: 3 kB / 442 MB, free: 17.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.4164, allocations: 7.594 kB / 442 MB, free: 17.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.4165, allocations: 136.5 kB / 442.2 MB, free: 17.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.4166, allocations: 1.875 kB / 442.2 MB, free: 17.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-06/0.4166, allocations: 0 / 442.2 MB, free: 17.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.4166, allocations: 7.812 kB / 442.2 MB, free: 17.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.4167, allocations: 96.98 kB / 442.3 MB, free: 17.4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000501/0.4172, allocations: 0.583 MB / 442.9 MB, free: 16.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.4175, allocations: 126.4 kB / 443 MB, free: 16.86 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.387e-05/0.4175, allocations: 79.25 kB / 443.1 MB, free: 16.85 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05655/0.4741, allocations: 33.18 MB / 476.2 MB, free: 17.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.78e-05/0.4742, allocations: 36.84 kB / 476.3 MB, free: 17.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 4.559e-06/0.4742, allocations: 4 kB / 476.3 MB, free: 17.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007593/0.475, allocations: 228.1 kB / 476.5 MB, free: 17.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.4751, allocations: 83.62 kB / 476.6 MB, free: 17.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.418e-05/0.4752, allocations: 121.1 kB / 476.7 MB, free: 17.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.4752, allocations: 25.7 kB / 476.7 MB, free: 17.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.4753, allocations: 86.42 kB / 476.8 MB, free: 16.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.277e-05/0.4753, allocations: 80.38 kB / 476.9 MB, free: 16.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.4754, allocations: 37.95 kB / 476.9 MB, free: 16.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.4755, allocations: 326.4 kB / 477.3 MB, free: 16.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.923e-05/0.4756, allocations: 43.61 kB / 477.3 MB, free: 16.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.118e-05/0.4756, allocations: 64.2 kB / 477.4 MB, free: 16.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.4758, allocations: 124.6 kB / 477.5 MB, free: 16.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4758, allocations: 0 / 477.5 MB, free: 16.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002182/0.476, allocations: 170.8 kB / 477.6 MB, free: 16.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.476, allocations: 4 kB / 477.6 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.4761, allocations: 0 / 477.6 MB, free: 16.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.4761, allocations: 11.98 kB / 477.7 MB, free: 16.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.642e-05/0.4762, allocations: 20.69 kB / 477.7 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.4762, allocations: 3.938 kB / 477.7 MB, free: 16.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.604e-05/0.4763, allocations: 11.84 kB / 477.7 MB, free: 16.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.4763, allocations: 7.188 kB / 477.7 MB, free: 16.27 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 0.0001055/0.4764, allocations: 117.7 kB / 477.8 MB, free: 16.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.924e-05/0.4765, allocations: 11.89 kB / 477.8 MB, free: 16.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004394/0.4769, allocations: 317.4 kB / 478.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002683/0.4772, allocations: 245.9 kB / 478.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.4772, allocations: 4.812 kB / 478.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.4772, allocations: 0 / 478.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008904/0.4781, allocations: 0.7559 MB / 479.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4782, allocations: 0 / 479.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.4783, allocations: 35.98 kB / 479.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4783, allocations: 8 kB / 479.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.4783, allocations: 7.875 kB / 479.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.4784, allocations: 4 kB / 479.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4784, allocations: 2.906 kB / 479.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005093/0.4789, allocations: 0.5182 MB / 479.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.257e-05/0.4789, allocations: 95.19 kB / 479.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.479, allocations: 7.938 kB / 479.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.4791, allocations: 4.062 kB / 479.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.251e-05/0.4792, allocations: 26.91 kB / 479.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.4792, allocations: 4 kB / 479.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.248e-05/0.4793, allocations: 102.2 kB / 480 MB, free: 14.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4793, allocations: 0 / 480 MB, free: 14.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003622/0.4829, allocations: 0.9202 MB / 480.9 MB, free: 13.5 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.005885/0.4888, allocations: 2.406 MB / 483.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004789/0.4893, allocations: 267 kB / 483.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4893, allocations: 0 / 483.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.4895, allocations: 115.8 kB / 483.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.4905, allocations: 148.8 kB / 483.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003849/0.4943, allocations: 2.418 MB / 486.2 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.4946, allocations: 0.7289 MB / 486.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.4948, allocations: 49.97 kB / 487 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.317e-05/0.4949, allocations: 63.42 kB / 487.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4949, allocations: 0 / 487.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05846/0.5534, allocations: 30.62 MB / 0.5055 GB, free: 8.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.043/9.596, allocations: 17.44 kB / 0.5056 GB, free: 8.848 MB / 382.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium_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_CheckDerivativesHelium.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesHelium.pipe 2>&1)