Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.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.BaseProps_sweep,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_BaseProps_sweep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.BaseProps_sweep,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_BaseProps_sweep",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.001597/0.001597, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001976/0.001976, allocations: 196 kB / 16.53 MB, free: 6.672 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.512/1.512, allocations: 205.1 MB / 222.4 MB, free: 4.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04899/0.04899, allocations: 9.102 MB / 278.9 MB, free: 12.16 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.001533/0.001533, allocations: 67.88 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1024, allocations: 48.15 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.BaseProps_sweep): time 0.02159/0.1241, allocations: 17.89 MB / 404.2 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2586/0.3827, allocations: 32.19 MB / 436.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002221/0.383, allocations: 2.344 kB / 436.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001732/0.3847, allocations: 421.8 kB / 436.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.3853, allocations: 135.9 kB / 436.9 MB, free: 10.64 MB / 318.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.typeClassSections: time 0.03122/0.4166, allocations: 9.447 MB / 446.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006578/0.4173, allocations: 384.5 kB / 446.7 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.554e-05/0.4173, allocations: 16.25 kB / 446.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.4177, allocations: 167.5 kB / 446.9 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.4179, allocations: 120.1 kB / 447 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.4179, allocations: 14.09 kB / 447 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02216/0.4401, allocations: 10.97 MB / 458 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.4402, allocations: 37.84 kB / 458.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002509/0.4405, allocations: 105.6 kB / 458.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01811/0.4586, allocations: 4.756 MB / 462.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.4587, allocations: 0 / 462.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4587, allocations: 4 kB / 462.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.158e-06/0.4587, allocations: 0 / 462.9 MB, free: 3.25 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.002835/0.4616, allocations: 1.131 MB / 464.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.4616, allocations: 12.03 kB / 464.1 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.498e-05/0.4617, allocations: 46.55 kB / 464.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002382/0.4619, allocations: 39.7 kB / 464.1 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.4621, allocations: 221.5 kB / 464.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.4621, allocations: 8 kB / 464.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.4622, allocations: 15.47 kB / 464.4 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.4627, allocations: 264.3 kB / 464.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.4627, allocations: 0 / 464.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.161e-05/0.4628, allocations: 4 kB / 464.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.4628, allocations: 11.98 kB / 464.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00058/0.4634, allocations: 229.2 kB / 464.9 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008162/0.4642, allocations: 1.079 MB / 466 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005614/0.4648, allocations: 234.3 kB / 466.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003119/0.4651, allocations: 151.5 kB / 466.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08675/0.5518, allocations: 46.26 MB / 0.5006 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.437e-05/0.5519, allocations: 38.56 kB / 0.5006 GB, free: 9.633 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.184e-06/0.5519, allocations: 0 / 0.5006 GB, free: 9.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001524/0.5535, allocations: 472.9 kB / 0.5011 GB, free: 9.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/0.5536, allocations: 136.5 kB / 0.5012 GB, free: 9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.5537, allocations: 172 kB / 0.5014 GB, free: 8.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.5538, allocations: 29.8 kB / 0.5014 GB, free: 8.785 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.5e-05/0.5539, allocations: 128.4 kB / 0.5015 GB, free: 8.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.578e-05/0.5539, allocations: 93.02 kB / 0.5016 GB, free: 8.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-05/0.554, allocations: 37.7 kB / 0.5016 GB, free: 8.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5542, allocations: 334.8 kB / 0.502 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.5545, allocations: 107.9 kB / 0.5021 GB, free: 8.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.5548, allocations: 162.7 kB / 0.5022 GB, free: 7.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005899/0.5554, allocations: 282.6 kB / 0.5025 GB, free: 7.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5554, allocations: 0 / 0.5025 GB, free: 7.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000741/0.5561, allocations: 330 kB / 0.5028 GB, free: 7.277 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.5562, allocations: 6.5 kB / 0.5028 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.5562, allocations: 2.25 kB / 0.5028 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.5562, allocations: 4 kB / 0.5028 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.5565, allocations: 47.89 kB / 0.5029 GB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.5565, allocations: 4 kB / 0.5029 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.5568, allocations: 23.83 kB / 0.5029 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.5568, allocations: 17.09 kB / 0.5029 GB, free: 7.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (medium.sat.vap.phase,medium.sat.liq.phase,medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001363/0.5569, allocations: 137.8 kB / 0.503 GB, free: 7.035 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.5571, allocations: 26.06 kB / 0.5031 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000677/0.5577, allocations: 366.6 kB / 0.5034 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.5578, allocations: 3.828 kB / 0.5034 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.5578, allocations: 4 kB / 0.5034 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5578, allocations: 3.938 kB / 0.5034 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005579/0.5584, allocations: 321.6 kB / 0.5037 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.5584, allocations: 0 / 0.5037 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.5586, allocations: 43.91 kB / 0.5038 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.5586, allocations: 0 / 0.5038 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.5586, allocations: 11.98 kB / 0.5038 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.686e-06/0.5586, allocations: 0 / 0.5038 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.5586, allocations: 4 kB / 0.5038 GB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008332/0.5595, allocations: 0.6399 MB / 0.5044 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.63e-05/0.5596, allocations: 96.84 kB / 0.5045 GB, free: 5.457 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.5596, allocations: 8 kB / 0.5045 GB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/0.5599, allocations: 19.3 kB / 0.5045 GB, free: 5.434 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.812e-05/0.56, allocations: 23.97 kB / 0.5046 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.5601, allocations: 7.984 kB / 0.5046 GB, free: 5.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001043/0.5602, allocations: 132 kB / 0.5047 GB, free: 5.273 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5602, allocations: 0 / 0.5047 GB, free: 5.273 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004185/0.5644, allocations: 0.7924 MB / 0.5055 GB, free: 4.48 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($cse1.phase,medium.state.phase,medium.sat.liq.phase,medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.006529/0.5709, allocations: 2.281 MB / 0.5077 GB, free: 2.281 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009039/0.5718, allocations: 283.7 kB / 0.508 GB, free: 2.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.5719, allocations: 0 / 0.508 GB, free: 2.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004071/0.5723, allocations: 168.3 kB / 0.5081 GB, free: 1.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009919/0.5733, allocations: 100.3 kB / 0.5082 GB, free: 1.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005919/0.5792, allocations: 3.018 MB / 0.5112 GB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.5797, allocations: 0.7362 MB / 0.5119 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002239/0.5799, allocations: 52.48 kB / 0.5119 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.5801, allocations: 71.41 kB / 0.512 GB, free: 13.72 MB / 398.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5801, allocations: 0 / 0.512 GB, free: 13.72 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06912/0.6492, allocations: 27.02 MB / 0.5384 GB, free: 2.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.765/9.414, allocations: 11.34 kB / 0.5384 GB, free: 2.652 MB / 414.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.004 HelmholtzMedia_HelmholtzMedia_Examples_BaseProps_sweep.fmu > HelmholtzMedia_HelmholtzMedia.Examples.BaseProps_sweep.pipe 2>&1)