Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",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.006142/0.006142, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.00136/0.00136, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.564/1.564, allocations: 205.1 MB / 222.6 MB, free: 4.477 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05103/0.05103, allocations: 9.092 MB / 279 MB, free: 12.04 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.002148/0.002148, allocations: 75.88 kB / 387 MB, free: 8.426 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.312, allocations: 48.16 MB / 435.2 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.5066/0.8186, allocations: 197.7 MB / 0.6181 GB, free: 1 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1246/0.9432, allocations: 143.7 MB / 0.7584 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007681/0.944, allocations: 11.94 kB / 0.7584 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.004177/0.9483, allocations: 1.84 MB / 0.7602 GB, free: 7.676 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006004/0.9543, allocations: 2.527 MB / 0.7627 GB, free: 5.137 MB / 0.5294 GB [/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.1119/1.066, allocations: 39.11 MB / 0.8009 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003632/1.07, allocations: 1.978 MB / 0.8028 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/1.07, allocations: 190.6 kB / 0.803 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001697/1.072, allocations: 0.8018 MB / 0.8037 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008003/1.073, allocations: 0.5252 MB / 0.8043 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.692e-05/1.073, allocations: 64 kB / 0.8043 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4363/1.509, allocations: 46.6 MB / 0.8498 GB, free: 43.87 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000358/1.51, allocations: 168.5 kB / 0.85 GB, free: 43.87 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007988/1.51, allocations: 430.2 kB / 0.8504 GB, free: 43.87 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.06297/1.573, allocations: 18.8 MB / 0.8688 GB, free: 43.3 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/1.573, allocations: 0.875 kB / 0.8688 GB, free: 43.3 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.595e-06/1.573, allocations: 0 / 0.8688 GB, free: 43.3 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.714e-05/1.574, allocations: 0 / 0.8688 GB, free: 43.3 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.01471/1.588, allocations: 3.502 MB / 0.8722 GB, free: 41.39 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/1.588, allocations: 9.062 kB / 0.8722 GB, free: 41.39 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/1.588, allocations: 108 kB / 0.8723 GB, free: 41.35 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008435/1.589, allocations: 121.5 kB / 0.8724 GB, free: 41.31 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006193/1.59, allocations: 410.3 kB / 0.8728 GB, free: 41.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.309e-05/1.59, allocations: 41.31 kB / 0.8728 GB, free: 41.07 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-05/1.59, allocations: 57.61 kB / 0.8729 GB, free: 41.07 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/1.592, allocations: 0.8124 MB / 0.8737 GB, free: 40.95 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/1.592, allocations: 14.58 kB / 0.8737 GB, free: 40.95 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.211e-05/1.592, allocations: 20 kB / 0.8737 GB, free: 40.95 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.013e-05/1.592, allocations: 21.2 kB / 0.8737 GB, free: 40.95 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00176/1.594, allocations: 0.7549 MB / 0.8745 GB, free: 40.94 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003017/1.597, allocations: 3.418 MB / 0.8778 GB, free: 38.69 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/1.598, allocations: 0.6896 MB / 0.8785 GB, free: 38.66 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006514/1.599, allocations: 474.2 kB / 0.8789 GB, free: 38.64 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3432/1.942, allocations: 185.3 MB / 1.06 GB, free: 8.777 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.196e-05/1.942, allocations: 39.75 kB / 1.06 GB, free: 8.734 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 5.731e-06/1.942, allocations: 0 / 1.06 GB, free: 8.734 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.01005/1.952, allocations: 3.432 MB / 1.063 GB, free: 6.141 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/1.952, allocations: 63.97 kB / 1.063 GB, free: 6.062 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004229/1.953, allocations: 305 kB / 1.064 GB, free: 5.809 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.406e-05/1.953, allocations: 38.08 kB / 1.064 GB, free: 5.773 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/1.953, allocations: 235.4 kB / 1.064 GB, free: 5.578 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003464/1.953, allocations: 400 kB / 1.064 GB, free: 5.242 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/1.953, allocations: 133.1 kB / 1.064 GB, free: 5.152 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000223/1.954, allocations: 371.8 kB / 1.065 GB, free: 4.805 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000749/1.954, allocations: 394.4 kB / 1.065 GB, free: 4.574 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/1.956, allocations: 0.5357 MB / 1.066 GB, free: 4.164 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/1.957, allocations: 0.9807 MB / 1.067 GB, free: 3.516 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/1.957, allocations: 0 / 1.067 GB, free: 3.516 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.00232/1.96, allocations: 1.133 MB / 1.068 GB, free: 2.75 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/1.96, allocations: 9.312 kB / 1.068 GB, free: 2.742 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/1.96, allocations: 6.719 kB / 1.068 GB, free: 2.738 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004086/1.96, allocations: 105.9 kB / 1.068 GB, free: 2.648 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/1.961, allocations: 207.7 kB / 1.068 GB, free: 2.465 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3479/2.309, allocations: 35.27 MB / 1.103 GB, free: 424.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00064/2.31, allocations: 45.34 kB / 1.103 GB, free: 424.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.902e-05/2.31, allocations: 26.23 kB / 1.103 GB, free: 424.8 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004034/2.31, allocations: 224.1 kB / 1.103 GB, free: 424.7 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/2.31, allocations: 60.61 kB / 1.103 GB, free: 424.7 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00285/2.313, allocations: 2.387 MB / 1.105 GB, free: 424.4 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/2.313, allocations: 16.78 kB / 1.105 GB, free: 424.4 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/2.313, allocations: 1.469 kB / 1.105 GB, free: 424.4 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00176/2.315, allocations: 1.656 MB / 1.107 GB, free: 423.8 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002921/2.318, allocations: 2.46 MB / 1.109 GB, free: 422.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/2.318, allocations: 0 / 1.109 GB, free: 422.6 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004549/2.318, allocations: 119.4 kB / 1.109 GB, free: 422.6 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004362/2.319, allocations: 208.3 kB / 1.11 GB, free: 422.5 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.488e-05/2.319, allocations: 13.72 kB / 1.11 GB, free: 422.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001846/2.321, allocations: 3.982 MB / 1.113 GB, free: 418.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/2.321, allocations: 0 / 1.113 GB, free: 418.5 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002568/2.323, allocations: 1.976 MB / 1.115 GB, free: 417.6 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/2.324, allocations: 140.1 kB / 1.115 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.794e-05/2.324, allocations: 13.94 kB / 1.115 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003851/2.324, allocations: 34.02 kB / 1.116 GB, free: 417.4 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/2.324, allocations: 63.66 kB / 1.116 GB, free: 417.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.683e-05/2.324, allocations: 19.78 kB / 1.116 GB, free: 417.4 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002238/2.324, allocations: 257.8 kB / 1.116 GB, free: 417.3 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.11e-07/2.324, allocations: 0 / 1.116 GB, free: 417.3 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01825/2.343, allocations: 5.542 MB / 1.121 GB, free: 417 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03154/2.374, allocations: 9.153 MB / 1.13 GB, free: 414.3 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003137/2.377, allocations: 1.576 MB / 1.132 GB, free: 413.3 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/2.377, allocations: 0 / 1.132 GB, free: 413.3 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001056/2.379, allocations: 0.8297 MB / 1.133 GB, free: 412.8 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/2.381, allocations: 0.5057 MB / 1.133 GB, free: 412.6 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/2.401, allocations: 8.641 MB / 1.141 GB, free: 406.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/2.402, allocations: 0.9332 MB / 1.142 GB, free: 405.8 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006449/2.402, allocations: 184.8 kB / 1.143 GB, free: 405.7 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/2.403, allocations: 251.4 kB / 1.143 GB, free: 405.4 MB / 0.7637 GB Notification: Performance of SimCode: time 1.303e-06/2.403, allocations: 4 kB / 1.143 GB, free: 405.4 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2973/2.7, allocations: 210.7 MB / 1.349 GB, free: 194.3 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.07/22.77, allocations: 23.58 kB / 1.349 GB, free: 194.3 MB / 0.7637 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)