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.007497/0.007497, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001735/0.001735, allocations: 194.8 kB / 16.67 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.557/1.557, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05198/0.05198, allocations: 9.101 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.002077/0.002077, allocations: 71.89 kB / 387 MB, free: 8.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3106, allocations: 48.16 MB / 435.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesHelium): time 0.02289/0.3336, allocations: 17.35 MB / 452.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02669/0.3603, allocations: 16.8 MB / 469.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.3606, allocations: 4 kB / 469.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.3617, allocations: 272.8 kB / 469.6 MB, free: 12.54 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.02446/0.3861, allocations: 6.027 MB / 475.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002719/0.3889, allocations: 0.5441 MB / 476.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004254/0.3893, allocations: 187 kB / 476.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.146e-05/0.3894, allocations: 9.125 kB / 476.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.3897, allocations: 79.66 kB / 476.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.3899, allocations: 55.7 kB / 476.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.3899, allocations: 4 kB / 476.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02272/0.4126, allocations: 9.541 MB / 486 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.09e-05/0.4127, allocations: 15.92 kB / 486 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.4129, allocations: 59.67 kB / 486.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01709/0.43, allocations: 4.017 MB / 490.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.43, allocations: 0 / 490.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.43, allocations: 0 / 490.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.43, allocations: 0 / 490.1 MB, free: 9.699 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.002646/0.4327, allocations: 0.92 MB / 491 MB, free: 8.727 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.4328, allocations: 8.031 kB / 491 MB, free: 8.719 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.928e-05/0.4328, allocations: 42.55 kB / 491.1 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.433, allocations: 27.83 kB / 491.1 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.4333, allocations: 206.8 kB / 491.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.4333, allocations: 12 kB / 491.3 MB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.946e-05/0.4334, allocations: 8 kB / 491.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.4336, allocations: 123.3 kB / 491.4 MB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.4337, allocations: 0 / 491.4 MB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.4337, allocations: 15.92 kB / 491.5 MB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.4337, allocations: 0 / 491.5 MB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001596/0.4339, allocations: 99.89 kB / 491.6 MB, free: 8.133 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007714/0.4347, allocations: 0.5661 MB / 492.1 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.435, allocations: 133.1 kB / 492.3 MB, free: 7.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.4351, allocations: 77.77 kB / 492.3 MB, free: 7.258 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06568/0.5008, allocations: 33.17 MB / 0.5132 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.731e-05/0.5009, allocations: 34.56 kB / 0.5132 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 3.857e-06/0.5009, allocations: 4 kB / 0.5132 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009704/0.5019, allocations: 221.4 kB / 0.5134 GB, free: 292 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.486e-05/0.502, allocations: 89.09 kB / 0.5135 GB, free: 184 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.5021, allocations: 113.8 kB / 0.5136 GB, free: 60 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.5022, allocations: 33.64 kB / 0.5137 GB, free: 20 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.326e-05/0.5023, allocations: 88.53 kB / 0.5137 GB, free: 15.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.5024, allocations: 83.25 kB / 0.5138 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.238e-05/0.5025, allocations: 41.7 kB / 0.5139 GB, free: 15.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.5027, allocations: 330.8 kB / 0.5142 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.165e-05/0.5028, allocations: 43.98 kB / 0.5142 GB, free: 15.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.5029, allocations: 65.7 kB / 0.5143 GB, free: 15.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.5031, allocations: 117.8 kB / 0.5144 GB, free: 15.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.5031, allocations: 4 kB / 0.5144 GB, free: 15.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003005/0.5034, allocations: 169.5 kB / 0.5146 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.5035, allocations: 4 kB / 0.5146 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.5035, allocations: 4.375 kB / 0.5146 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.5035, allocations: 3.984 kB / 0.5146 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.289e-05/0.5036, allocations: 20 kB / 0.5146 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.5036, allocations: 0 / 0.5146 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.802e-05/0.5037, allocations: 23.77 kB / 0.5146 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.5037, allocations: 4 kB / 0.5146 GB, free: 15 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.0001242/0.5039, allocations: 117.8 kB / 0.5147 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.744e-05/0.5039, allocations: 11.94 kB / 0.5147 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005585/0.5045, allocations: 325.5 kB / 0.5151 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003089/0.5048, allocations: 233.5 kB / 0.5153 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.5048, allocations: 0 / 0.5153 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.5048, allocations: 0 / 0.5153 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.506, allocations: 0.762 MB / 0.516 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.506, allocations: 7.938 kB / 0.516 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.5062, allocations: 35.98 kB / 0.5161 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.5062, allocations: 0 / 0.5161 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.5062, allocations: 8 kB / 0.5161 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.5062, allocations: 0 / 0.5161 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5062, allocations: 128 / 0.5161 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007365/0.507, allocations: 0.5376 MB / 0.5166 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.5071, allocations: 97.05 kB / 0.5167 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.608e-05/0.5071, allocations: 8 kB / 0.5167 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.5072, allocations: 4 kB / 0.5167 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.694e-05/0.5073, allocations: 15.97 kB / 0.5167 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.5073, allocations: 12 kB / 0.5167 GB, free: 12.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.58e-05/0.5074, allocations: 95.2 kB / 0.5168 GB, free: 12.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5074, allocations: 0 / 0.5168 GB, free: 12.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003065/0.5105, allocations: 0.9462 MB / 0.5177 GB, free: 11.69 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.006365/0.5168, allocations: 2.417 MB / 0.5201 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004987/0.5174, allocations: 255.2 kB / 0.5203 GB, free: 8.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5174, allocations: 4 kB / 0.5203 GB, free: 8.977 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.5176, allocations: 120.6 kB / 0.5205 GB, free: 8.859 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.5187, allocations: 136.8 kB / 0.5206 GB, free: 8.727 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004963/0.5236, allocations: 2.446 MB / 0.523 GB, free: 6.184 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.5242, allocations: 0.7328 MB / 0.5237 GB, free: 5.426 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002131/0.5244, allocations: 53.83 kB / 0.5237 GB, free: 5.375 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.5245, allocations: 59.42 kB / 0.5238 GB, free: 5.316 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5245, allocations: 0 / 0.5238 GB, free: 5.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07388/0.5984, allocations: 30.65 MB / 0.5537 GB, free: 6.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.371/9.97, allocations: 14.36 kB / 0.5537 GB, free: 6.648 MB / 446.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)