Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",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.001235/0.001235, allocations: 108 kB / 15.61 MB, free: 152 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.001204/0.001204, allocations: 196.1 kB / 16.53 MB, free: 6.699 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.581/1.581, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04544/0.04544, allocations: 9.102 MB / 278.9 MB, free: 12.18 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.001446/0.001446, allocations: 67.91 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.0903, allocations: 48.16 MB / 386.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.3178/0.4081, allocations: 128.6 MB / 0.5029 GB, free: 5.129 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3516/0.7598, allocations: 111.1 MB / 0.6113 GB, free: 308 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000543/0.7604, allocations: 7.375 kB / 0.6113 GB, free: 308 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003459/0.7638, allocations: 1.366 MB / 0.6127 GB, free: 300 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003509/0.7674, allocations: 1.647 MB / 0.6143 GB, free: 280 kB / 446.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.06886/0.8363, allocations: 29.34 MB / 0.6429 GB, free: 13.73 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001787/0.8381, allocations: 1.408 MB / 0.6443 GB, free: 13.38 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.8384, allocations: 129.3 kB / 0.6444 GB, free: 13.35 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01669/0.8551, allocations: 8.949 MB / 0.6532 GB, free: 10.34 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008991/0.856, allocations: 382.7 kB / 0.6535 GB, free: 10.16 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.32e-05/0.8562, allocations: 44 kB / 0.6536 GB, free: 10.12 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06004/0.9162, allocations: 33.47 MB / 0.6863 GB, free: 1.297 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002432/0.9165, allocations: 130.5 kB / 0.6864 GB, free: 1.176 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005403/0.917, allocations: 306.6 kB / 0.6867 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04294/0.96, allocations: 14.06 MB / 0.7004 GB, free: 3.91 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.078e-05/0.96, allocations: 7.922 kB / 0.7004 GB, free: 3.902 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.96, allocations: 0 / 0.7004 GB, free: 3.902 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.9601, allocations: 0 / 0.7004 GB, free: 3.902 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.005634/0.9657, allocations: 2.566 MB / 0.7029 GB, free: 1.289 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.9657, allocations: 8.031 kB / 0.7029 GB, free: 1.281 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.866e-05/0.9658, allocations: 86.52 kB / 0.703 GB, free: 1.188 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006147/0.9665, allocations: 83.39 kB / 0.7031 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000392/0.9669, allocations: 347 kB / 0.7034 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.438e-05/0.9669, allocations: 28.66 kB / 0.7035 GB, free: 0.707 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.146e-05/0.967, allocations: 32 kB / 0.7035 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.9682, allocations: 0.6001 MB / 0.7041 GB, free: 60 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.9682, allocations: 4 kB / 0.7041 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/0.9683, allocations: 20 kB / 0.7041 GB, free: 36 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.9683, allocations: 18.66 kB / 0.7041 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.9696, allocations: 0.5451 MB / 0.7046 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002358/0.972, allocations: 2.558 MB / 0.7071 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.9731, allocations: 0.4966 MB / 0.7076 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005364/0.9737, allocations: 347 kB / 0.708 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4049/1.379, allocations: 139 MB / 0.8437 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/1.379, allocations: 37.28 kB / 0.8437 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.527e-06/1.379, allocations: 6.219 kB / 0.8437 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005762/1.384, allocations: 2.328 MB / 0.846 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/1.384, allocations: 59.09 kB / 0.846 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/1.385, allocations: 252.3 kB / 0.8463 GB, free: 275.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/1.385, allocations: 33.64 kB / 0.8463 GB, free: 275.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.418e-05/1.385, allocations: 198.7 kB / 0.8465 GB, free: 275.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/1.385, allocations: 257.6 kB / 0.8468 GB, free: 275.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/1.385, allocations: 104.5 kB / 0.8469 GB, free: 275.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.798e-05/1.385, allocations: 358.7 kB / 0.8472 GB, free: 274.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004438/1.386, allocations: 263 kB / 0.8474 GB, free: 274.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004709/1.386, allocations: 401.8 kB / 0.8478 GB, free: 274.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009038/1.387, allocations: 0.6986 MB / 0.8485 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/1.387, allocations: 0 / 0.8485 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001283/1.388, allocations: 0.7838 MB / 0.8493 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/1.388, allocations: 11.86 kB / 0.8493 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/1.388, allocations: 0 / 0.8493 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002203/1.389, allocations: 62.25 kB / 0.8493 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/1.389, allocations: 101.5 kB / 0.8494 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09125/1.48, allocations: 22.92 MB / 0.8718 GB, free: 252.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006688/1.481, allocations: 23.92 kB / 0.8718 GB, free: 252.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/1.481, allocations: 24.06 kB / 0.8719 GB, free: 252.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004873/1.482, allocations: 195.2 kB / 0.8721 GB, free: 252.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/1.482, allocations: 43.44 kB / 0.8721 GB, free: 252.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/1.484, allocations: 1.549 MB / 0.8736 GB, free: 250.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/1.484, allocations: 10.67 kB / 0.8736 GB, free: 250.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/1.484, allocations: 7.922 kB / 0.8736 GB, free: 250.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001102/1.485, allocations: 1.145 MB / 0.8747 GB, free: 249.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/1.487, allocations: 1.593 MB / 0.8763 GB, free: 247.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/1.487, allocations: 1.75 kB / 0.8763 GB, free: 247.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003387/1.487, allocations: 83.92 kB / 0.8764 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001959/1.488, allocations: 44.8 kB / 0.8764 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/1.488, allocations: 4 kB / 0.8764 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006925/1.488, allocations: 1.429 MB / 0.8778 GB, free: 246.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.488, allocations: 0.5625 kB / 0.8778 GB, free: 246.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/1.49, allocations: 1.176 MB / 0.879 GB, free: 245 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/1.49, allocations: 116.6 kB / 0.8791 GB, free: 244.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.065e-05/1.49, allocations: 17.36 kB / 0.8791 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003156/1.49, allocations: 28.03 kB / 0.8791 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.636e-05/1.491, allocations: 46.81 kB / 0.8792 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/1.491, allocations: 12 kB / 0.8792 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001897/1.491, allocations: 243 kB / 0.8794 GB, free: 244.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/1.491, allocations: 0 / 0.8794 GB, free: 244.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007948/1.499, allocations: 3.183 MB / 0.8825 GB, free: 241.8 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($cse8.phase,$cse9.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01673/1.516, allocations: 5.723 MB / 0.8881 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001959/1.518, allocations: 0.9691 MB / 0.8891 GB, free: 235.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/1.518, allocations: 3.938 kB / 0.8891 GB, free: 235.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007699/1.518, allocations: 0.4914 MB / 0.8895 GB, free: 234.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/1.52, allocations: 381.5 kB / 0.8899 GB, free: 234.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/1.531, allocations: 6.151 MB / 0.8959 GB, free: 228.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/1.531, allocations: 0.8486 MB / 0.8967 GB, free: 227.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000504/1.532, allocations: 161.4 kB / 0.8969 GB, free: 227.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/1.532, allocations: 175.4 kB / 0.8971 GB, free: 227.1 MB / 0.5919 GB Notification: Performance of SimCode: time 7.61e-07/1.532, allocations: 0 / 0.8971 GB, free: 227.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1564/1.688, allocations: 124.2 MB / 1.018 GB, free: 102.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/17.37, allocations: 15.94 kB / 1.018 GB, free: 102.6 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)