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.007279/0.007279, allocations: 100.2 kB / 15.73 MB, free: 6.023 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.001734/0.001734, allocations: 187.7 kB / 16.67 MB, free: 5.961 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.524/1.524, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04743/0.04743, allocations: 9.092 MB / 279 MB, free: 12.08 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.001607/0.001607, allocations: 70.25 kB / 387 MB, free: 8.473 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3461, allocations: 48.16 MB / 435.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.5412/0.8873, allocations: 197.7 MB / 0.6181 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1351/1.022, allocations: 143.7 MB / 0.7584 GB, free: 9.559 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/1.023, allocations: 11.94 kB / 0.7584 GB, free: 9.547 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.004552/1.028, allocations: 1.836 MB / 0.7602 GB, free: 7.703 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006429/1.035, allocations: 2.531 MB / 0.7627 GB, free: 5.16 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.11/1.145, allocations: 39.11 MB / 0.8008 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00293/1.148, allocations: 1.971 MB / 0.8028 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000418/1.148, allocations: 202.5 kB / 0.803 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001604/1.15, allocations: 0.798 MB / 0.8037 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006826/1.15, allocations: 0.533 MB / 0.8043 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001149/1.15, allocations: 60 kB / 0.8043 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4233/1.574, allocations: 46.6 MB / 0.8498 GB, free: 43.94 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002716/1.574, allocations: 169.9 kB / 0.85 GB, free: 43.94 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006113/1.575, allocations: 422.8 kB / 0.8504 GB, free: 43.94 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.06211/1.637, allocations: 18.76 MB / 0.8687 GB, free: 43.68 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/1.637, allocations: 3.344 kB / 0.8687 GB, free: 43.68 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.865e-06/1.637, allocations: 0.9844 kB / 0.8687 GB, free: 43.68 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.696e-05/1.637, allocations: 1.406 kB / 0.8687 GB, free: 43.68 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.00884/1.646, allocations: 3.347 MB / 0.872 GB, free: 41.93 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/1.646, allocations: 10.03 kB / 0.872 GB, free: 41.93 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/1.646, allocations: 107.5 kB / 0.8721 GB, free: 41.89 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008186/1.647, allocations: 118.4 kB / 0.8722 GB, free: 41.85 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006445/1.647, allocations: 411.2 kB / 0.8726 GB, free: 41.61 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/1.647, allocations: 48.58 kB / 0.8726 GB, free: 41.61 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.876e-05/1.647, allocations: 50.19 kB / 0.8727 GB, free: 41.61 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/1.649, allocations: 0.8204 MB / 0.8735 GB, free: 41.5 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/1.649, allocations: 3.656 kB / 0.8735 GB, free: 41.5 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.855e-05/1.649, allocations: 19.28 kB / 0.8735 GB, free: 41.5 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/1.649, allocations: 23.72 kB / 0.8735 GB, free: 41.5 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/1.651, allocations: 0.7546 MB / 0.8743 GB, free: 41.49 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002876/1.654, allocations: 3.421 MB / 0.8776 GB, free: 39.25 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/1.655, allocations: 0.6824 MB / 0.8783 GB, free: 39.21 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006428/1.656, allocations: 485.2 kB / 0.8787 GB, free: 39.2 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.334/1.99, allocations: 185.3 MB / 1.06 GB, free: 9.223 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/1.99, allocations: 41.31 kB / 1.06 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.036e-06/1.99, allocations: 0 / 1.06 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009771/2, allocations: 3.419 MB / 1.063 GB, free: 6.594 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/2, allocations: 59.95 kB / 1.063 GB, free: 6.52 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003739/2, allocations: 307.3 kB / 1.063 GB, free: 6.266 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 6.068e-05/2, allocations: 36.27 kB / 1.063 GB, free: 6.23 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/2, allocations: 231.5 kB / 1.064 GB, free: 6.039 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003182/2.001, allocations: 387.6 kB / 1.064 GB, free: 5.711 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/2.001, allocations: 131.2 kB / 1.064 GB, free: 5.621 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.00015/2.001, allocations: 367 kB / 1.065 GB, free: 5.277 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007478/2.002, allocations: 398.5 kB / 1.065 GB, free: 5.047 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008397/2.003, allocations: 0.5338 MB / 1.065 GB, free: 4.641 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/2.004, allocations: 0.9794 MB / 1.066 GB, free: 3.988 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/2.004, allocations: 0 / 1.066 GB, free: 3.988 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002175/2.006, allocations: 1.128 MB / 1.067 GB, free: 3.227 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/2.006, allocations: 6.406 kB / 1.068 GB, free: 3.223 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/2.006, allocations: 6.016 kB / 1.068 GB, free: 3.219 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004236/2.007, allocations: 102.6 kB / 1.068 GB, free: 3.129 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/2.008, allocations: 208.6 kB / 1.068 GB, free: 2.945 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3567/2.365, allocations: 35.25 MB / 1.102 GB, free: 425.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005991/2.365, allocations: 41.08 kB / 1.102 GB, free: 425.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.916e-05/2.365, allocations: 26.77 kB / 1.102 GB, free: 425.5 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.0003123/2.366, allocations: 216 kB / 1.103 GB, free: 425.4 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/2.366, allocations: 60.03 kB / 1.103 GB, free: 425.4 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/2.369, allocations: 2.382 MB / 1.105 GB, free: 425.1 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.678e-05/2.369, allocations: 26.05 kB / 1.105 GB, free: 425.1 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/2.369, allocations: 4.203 kB / 1.105 GB, free: 425.1 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001864/2.371, allocations: 1.652 MB / 1.107 GB, free: 424.6 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002903/2.374, allocations: 2.452 MB / 1.109 GB, free: 423.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/2.374, allocations: 0 / 1.109 GB, free: 423.4 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004948/2.374, allocations: 125.3 kB / 1.109 GB, free: 423.4 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004554/2.375, allocations: 212.7 kB / 1.109 GB, free: 423.3 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/2.375, allocations: 19.91 kB / 1.109 GB, free: 423.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001842/2.376, allocations: 3.971 MB / 1.113 GB, free: 419.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/2.376, allocations: 3.938 kB / 1.113 GB, free: 419.4 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002666/2.379, allocations: 1.971 MB / 1.115 GB, free: 418.4 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/2.379, allocations: 139.3 kB / 1.115 GB, free: 418.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.2e-05/2.379, allocations: 15.97 kB / 1.115 GB, free: 418.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/2.38, allocations: 37.92 kB / 1.115 GB, free: 418.3 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/2.38, allocations: 61.69 kB / 1.115 GB, free: 418.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/2.38, allocations: 22.03 kB / 1.115 GB, free: 418.3 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002487/2.38, allocations: 257.4 kB / 1.116 GB, free: 418.1 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.173e-06/2.38, allocations: 0 / 1.116 GB, free: 418.1 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01606/2.396, allocations: 5.46 MB / 1.121 GB, free: 417.9 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.03304/2.429, allocations: 9.046 MB / 1.13 GB, free: 415.6 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003161/2.433, allocations: 1.568 MB / 1.131 GB, free: 414.6 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/2.433, allocations: 0 / 1.131 GB, free: 414.6 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/2.434, allocations: 0.8388 MB / 1.132 GB, free: 414.1 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002405/2.436, allocations: 0.5073 MB / 1.133 GB, free: 413.9 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01946/2.456, allocations: 8.527 MB / 1.141 GB, free: 408.3 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/2.456, allocations: 0.9369 MB / 1.142 GB, free: 407.3 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006021/2.456, allocations: 182.3 kB / 1.142 GB, free: 407.1 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/2.457, allocations: 251.3 kB / 1.142 GB, free: 406.9 MB / 0.7637 GB Notification: Performance of SimCode: time 9.82e-07/2.457, allocations: 4 kB / 1.142 GB, free: 406.9 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2706/2.727, allocations: 210.4 MB / 1.348 GB, free: 196.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.22/22.95, allocations: 3.953 kB / 1.348 GB, free: 196.1 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)