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.001279/0.001279, 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.001833/0.001833, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.625/1.625, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04995/0.04995, allocations: 9.093 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.001553/0.001553, allocations: 63.91 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1152, allocations: 48.16 MB / 386.3 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.3632/0.4785, allocations: 128.6 MB / 0.5029 GB, free: 5.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4381/0.9166, allocations: 111.1 MB / 0.6113 GB, free: 324 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009154/0.9176, allocations: 8.125 kB / 0.6113 GB, free: 324 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004/0.9216, allocations: 1.366 MB / 0.6127 GB, free: 316 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005517/0.9272, allocations: 1.652 MB / 0.6143 GB, free: 296 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.0964/1.024, allocations: 29.35 MB / 0.6429 GB, free: 13.71 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002649/1.026, allocations: 1.399 MB / 0.6443 GB, free: 13.37 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003466/1.027, allocations: 129.5 kB / 0.6444 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01943/1.046, allocations: 8.957 MB / 0.6532 GB, free: 10.32 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/1.047, allocations: 374.2 kB / 0.6535 GB, free: 10.16 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.223e-05/1.047, allocations: 44 kB / 0.6536 GB, free: 10.12 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07955/1.127, allocations: 33.48 MB / 0.6863 GB, free: 1.277 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003665/1.127, allocations: 126.3 kB / 0.6864 GB, free: 1.156 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009317/1.128, allocations: 305.5 kB / 0.6867 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05937/1.188, allocations: 14.06 MB / 0.7004 GB, free: 3.887 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/1.188, allocations: 0 / 0.7004 GB, free: 3.887 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.165e-06/1.188, allocations: 0 / 0.7004 GB, free: 3.887 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/1.188, allocations: 4 kB / 0.7004 GB, free: 3.883 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.00838/1.196, allocations: 2.564 MB / 0.7029 GB, free: 1.273 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/1.196, allocations: 11.03 kB / 0.7029 GB, free: 1.266 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000134/1.196, allocations: 86.52 kB / 0.703 GB, free: 1.172 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006625/1.197, allocations: 83.39 kB / 0.7031 GB, free: 1.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005838/1.198, allocations: 342.5 kB / 0.7034 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.178e-05/1.198, allocations: 32.66 kB / 0.7035 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/1.198, allocations: 32 kB / 0.7035 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/1.199, allocations: 0.5963 MB / 0.7041 GB, free: 48 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/1.199, allocations: 7.906 kB / 0.7041 GB, free: 40 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.88e-05/1.199, allocations: 16 kB / 0.7041 GB, free: 24 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/1.199, allocations: 14.95 kB / 0.7041 GB, free: 12 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/1.201, allocations: 0.552 MB / 0.7046 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002883/1.204, allocations: 2.554 MB / 0.7071 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/1.205, allocations: 0.5005 MB / 0.7076 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005915/1.205, allocations: 339.1 kB / 0.708 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5142/1.72, allocations: 139 MB / 0.8437 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/1.72, allocations: 38.81 kB / 0.8437 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.196e-06/1.72, allocations: 2.344 kB / 0.8437 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005735/1.726, allocations: 2.325 MB / 0.846 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/1.726, allocations: 70.78 kB / 0.846 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/1.726, allocations: 248 kB / 0.8463 GB, free: 275.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/1.726, allocations: 33.7 kB / 0.8463 GB, free: 275.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.251e-05/1.726, allocations: 183.6 kB / 0.8465 GB, free: 275.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/1.726, allocations: 273.4 kB / 0.8468 GB, free: 275.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/1.726, allocations: 100.5 kB / 0.8468 GB, free: 275.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.331e-05/1.726, allocations: 355.3 kB / 0.8472 GB, free: 274.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000482/1.727, allocations: 270.4 kB / 0.8474 GB, free: 274.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000518/1.727, allocations: 396.6 kB / 0.8478 GB, free: 274.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/1.728, allocations: 0.689 MB / 0.8485 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/1.728, allocations: 0 / 0.8485 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001333/1.73, allocations: 0.8009 MB / 0.8493 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/1.73, allocations: 3.906 kB / 0.8493 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/1.73, allocations: 6.031 kB / 0.8493 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002562/1.73, allocations: 61.45 kB / 0.8493 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003975/1.73, allocations: 103.3 kB / 0.8494 GB, free: 273.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09192/1.822, allocations: 22.92 MB / 0.8718 GB, free: 252.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/1.823, allocations: 36.03 kB / 0.8719 GB, free: 252.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.325e-05/1.823, allocations: 19.94 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.0003131/1.823, allocations: 192 kB / 0.8721 GB, free: 252.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-05/1.823, allocations: 43.44 kB / 0.8721 GB, free: 252.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/1.825, allocations: 1.552 MB / 0.8736 GB, free: 250.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/1.825, allocations: 12.5 kB / 0.8736 GB, free: 250.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.825, allocations: 4 kB / 0.8736 GB, free: 250.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00115/1.826, allocations: 1.137 MB / 0.8747 GB, free: 249.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/1.828, allocations: 1.592 MB / 0.8763 GB, free: 247.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/1.828, allocations: 6.188 kB / 0.8763 GB, free: 247.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003133/1.829, allocations: 79.88 kB / 0.8764 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002036/1.829, allocations: 48.83 kB / 0.8764 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/1.829, allocations: 12 kB / 0.8764 GB, free: 247.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000796/1.83, allocations: 1.42 MB / 0.8778 GB, free: 246.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/1.83, allocations: 0 / 0.8778 GB, free: 246.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/1.831, allocations: 1.177 MB / 0.879 GB, free: 245 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.715e-05/1.831, allocations: 116.6 kB / 0.8791 GB, free: 244.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.668e-05/1.831, allocations: 15.84 kB / 0.8791 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/1.832, allocations: 22.67 kB / 0.8791 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/1.832, allocations: 43.94 kB / 0.8792 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/1.832, allocations: 19.98 kB / 0.8792 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002134/1.832, allocations: 243.1 kB / 0.8794 GB, free: 244.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/1.832, allocations: 0 / 0.8794 GB, free: 244.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008292/1.84, allocations: 3.184 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.01685/1.857, allocations: 5.727 MB / 0.8881 GB, free: 236.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002232/1.86, allocations: 0.9728 MB / 0.8891 GB, free: 235.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.86, allocations: 0 / 0.8891 GB, free: 235.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007746/1.86, allocations: 499.6 kB / 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.00195/1.862, allocations: 389.3 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.01389/1.876, allocations: 6.146 MB / 0.8959 GB, free: 228.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/1.877, allocations: 0.8526 MB / 0.8968 GB, free: 227.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005717/1.877, allocations: 159.8 kB / 0.8969 GB, free: 227.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/1.877, allocations: 171.4 kB / 0.8971 GB, free: 227 MB / 0.5919 GB Notification: Performance of SimCode: time 8.42e-07/1.877, allocations: 0 / 0.8971 GB, free: 227 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1968/2.074, allocations: 124.2 MB / 1.018 GB, free: 102.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.58/18.66, allocations: 15.88 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)