Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.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.CheckDerivativesButane,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesButane,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane",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.00751/0.00751, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001263/0.001263, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.404/1.404, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05056/0.05056, allocations: 9.1 MB / 279 MB, free: 12.08 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.00213/0.00213, allocations: 75.88 kB / 387 MB, free: 8.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2649, allocations: 48.16 MB / 435.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01959/0.2845, allocations: 17.42 MB / 452.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01873/0.3033, allocations: 16.91 MB / 469.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.3035, allocations: 0 / 469.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007897/0.3043, allocations: 294.1 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.01753/0.3219, allocations: 6.113 MB / 475.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.3237, allocations: 0.5597 MB / 476.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.324, allocations: 206.9 kB / 476.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.854e-05/0.3241, allocations: 13.11 kB / 476.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.3242, allocations: 79.66 kB / 476.7 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.3243, allocations: 67.75 kB / 476.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.3244, allocations: 4 kB / 476.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0196/0.344, allocations: 9.927 MB / 486.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.578e-05/0.344, allocations: 15.92 kB / 486.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.3442, allocations: 59.67 kB / 486.8 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.3564, allocations: 4.021 MB / 490.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3564, allocations: 4 kB / 490.8 MB, free: 8.973 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3564, allocations: 0 / 490.8 MB, free: 8.973 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.3564, allocations: 0 / 490.8 MB, free: 8.973 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.002087/0.3585, allocations: 0.92 MB / 491.7 MB, free: 8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3586, allocations: 8.031 kB / 491.8 MB, free: 7.992 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.733e-05/0.3586, allocations: 42.55 kB / 491.8 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.3588, allocations: 27.83 kB / 491.8 MB, free: 7.914 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.3591, allocations: 198.9 kB / 492 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.3591, allocations: 12 kB / 492 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.3591, allocations: 12 kB / 492 MB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.3594, allocations: 127.4 kB / 492.2 MB, free: 7.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.3594, allocations: 3.938 kB / 492.2 MB, free: 7.516 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.3594, allocations: 7.938 kB / 492.2 MB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.3594, allocations: 3.984 kB / 492.2 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.3596, allocations: 99.84 kB / 492.3 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007317/0.3603, allocations: 0.5699 MB / 492.8 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000275/0.3606, allocations: 137.1 kB / 493 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.3607, allocations: 77.75 kB / 493.1 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0662/0.4269, allocations: 33.18 MB / 0.5139 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/0.427, allocations: 34.55 kB / 0.5139 GB, free: 15.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.504e-06/0.427, allocations: 0 / 0.5139 GB, free: 15.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006923/0.4277, allocations: 229.4 kB / 0.5142 GB, free: 15.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.4278, allocations: 81.11 kB / 0.5142 GB, free: 15.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.4279, allocations: 117.8 kB / 0.5143 GB, free: 15.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.428, allocations: 25.7 kB / 0.5144 GB, free: 15.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.428, allocations: 96.5 kB / 0.5145 GB, free: 15.19 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.891e-05/0.4281, allocations: 79.28 kB / 0.5145 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.269e-05/0.4282, allocations: 41.64 kB / 0.5146 GB, free: 15.06 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.4283, allocations: 330.8 kB / 0.5149 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.003e-05/0.4284, allocations: 39.98 kB / 0.5149 GB, free: 14.69 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.4285, allocations: 65.69 kB / 0.515 GB, free: 14.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.4287, allocations: 121.8 kB / 0.5151 GB, free: 14.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4287, allocations: 0 / 0.5151 GB, free: 14.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002891/0.429, allocations: 169.5 kB / 0.5153 GB, free: 14.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.4291, allocations: 4 kB / 0.5153 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4291, allocations: 0 / 0.5153 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.4291, allocations: 4 kB / 0.5153 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.904e-05/0.4292, allocations: 23.98 kB / 0.5153 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.4292, allocations: 0 / 0.5153 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.638e-05/0.4293, allocations: 15.89 kB / 0.5153 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.4293, allocations: 4 kB / 0.5153 GB, free: 14.27 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.0001132/0.4294, allocations: 121.7 kB / 0.5154 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.805e-05/0.4295, allocations: 7.953 kB / 0.5154 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005149/0.43, allocations: 330 kB / 0.5158 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000324/0.4304, allocations: 237.4 kB / 0.516 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4304, allocations: 0 / 0.516 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.4304, allocations: 4 kB / 0.516 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.4315, allocations: 0.7542 MB / 0.5167 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4315, allocations: 0 / 0.5167 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.4316, allocations: 39.92 kB / 0.5168 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.4317, allocations: 4 kB / 0.5168 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.4317, allocations: 8 kB / 0.5168 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.4317, allocations: 160 / 0.5168 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.4317, allocations: 8.109 kB / 0.5168 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006415/0.4323, allocations: 0.5337 MB / 0.5173 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.777e-05/0.4324, allocations: 100.9 kB / 0.5174 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.4325, allocations: 4 kB / 0.5174 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.4326, allocations: 12.06 kB / 0.5174 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.4326, allocations: 11.98 kB / 0.5174 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.4327, allocations: 11.98 kB / 0.5174 GB, free: 12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.487e-05/0.4327, allocations: 91.28 kB / 0.5175 GB, free: 11.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4327, allocations: 0 / 0.5175 GB, free: 11.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002372/0.4351, allocations: 0.9462 MB / 0.5184 GB, free: 10.96 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.004577/0.4397, allocations: 2.409 MB / 0.5208 GB, free: 8.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004321/0.4402, allocations: 263.2 kB / 0.5211 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4402, allocations: 0 / 0.5211 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.4403, allocations: 116.7 kB / 0.5212 GB, free: 8.137 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009764/0.4413, allocations: 144.5 kB / 0.5213 GB, free: 7.996 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.4448, allocations: 2.442 MB / 0.5237 GB, free: 5.457 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.4453, allocations: 0.7405 MB / 0.5244 GB, free: 4.691 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.4455, allocations: 38.05 kB / 0.5244 GB, free: 4.656 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.4456, allocations: 67.41 kB / 0.5245 GB, free: 4.59 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4456, allocations: 4 kB / 0.5245 GB, free: 4.586 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.071/0.5166, allocations: 30.66 MB / 0.5545 GB, free: 5.926 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.42/9.937, allocations: 11.8 kB / 0.5545 GB, free: 5.914 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane_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_CheckDerivativesButane.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1)