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.009753/0.009753, allocations: 101.3 kB / 15.73 MB, free: 6.004 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.002092/0.002092, allocations: 187 kB / 16.67 MB, free: 5.922 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.474/1.474, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04578/0.04578, allocations: 9.096 MB / 279 MB, free: 12.05 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.001483/0.001483, allocations: 68.31 kB / 386.9 MB, free: 8.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2636, allocations: 48.16 MB / 435.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.BaseProps_sweep): time 0.02168/0.2853, allocations: 17.89 MB / 453 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03333/0.3187, allocations: 32.22 MB / 485.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001915/0.3189, allocations: 0 / 485.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.3201, allocations: 482 kB / 485.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004135/0.3206, allocations: 151.1 kB / 485.8 MB, free: 13.94 MB / 366.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.02544/0.346, allocations: 9.987 MB / 495.8 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005064/0.3465, allocations: 386.4 kB / 496.2 MB, free: 3.535 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.448e-05/0.3466, allocations: 16.41 kB / 496.2 MB, free: 3.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.3469, allocations: 167.4 kB / 496.4 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.3471, allocations: 119.5 kB / 496.5 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.3472, allocations: 20 kB / 496.5 MB, free: 3.219 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02299/0.3702, allocations: 11.46 MB / 0.4961 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.3704, allocations: 43.83 kB / 0.4961 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002266/0.3706, allocations: 107.5 kB / 0.4962 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01658/0.3872, allocations: 4.758 MB / 0.5008 GB, free: 2.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.3872, allocations: 4 kB / 0.5008 GB, free: 2.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3873, allocations: 0 / 0.5008 GB, free: 2.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.3873, allocations: 0 / 0.5008 GB, free: 2.82 MB / 382.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.002932/0.3902, allocations: 1.18 MB / 0.502 GB, free: 1.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.3903, allocations: 8.031 kB / 0.502 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.046e-05/0.3903, allocations: 54.55 kB / 0.5021 GB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002551/0.3906, allocations: 35.84 kB / 0.5021 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.3909, allocations: 230.7 kB / 0.5023 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.843e-05/0.3909, allocations: 15.94 kB / 0.5023 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.391, allocations: 12 kB / 0.5023 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005962/0.3916, allocations: 255.4 kB / 0.5026 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3916, allocations: 4 kB / 0.5026 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.3916, allocations: 11.92 kB / 0.5026 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.3916, allocations: 4 kB / 0.5026 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006338/0.3923, allocations: 220 kB / 0.5028 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.3934, allocations: 1.09 MB / 0.5039 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007072/0.3941, allocations: 238.3 kB / 0.5041 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003182/0.3945, allocations: 155.3 kB / 0.5043 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1195/0.5139, allocations: 46.25 MB / 0.5494 GB, free: 8.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.514, allocations: 42.55 kB / 0.5495 GB, free: 8.879 MB / 446.1 MB Notification: Performance of pre-optimization done (n=28): time 2.485e-06/0.514, allocations: 0 / 0.5495 GB, free: 8.879 MB / 446.1 MB Notification: Performance of matching and sorting (n=28): time 0.001527/0.5156, allocations: 468.7 kB / 0.5499 GB, free: 8.418 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.143e-05/0.5157, allocations: 132.5 kB / 0.55 GB, free: 8.258 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.5158, allocations: 172 kB / 0.5502 GB, free: 8.082 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.5159, allocations: 29.7 kB / 0.5502 GB, free: 8.047 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.662e-05/0.5159, allocations: 124.5 kB / 0.5503 GB, free: 7.918 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.005e-05/0.516, allocations: 95.2 kB / 0.5504 GB, free: 7.824 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-05/0.5161, allocations: 37.69 kB / 0.5505 GB, free: 7.781 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.5162, allocations: 338.8 kB / 0.5508 GB, free: 7.441 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/0.5165, allocations: 115.8 kB / 0.5509 GB, free: 7.328 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002971/0.5168, allocations: 157.9 kB / 0.5511 GB, free: 7.152 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006137/0.5175, allocations: 275.3 kB / 0.5513 GB, free: 6.859 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5175, allocations: 0 / 0.5513 GB, free: 6.859 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008256/0.5183, allocations: 333.9 kB / 0.5516 GB, free: 6.527 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.5183, allocations: 4 kB / 0.5516 GB, free: 6.523 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.5183, allocations: 4 kB / 0.5516 GB, free: 6.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.5184, allocations: 0 / 0.5516 GB, free: 6.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.5186, allocations: 52.08 kB / 0.5517 GB, free: 6.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.5187, allocations: 4 kB / 0.5517 GB, free: 6.465 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/0.5189, allocations: 39.8 kB / 0.5517 GB, free: 6.426 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.5189, allocations: 4 kB / 0.5517 GB, free: 6.422 MB / 446.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.0001291/0.519, allocations: 129.8 kB / 0.5519 GB, free: 6.285 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.5192, allocations: 23.86 kB / 0.5519 GB, free: 6.262 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000659/0.5198, allocations: 368.9 kB / 0.5522 GB, free: 5.898 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.5198, allocations: 4 kB / 0.5522 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.5199, allocations: 0 / 0.5522 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.5199, allocations: 3.938 kB / 0.5522 GB, free: 5.891 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005116/0.5204, allocations: 329.7 kB / 0.5526 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.5204, allocations: 0 / 0.5526 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002204/0.5206, allocations: 39.97 kB / 0.5526 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.5206, allocations: 192 / 0.5526 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.5207, allocations: 15.98 kB / 0.5526 GB, free: 5.465 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.5207, allocations: 7.875 kB / 0.5526 GB, free: 5.457 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5207, allocations: 4 kB / 0.5526 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008153/0.5215, allocations: 0.6353 MB / 0.5532 GB, free: 4.797 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.352e-05/0.5216, allocations: 104.9 kB / 0.5533 GB, free: 4.676 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.5216, allocations: 0 / 0.5533 GB, free: 4.676 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/0.522, allocations: 23.98 kB / 0.5534 GB, free: 4.652 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.048e-05/0.522, allocations: 27.84 kB / 0.5534 GB, free: 4.625 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.5221, allocations: 7.984 kB / 0.5534 GB, free: 4.617 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.626e-05/0.5222, allocations: 124.1 kB / 0.5535 GB, free: 4.496 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5222, allocations: 0 / 0.5535 GB, free: 4.496 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002104/0.5243, allocations: 0.8139 MB / 0.5543 GB, free: 3.68 MB / 446.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.004554/0.5288, allocations: 2.287 MB / 0.5565 GB, free: 1.367 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007432/0.5296, allocations: 279.7 kB / 0.5568 GB, free: 1.094 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5296, allocations: 4 kB / 0.5568 GB, free: 1.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003685/0.53, allocations: 164.3 kB / 0.557 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009104/0.5309, allocations: 101.2 kB / 0.5571 GB, free: 0.832 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004691/0.5356, allocations: 3.039 MB / 0.56 GB, free: 13.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.536, allocations: 0.7363 MB / 0.5608 GB, free: 12.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001942/0.5362, allocations: 52.48 kB / 0.5608 GB, free: 12.85 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.5364, allocations: 71.41 kB / 0.5609 GB, free: 12.78 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5364, allocations: 0 / 0.5609 GB, free: 12.78 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05836/0.5947, allocations: 27.06 MB / 0.5873 GB, free: 1.688 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.85/9.445, allocations: 11.78 kB / 0.5873 GB, free: 1.68 MB / 478.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)