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.009852/0.009852, allocations: 102.7 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.00189/0.00189, allocations: 191.8 kB / 16.67 MB, free: 5.93 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.593/1.593, allocations: 205.1 MB / 222.5 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.04744/0.04744, allocations: 9.1 MB / 279 MB, free: 12.07 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.001482/0.001482, allocations: 71.89 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.301, allocations: 48.15 MB / 435.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4825/0.7836, allocations: 197.7 MB / 0.6181 GB, free: 1.012 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1132/0.8969, allocations: 143.7 MB / 0.7584 GB, free: 9.578 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.8979, allocations: 7.938 kB / 0.7584 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.004514/0.9025, allocations: 1.839 MB / 0.7602 GB, free: 7.723 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005552/0.9081, allocations: 2.531 MB / 0.7626 GB, free: 5.18 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.1019/1.01, allocations: 39.11 MB / 0.8008 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003198/1.013, allocations: 1.978 MB / 0.8028 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004078/1.014, allocations: 194.6 kB / 0.803 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001598/1.015, allocations: 0.8214 MB / 0.8038 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007359/1.016, allocations: 0.5291 MB / 0.8043 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.105e-05/1.016, allocations: 60 kB / 0.8043 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4114/1.427, allocations: 46.6 MB / 0.8498 GB, free: 43.89 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003042/1.428, allocations: 173.1 kB / 0.85 GB, free: 43.89 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007371/1.429, allocations: 426.9 kB / 0.8504 GB, free: 43.89 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.05913/1.488, allocations: 18.76 MB / 0.8687 GB, free: 43.64 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/1.488, allocations: 0 / 0.8687 GB, free: 43.64 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.623e-06/1.488, allocations: 0 / 0.8687 GB, free: 43.64 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.068e-05/1.488, allocations: 3.344 kB / 0.8687 GB, free: 43.64 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.009793/1.498, allocations: 3.341 MB / 0.872 GB, free: 41.88 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/1.498, allocations: 12.62 kB / 0.872 GB, free: 41.88 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/1.498, allocations: 107.5 kB / 0.8721 GB, free: 41.84 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000921/1.499, allocations: 117.7 kB / 0.8722 GB, free: 41.81 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007503/1.499, allocations: 408.2 kB / 0.8726 GB, free: 41.57 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.241e-05/1.5, allocations: 45 kB / 0.8727 GB, free: 41.57 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-05/1.5, allocations: 51.25 kB / 0.8727 GB, free: 41.57 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/1.502, allocations: 0.8225 MB / 0.8735 GB, free: 41.45 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/1.502, allocations: 5.438 kB / 0.8735 GB, free: 41.45 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.541e-05/1.502, allocations: 18.09 kB / 0.8735 GB, free: 41.45 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.696e-05/1.502, allocations: 22.73 kB / 0.8736 GB, free: 41.45 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/1.503, allocations: 0.7546 MB / 0.8743 GB, free: 41.45 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003387/1.507, allocations: 3.418 MB / 0.8776 GB, free: 39.2 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/1.508, allocations: 0.687 MB / 0.8783 GB, free: 39.16 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000646/1.509, allocations: 489.2 kB / 0.8788 GB, free: 39.14 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3234/1.832, allocations: 185.3 MB / 1.06 GB, free: 9.199 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/1.832, allocations: 34.94 kB / 1.06 GB, free: 9.16 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.937e-06/1.832, allocations: 0 / 1.06 GB, free: 9.16 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009732/1.842, allocations: 3.421 MB / 1.063 GB, free: 6.574 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/1.842, allocations: 59.97 kB / 1.063 GB, free: 6.5 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003592/1.843, allocations: 305.3 kB / 1.063 GB, free: 6.25 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/1.843, allocations: 36.77 kB / 1.063 GB, free: 6.215 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/1.843, allocations: 231.4 kB / 1.064 GB, free: 6.023 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/1.843, allocations: 383.9 kB / 1.064 GB, free: 5.699 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002185/1.843, allocations: 142.7 kB / 1.064 GB, free: 5.602 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001514/1.844, allocations: 363.3 kB / 1.065 GB, free: 5.262 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007314/1.844, allocations: 395.3 kB / 1.065 GB, free: 5.031 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008322/1.845, allocations: 0.533 MB / 1.065 GB, free: 4.625 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/1.847, allocations: 0.9774 MB / 1.066 GB, free: 3.977 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/1.847, allocations: 0 / 1.066 GB, free: 3.977 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002093/1.849, allocations: 1.127 MB / 1.068 GB, free: 3.215 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/1.849, allocations: 9.312 kB / 1.068 GB, free: 3.207 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/1.849, allocations: 12.41 kB / 1.068 GB, free: 3.199 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003952/1.849, allocations: 105 kB / 1.068 GB, free: 3.109 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/1.85, allocations: 201.7 kB / 1.068 GB, free: 2.93 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3437/2.194, allocations: 35.25 MB / 1.102 GB, free: 425.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006301/2.195, allocations: 40.86 kB / 1.102 GB, free: 425.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-05/2.195, allocations: 27.25 kB / 1.102 GB, free: 425.4 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.0003216/2.195, allocations: 226.5 kB / 1.103 GB, free: 425.3 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/2.195, allocations: 59.62 kB / 1.103 GB, free: 425.3 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003163/2.198, allocations: 2.374 MB / 1.105 GB, free: 425.1 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.182e-05/2.199, allocations: 19.05 kB / 1.105 GB, free: 425.1 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/2.199, allocations: 3.875 kB / 1.105 GB, free: 425.1 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002224/2.201, allocations: 1.654 MB / 1.107 GB, free: 424.5 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003564/2.204, allocations: 2.461 MB / 1.109 GB, free: 423.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/2.204, allocations: 0 / 1.109 GB, free: 423.3 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005042/2.205, allocations: 119.5 kB / 1.109 GB, free: 423.3 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005241/2.205, allocations: 218.1 kB / 1.109 GB, free: 423.2 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.976e-05/2.206, allocations: 19.16 kB / 1.109 GB, free: 423.2 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/2.208, allocations: 3.968 MB / 1.113 GB, free: 419.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/2.208, allocations: 0 / 1.113 GB, free: 419.3 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002881/2.21, allocations: 1.983 MB / 1.115 GB, free: 418.4 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/2.211, allocations: 128 kB / 1.115 GB, free: 418.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.481e-05/2.211, allocations: 15.2 kB / 1.115 GB, free: 418.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004466/2.211, allocations: 37.19 kB / 1.115 GB, free: 418.2 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/2.211, allocations: 64.3 kB / 1.115 GB, free: 418.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.154e-05/2.211, allocations: 24.27 kB / 1.115 GB, free: 418.2 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002313/2.212, allocations: 249.4 kB / 1.116 GB, free: 418.1 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/2.212, allocations: 2.688 kB / 1.116 GB, free: 418.1 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01373/2.225, allocations: 5.46 MB / 1.121 GB, free: 417.8 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.03182/2.257, allocations: 9.049 MB / 1.13 GB, free: 415.5 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003986/2.261, allocations: 1.573 MB / 1.131 GB, free: 414.6 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/2.261, allocations: 0 / 1.131 GB, free: 414.6 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001273/2.263, allocations: 0.8278 MB / 1.132 GB, free: 414 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/2.266, allocations: 0.508 MB / 1.133 GB, free: 413.8 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0195/2.285, allocations: 8.533 MB / 1.141 GB, free: 408.1 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/2.286, allocations: 0.9357 MB / 1.142 GB, free: 407.2 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005619/2.286, allocations: 184.3 kB / 1.142 GB, free: 407 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002812/2.286, allocations: 251.4 kB / 1.142 GB, free: 406.8 MB / 0.7637 GB Notification: Performance of SimCode: time 1.864e-06/2.286, allocations: 0 / 1.142 GB, free: 406.8 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2515/2.538, allocations: 211.1 MB / 1.348 GB, free: 195.3 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.6/22.14, allocations: 11.92 kB / 1.348 GB, free: 195.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)