Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.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.Derivatives_SaturationBoundary,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary",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.007581/0.007581, allocations: 99.81 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.001609/0.001609, allocations: 195.2 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.494/1.494, 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.04873/0.04873, allocations: 9.095 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.001471/0.001471, allocations: 63.91 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3167, allocations: 48.16 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary): time 0.02531/0.3421, allocations: 19.78 MB / 455 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01674/0.3589, allocations: 17.14 MB / 472.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006591/0.3596, allocations: 2.344 kB / 472.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001937/0.3616, allocations: 0.639 MB / 472.7 MB, free: 9.988 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.01464/0.3762, allocations: 5.561 MB / 478.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003804/0.3801, allocations: 1.081 MB / 479.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.3812, allocations: 0.7902 MB / 480.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.3813, allocations: 45.77 kB / 480.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004198/0.3817, allocations: 330.7 kB / 480.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003698/0.3821, allocations: 310.6 kB / 480.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.718e-05/0.3822, allocations: 28 kB / 480.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01838/0.4005, allocations: 9.431 MB / 490.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.4007, allocations: 87.59 kB / 490.4 MB, free: 9.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005469/0.4013, allocations: 278.5 kB / 490.7 MB, free: 9.137 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01433/0.4156, allocations: 4.122 MB / 494.8 MB, free: 5.004 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4157, allocations: 0 / 494.8 MB, free: 5.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4157, allocations: 4 kB / 494.8 MB, free: 5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.4157, allocations: 0 / 494.8 MB, free: 5 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: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.003516/0.4193, allocations: 1.228 MB / 496 MB, free: 3.719 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.4193, allocations: 11.97 kB / 496 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.4194, allocations: 106.5 kB / 496.1 MB, free: 3.594 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005044/0.4199, allocations: 99.56 kB / 496.2 MB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002029/0.4202, allocations: 218.3 kB / 496.4 MB, free: 3.242 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.369e-05/0.4202, allocations: 20.56 kB / 496.5 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.088e-05/0.4203, allocations: 28 kB / 496.5 MB, free: 3.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.4219, allocations: 1.259 MB / 497.7 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.4219, allocations: 0 / 497.7 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.64e-05/0.422, allocations: 15.94 kB / 497.8 MB, free: 1.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.319e-05/0.422, allocations: 23.95 kB / 497.8 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002484/0.4245, allocations: 2.323 MB / 0.4884 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.4269, allocations: 2.163 MB / 0.4905 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.4285, allocations: 1.357 MB / 0.4918 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.4297, allocations: 1.27 MB / 0.4931 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02184/0.4516, allocations: 11.22 MB / 0.504 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.4517, allocations: 43.12 kB / 0.5041 GB, free: 13.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=185): time 3.056e-06/0.4517, allocations: 0 / 0.5041 GB, free: 13.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=185): time 0.004252/0.4559, allocations: 3.596 MB / 0.5076 GB, free: 10.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.456, allocations: 59.97 kB / 0.5076 GB, free: 9.965 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.407e-05/0.4561, allocations: 113.8 kB / 0.5077 GB, free: 9.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.4562, allocations: 37.7 kB / 0.5078 GB, free: 9.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.06e-05/0.4562, allocations: 91.06 kB / 0.5079 GB, free: 9.707 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003941/0.4566, allocations: 0.6 MB / 0.5084 GB, free: 9.102 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.4568, allocations: 158.2 kB / 0.5086 GB, free: 8.941 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.392e-05/0.4569, allocations: 313.9 kB / 0.5089 GB, free: 8.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.458, allocations: 1.014 MB / 0.5099 GB, free: 7.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.459, allocations: 1.035 MB / 0.5109 GB, free: 6.578 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002288/0.4613, allocations: 2.233 MB / 0.5131 GB, free: 4.344 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4614, allocations: 0 / 0.5131 GB, free: 4.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002642/0.464, allocations: 2.336 MB / 0.5154 GB, free: 2.004 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.464, allocations: 8 kB / 0.5154 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.4641, allocations: 0 / 0.5154 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.4641, allocations: 0 / 0.5154 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006072/0.4647, allocations: 119.8 kB / 0.5155 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.4647, allocations: 4 kB / 0.5155 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003742/0.4651, allocations: 87.17 kB / 0.5156 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.826e-05/0.4652, allocations: 27.98 kB / 0.5156 GB, free: 1.762 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sat_pminus.vap.phase,sat_pminus.liq.phase,sat_pplus.vap.phase,sat_pplus.liq.phase,sat_Tminus.vap.phase,sat_Tminus.liq.phase,sat_Tplus.vap.phase,sat_Tplus.liq.phase,sat.vap.phase,sat.liq.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.0002207/0.4654, allocations: 165.7 kB / 0.5157 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.4656, allocations: 55.58 kB / 0.5158 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002989/0.4685, allocations: 2.64 MB / 0.5184 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/0.4686, allocations: 31.94 kB / 0.5184 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4686, allocations: 3.938 kB / 0.5184 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.4686, allocations: 15.86 kB / 0.5184 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.4697, allocations: 1.171 MB / 0.5196 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4697, allocations: 4 kB / 0.5196 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006134/0.4703, allocations: 131.8 kB / 0.5197 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/0.4704, allocations: 4 kB / 0.5197 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.795e-05/0.4704, allocations: 19.98 kB / 0.5197 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.4704, allocations: 4 kB / 0.5197 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4704, allocations: 0 / 0.5197 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/0.473, allocations: 2.349 MB / 0.522 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/0.4732, allocations: 224.1 kB / 0.5222 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.322e-05/0.4733, allocations: 12 kB / 0.5222 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003602/0.4737, allocations: 19.98 kB / 0.5223 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.853e-05/0.4738, allocations: 48.94 kB / 0.5223 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.492e-05/0.4738, allocations: 27.92 kB / 0.5223 GB, free: 10.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.383e-05/0.4739, allocations: 83.28 kB / 0.5224 GB, free: 10.65 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4739, allocations: 8 kB / 0.5224 GB, free: 10.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002551/0.4765, allocations: 0.892 MB / 0.5233 GB, free: 9.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sat.liq.phase,sat.vap.phase,sat_Tplus.liq.phase,sat_Tplus.vap.phase,sat_Tminus.liq.phase,sat_Tminus.vap.phase,sat_pplus.liq.phase,sat_pplus.vap.phase,sat_pminus.liq.phase,sat_pminus.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.006606/0.4831, allocations: 4.109 MB / 0.5273 GB, free: 5.609 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002669/0.4858, allocations: 2.365 MB / 0.5296 GB, free: 3.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.4858, allocations: 0 / 0.5296 GB, free: 3.242 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.4871, allocations: 1.252 MB / 0.5308 GB, free: 1.996 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001816/0.4889, allocations: 348.8 kB / 0.5312 GB, free: 1.656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003902/0.4928, allocations: 2.048 MB / 0.5332 GB, free: 15.56 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.4932, allocations: 0.8857 MB / 0.534 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005196/0.4938, allocations: 254.6 kB / 0.5343 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003021/0.4941, allocations: 191.4 kB / 0.5345 GB, free: 14.21 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4941, allocations: 0 / 0.5345 GB, free: 14.21 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07162/0.5657, allocations: 43.37 MB / 0.5768 GB, free: 2.879 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/11.2, allocations: 15.42 kB / 0.5768 GB, free: 2.867 MB / 462.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 HelmholtzMedia_HelmholtzMedia_Examples_Validation_Derivatives_SaturationBoundary.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.Derivatives_SaturationBoundary.pipe 2>&1)