Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.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.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",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.004658/0.004658, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001125/0.001125, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.39/1.39, 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.04572/0.04572, allocations: 9.092 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.001462/0.001463, allocations: 60.12 kB / 387 MB, free: 8.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.353, allocations: 48.17 MB / 435.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesWater): time 0.01648/0.3696, allocations: 12.81 MB / 448 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.3798, allocations: 8.58 MB / 456.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.38, allocations: 1.219 kB / 456.6 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002315/0.3803, allocations: 43.56 kB / 456.6 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006691/0.387, allocations: 1.886 MB / 458.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009144/0.3962, allocations: 2.262 MB / 460.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003842/0.3966, allocations: 135.2 kB / 460.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.511e-05/0.3967, allocations: 4.594 kB / 460.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.456e-05/0.3968, allocations: 43.48 kB / 460.9 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.3969, allocations: 49.55 kB / 461 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.3969, allocations: 3.531 kB / 461 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01637/0.4133, allocations: 6.927 MB / 467.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.083e-05/0.4134, allocations: 15.92 kB / 467.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.4135, allocations: 43.8 kB / 468 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.4247, allocations: 3.785 MB / 471.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.4247, allocations: 3.984 kB / 471.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4247, allocations: 0 / 471.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.4248, allocations: 0 / 471.7 MB, free: 12.14 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.002799/0.4276, allocations: 0.8978 MB / 472.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.4276, allocations: 12.03 kB / 472.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.412e-05/0.4277, allocations: 38.73 kB / 472.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003789/0.4281, allocations: 52.8 kB / 472.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.4283, allocations: 200.2 kB / 472.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.4283, allocations: 12.31 kB / 473 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.4283, allocations: 15.95 kB / 473 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009104/0.4293, allocations: 255.2 kB / 473.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.4293, allocations: 0 / 473.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.4293, allocations: 8 kB / 473.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.4293, allocations: 0 / 473.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007674/0.4301, allocations: 215.7 kB / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007688/0.4309, allocations: 0.6701 MB / 474.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008846/0.4318, allocations: 237 kB / 474.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.027e-05/0.4319, allocations: 57.72 kB / 474.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.134/0.5659, allocations: 64.24 MB / 0.526 GB, free: 1.375 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.566, allocations: 42.56 kB / 0.526 GB, free: 1.324 MB / 414.1 MB Notification: Performance of pre-optimization done (n=14): time 2.715e-06/0.566, allocations: 0 / 0.526 GB, free: 1.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=14): time 0.001826/0.5678, allocations: 365.2 kB / 0.5264 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.5679, allocations: 81.11 kB / 0.5265 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.568, allocations: 134.1 kB / 0.5266 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.5681, allocations: 29.7 kB / 0.5266 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.326e-05/0.5681, allocations: 104 kB / 0.5267 GB, free: 0.582 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.035e-05/0.5682, allocations: 51.59 kB / 0.5268 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.5683, allocations: 61.62 kB / 0.5268 GB, free: 476 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.5684, allocations: 318.8 kB / 0.5271 GB, free: 148 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.5686, allocations: 55.95 kB / 0.5272 GB, free: 92 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.5688, allocations: 100.3 kB / 0.5273 GB, free: 15.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.5691, allocations: 144 kB / 0.5274 GB, free: 15.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5691, allocations: 0 / 0.5274 GB, free: 15.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004692/0.5696, allocations: 225.4 kB / 0.5276 GB, free: 15.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.5696, allocations: 7.938 kB / 0.5276 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.5696, allocations: 0 / 0.5276 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.5697, allocations: 4 kB / 0.5277 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.5699, allocations: 51.95 kB / 0.5277 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.5699, allocations: 4.062 kB / 0.5277 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.5701, allocations: 23.77 kB / 0.5277 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/0.5701, allocations: 15.98 kB / 0.5277 GB, free: 15.5 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001124/0.5702, allocations: 117.8 kB / 0.5279 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.861e-05/0.5703, allocations: 19.88 kB / 0.5279 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.5725, allocations: 2.096 MB / 0.5299 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.836e-05/0.5725, allocations: 11.98 kB / 0.5299 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.5725, allocations: 0 / 0.5299 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.5726, allocations: 4 kB / 0.5299 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.5737, allocations: 1.056 MB / 0.531 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.5737, allocations: 0 / 0.531 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002264/0.5739, allocations: 39.89 kB / 0.531 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.431e-06/0.574, allocations: 3.938 kB / 0.531 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.574, allocations: 0 / 0.531 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.574, allocations: 4 kB / 0.531 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.574, allocations: 0 / 0.531 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000788/0.5748, allocations: 0.6451 MB / 0.5316 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.353e-05/0.5749, allocations: 108.9 kB / 0.5317 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.292e-05/0.5749, allocations: 3.938 kB / 0.5317 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.5751, allocations: 8 kB / 0.5318 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.329e-05/0.5751, allocations: 7.984 kB / 0.5318 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.5751, allocations: 4 kB / 0.5318 GB, free: 11.22 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.729e-05/0.5752, allocations: 107.7 kB / 0.5319 GB, free: 11.11 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5752, allocations: 0 / 0.5319 GB, free: 11.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003835/0.5791, allocations: 0.9162 MB / 0.5328 GB, free: 10.2 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * 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.005582/0.5847, allocations: 2.192 MB / 0.5349 GB, free: 7.973 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004774/0.5852, allocations: 211.8 kB / 0.5351 GB, free: 7.766 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5852, allocations: 0 / 0.5351 GB, free: 7.766 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.5854, allocations: 155.9 kB / 0.5353 GB, free: 7.613 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006277/0.586, allocations: 72.69 kB / 0.5353 GB, free: 7.543 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003915/0.5899, allocations: 2.598 MB / 0.5379 GB, free: 4.84 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.5902, allocations: 0.7367 MB / 0.5386 GB, free: 4.074 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004285/0.5907, allocations: 368.6 kB / 0.5389 GB, free: 3.715 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.5908, allocations: 79.33 kB / 0.539 GB, free: 3.637 MB / 430.1 MB Notification: Performance of SimCode: time 1.262e-06/0.5908, allocations: 0 / 0.539 GB, free: 3.637 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0738/0.6646, allocations: 36.35 MB / 0.5745 GB, free: 15.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.991/10.66, allocations: 4.062 kB / 0.5745 GB, free: 15.27 MB / 478.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater_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_CheckDerivativesWater.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesWater.pipe 2>&1)