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.00746/0.00746, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001779/0.001779, allocations: 194.6 kB / 16.68 MB, free: 5.973 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.356/1.356, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0468/0.0468, allocations: 9.104 MB / 279 MB, free: 12.07 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.001505/0.001505, allocations: 71.84 kB / 387 MB, free: 8.496 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2465, allocations: 48.16 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01775/0.2643, allocations: 17.41 MB / 452.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.2797, allocations: 16.91 MB / 469.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.835e-05/0.2798, allocations: 0 / 469.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007249/0.2805, allocations: 322.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.01509/0.2956, allocations: 6.445 MB / 476.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001389/0.2971, allocations: 0.6065 MB / 476.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001943/0.2973, allocations: 203 kB / 477 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.287e-05/0.2973, allocations: 9.125 kB / 477.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.2974, allocations: 95.56 kB / 477.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.484e-05/0.2975, allocations: 51.78 kB / 477.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.2976, allocations: 7.938 kB / 477.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01618/0.3137, allocations: 9.938 MB / 487.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.457e-05/0.3138, allocations: 11.92 kB / 487.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.742e-05/0.3139, allocations: 47.8 kB / 487.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009698/0.3236, allocations: 4.025 MB / 491.2 MB, free: 8.539 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3236, allocations: 0 / 491.2 MB, free: 8.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3237, allocations: 0 / 491.2 MB, free: 8.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.3237, allocations: 0 / 491.2 MB, free: 8.539 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.001847/0.3255, allocations: 0.9277 MB / 492.2 MB, free: 7.559 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3256, allocations: 15.97 kB / 492.2 MB, free: 7.543 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.829e-05/0.3256, allocations: 38.55 kB / 492.2 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.3258, allocations: 35.83 kB / 492.2 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.326, allocations: 198.9 kB / 492.4 MB, free: 7.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.326, allocations: 8 kB / 492.4 MB, free: 7.219 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.3261, allocations: 8 kB / 492.4 MB, free: 7.211 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001921/0.3263, allocations: 131.3 kB / 492.6 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.3263, allocations: 4 kB / 492.6 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.3263, allocations: 7.938 kB / 492.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.3263, allocations: 4 kB / 492.6 MB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.3265, allocations: 91.95 kB / 492.7 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000675/0.3271, allocations: 0.5777 MB / 493.3 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000257/0.3274, allocations: 125.1 kB / 493.4 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.3275, allocations: 85.73 kB / 493.5 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06153/0.3891, allocations: 33.18 MB / 0.5143 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.3891, allocations: 30.56 kB / 0.5143 GB, free: 15.33 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 2.224e-06/0.3892, allocations: 0 / 0.5143 GB, free: 15.33 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006431/0.3898, allocations: 238 kB / 0.5146 GB, free: 15.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.3899, allocations: 77.11 kB / 0.5146 GB, free: 15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.39, allocations: 121.8 kB / 0.5147 GB, free: 14.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.39, allocations: 25.7 kB / 0.5148 GB, free: 14.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.524e-05/0.3901, allocations: 96.52 kB / 0.5149 GB, free: 14.74 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.372e-05/0.3901, allocations: 75.28 kB / 0.5149 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.539e-05/0.3902, allocations: 37.7 kB / 0.515 GB, free: 14.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3903, allocations: 326.8 kB / 0.5153 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.014e-05/0.3904, allocations: 43.98 kB / 0.5153 GB, free: 14.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.546e-05/0.3905, allocations: 65.69 kB / 0.5154 GB, free: 14.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.3907, allocations: 126.1 kB / 0.5155 GB, free: 14.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3907, allocations: 0 / 0.5155 GB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002546/0.3909, allocations: 169.6 kB / 0.5157 GB, free: 13.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.391, allocations: 8 kB / 0.5157 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.391, allocations: 7.875 kB / 0.5157 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.391, allocations: 0 / 0.5157 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.131e-05/0.3911, allocations: 19.94 kB / 0.5157 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3911, allocations: 160 / 0.5157 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/0.3912, allocations: 19.88 kB / 0.5157 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.3912, allocations: 11.98 kB / 0.5157 GB, free: 13.81 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 8.266e-05/0.3913, allocations: 117.8 kB / 0.5158 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.994e-05/0.3914, allocations: 11.95 kB / 0.5159 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004473/0.3918, allocations: 309.3 kB / 0.5162 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002767/0.3921, allocations: 229.5 kB / 0.5164 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.3921, allocations: 4 kB / 0.5164 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/0.3921, allocations: 7.984 kB / 0.5164 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009184/0.3931, allocations: 0.7623 MB / 0.5171 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3931, allocations: 0 / 0.5171 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.3933, allocations: 39.92 kB / 0.5172 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.3933, allocations: 4 kB / 0.5172 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.3933, allocations: 4 kB / 0.5172 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.3933, allocations: 4 kB / 0.5172 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3933, allocations: 4.125 kB / 0.5172 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005626/0.3939, allocations: 0.5337 MB / 0.5177 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.269e-05/0.3939, allocations: 100.9 kB / 0.5178 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.394, allocations: 8 kB / 0.5178 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.3941, allocations: 7.938 kB / 0.5178 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.3942, allocations: 15.92 kB / 0.5178 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.3942, allocations: 8.062 kB / 0.5178 GB, free: 11.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.249e-05/0.3942, allocations: 99.27 kB / 0.5179 GB, free: 11.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3943, allocations: 3.938 kB / 0.5179 GB, free: 11.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002241/0.3965, allocations: 0.9424 MB / 0.5189 GB, free: 10.51 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.004813/0.4013, allocations: 2.401 MB / 0.5212 GB, free: 8.074 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003754/0.4017, allocations: 251.2 kB / 0.5214 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.4017, allocations: 0 / 0.5214 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.4019, allocations: 124.6 kB / 0.5216 GB, free: 7.695 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009704/0.4029, allocations: 141 kB / 0.5217 GB, free: 7.559 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/0.4062, allocations: 2.453 MB / 0.5241 GB, free: 5.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003565/0.4066, allocations: 0.7289 MB / 0.5248 GB, free: 4.258 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001834/0.4068, allocations: 53.91 kB / 0.5249 GB, free: 4.207 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.4069, allocations: 63.42 kB / 0.5249 GB, free: 4.145 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4069, allocations: 0 / 0.5249 GB, free: 4.145 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06212/0.469, allocations: 30.66 MB / 0.5549 GB, free: 5.484 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.225/9.694, allocations: 7.797 kB / 0.5549 GB, free: 5.477 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)