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.0007708/0.0007711, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.0009149/0.000915, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.215/1.215, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0412/0.0412, allocations: 9.073 MB / 279.5 MB, free: 12.26 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.0004476/0.0004476, allocations: 16 kB / 339.2 MB, free: 25.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06878/0.06924, allocations: 49.19 MB / 388.4 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.3434/0.4126, allocations: 184.2 MB / 0.5592 GB, free: 15.72 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3201/0.7328, allocations: 134.3 MB / 0.6904 GB, free: 7.645 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008225/0.7336, allocations: 10.97 kB / 0.6904 GB, free: 7.645 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003466/0.7371, allocations: 1.442 MB / 0.6918 GB, free: 7.266 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004332/0.7415, allocations: 2.035 MB / 0.6938 GB, free: 6.688 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0759/0.8174, allocations: 29.91 MB / 0.723 GB, free: 84 kB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002717/0.8201, allocations: 2.24 MB / 0.7252 GB, free: 13.88 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003173/0.8204, allocations: 147 kB / 0.7253 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001139/0.8216, allocations: 0.6918 MB / 0.726 GB, free: 13.05 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006807/0.8223, allocations: 0.5136 MB / 0.7265 GB, free: 12.57 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 5.746e-05/0.8223, allocations: 28 kB / 0.7265 GB, free: 12.55 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06911/0.8915, allocations: 36.77 MB / 0.7625 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003358/0.8918, allocations: 127 kB / 0.7626 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004683/0.8923, allocations: 197.3 kB / 0.7628 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02374/0.9161, allocations: 11.43 MB / 0.7739 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.9161, allocations: 4 kB / 0.7739 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.024e-06/0.9161, allocations: 0 / 0.7739 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.863e-05/0.9162, allocations: 0 / 0.7739 GB, free: 14.53 MB / 0.5137 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.007574/0.9237, allocations: 3.24 MB / 0.7771 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.9238, allocations: 8.031 kB / 0.7771 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.9239, allocations: 107.9 kB / 0.7772 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006812/0.9246, allocations: 123.1 kB / 0.7773 GB, free: 11 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/0.9251, allocations: 402.5 kB / 0.7777 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.739e-05/0.9252, allocations: 41 kB / 0.7777 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.083e-05/0.9252, allocations: 44 kB / 0.7778 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.9269, allocations: 0.8315 MB / 0.7786 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.9269, allocations: 5.547 kB / 0.7786 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.212e-05/0.927, allocations: 27.98 kB / 0.7786 GB, free: 9.602 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-05/0.927, allocations: 19.98 kB / 0.7786 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.9287, allocations: 0.7856 MB / 0.7794 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003191/0.9319, allocations: 3.428 MB / 0.7828 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.9332, allocations: 0.6944 MB / 0.7834 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006952/0.9339, allocations: 491.1 kB / 0.7839 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5081/1.442, allocations: 181.1 MB / 0.9608 GB, free: 20.27 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.276e-05/1.442, allocations: 43.02 kB / 0.9608 GB, free: 20.22 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=109): time 2.535e-06/1.442, allocations: 1.719 kB / 0.9608 GB, free: 20.22 MB / 0.6387 GB Notification: Performance of matching and sorting (n=117): time 0.008126/1.45, allocations: 3.511 MB / 0.9642 GB, free: 19.27 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/1.45, allocations: 57.81 kB / 0.9643 GB, free: 19.2 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003276/1.451, allocations: 307.4 kB / 0.9646 GB, free: 19.05 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.981e-05/1.451, allocations: 34.7 kB / 0.9646 GB, free: 19.02 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/1.451, allocations: 228.9 kB / 0.9648 GB, free: 18.86 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000226/1.451, allocations: 384.9 kB / 0.9652 GB, free: 18.57 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/1.451, allocations: 14.78 kB / 0.9652 GB, free: 18.57 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001586/1.451, allocations: 372.5 kB / 0.9656 GB, free: 18.24 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006467/1.452, allocations: 409.8 kB / 0.966 GB, free: 18.19 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006845/1.453, allocations: 0.5457 MB / 0.9665 GB, free: 17.86 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006758/1.453, allocations: 474.6 kB / 0.967 GB, free: 17.6 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.453, allocations: 0 / 0.967 GB, free: 17.6 MB / 0.6387 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001733/1.455, allocations: 1.159 MB / 0.9681 GB, free: 16.8 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/1.455, allocations: 8 kB / 0.9681 GB, free: 16.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/1.455, allocations: 0 / 0.9681 GB, free: 16.8 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003375/1.455, allocations: 113.1 kB / 0.9682 GB, free: 16.7 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008538/1.456, allocations: 216.3 kB / 0.9684 GB, free: 16.51 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3363/1.793, allocations: 46.28 MB / 1.014 GB, free: 363.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006698/1.793, allocations: 76.22 kB / 1.014 GB, free: 363.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-05/1.793, allocations: 25.81 kB / 1.014 GB, free: 363.2 MB / 0.6544 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 (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,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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 initialization (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003841/1.794, allocations: 227.5 kB / 1.014 GB, free: 363.1 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/1.794, allocations: 56.62 kB / 1.014 GB, free: 363.1 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002803/1.797, allocations: 2.42 MB / 1.016 GB, free: 362.8 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.561e-05/1.797, allocations: 23.83 kB / 1.016 GB, free: 362.8 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/1.797, allocations: 0 / 1.016 GB, free: 362.8 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001885/1.799, allocations: 1.69 MB / 1.018 GB, free: 362.1 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003082/1.802, allocations: 2.495 MB / 1.02 GB, free: 360.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/1.802, allocations: 0 / 1.02 GB, free: 360.9 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004388/1.802, allocations: 130 kB / 1.021 GB, free: 360.8 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005088/1.803, allocations: 225.2 kB / 1.021 GB, free: 360.8 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/1.803, allocations: 22.59 kB / 1.021 GB, free: 360.8 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001798/1.805, allocations: 3.79 MB / 1.025 GB, free: 357 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.805, allocations: 6.484 kB / 1.025 GB, free: 357 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/1.807, allocations: 2.016 MB / 1.026 GB, free: 356.1 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001743/1.807, allocations: 151.3 kB / 1.027 GB, free: 355.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.651e-05/1.808, allocations: 15.75 kB / 1.027 GB, free: 355.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004535/1.808, allocations: 76.3 kB / 1.027 GB, free: 355.9 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/1.808, allocations: 65.94 kB / 1.027 GB, free: 355.9 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/1.808, allocations: 19.09 kB / 1.027 GB, free: 355.9 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002142/1.808, allocations: 251.2 kB / 1.027 GB, free: 355.8 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/1.808, allocations: 0 / 1.027 GB, free: 355.8 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01097/1.819, allocations: 4.817 MB / 1.032 GB, free: 355.5 MB / 0.6544 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02395/1.843, allocations: 8.257 MB / 1.04 GB, free: 353.4 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00261/1.846, allocations: 1.55 MB / 1.041 GB, free: 352.6 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.846, allocations: 0 / 1.041 GB, free: 352.6 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/1.847, allocations: 0.8449 MB / 1.042 GB, free: 352.1 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/1.849, allocations: 478.1 kB / 1.043 GB, free: 351.8 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/1.861, allocations: 6.222 MB / 1.049 GB, free: 345.8 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/1.862, allocations: 0.9293 MB / 1.05 GB, free: 344.9 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0005593/1.862, allocations: 189 kB / 1.05 GB, free: 344.7 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002525/1.862, allocations: 251.3 kB / 1.05 GB, free: 344.5 MB / 0.6544 GB Notification: Performance of SimCode: time 6.12e-07/1.862, allocations: 0 / 1.05 GB, free: 344.5 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3709/2.233, allocations: 194.1 MB / 1.24 GB, free: 364.5 MB / 0.6544 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001178/2.234, allocations: 228.2 kB / 1.24 GB, free: 364.3 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.402/10.64, allocations: 0 / 1.24 GB, free: 364.3 MB / 0.6544 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/linux/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) Environment - environmentSimulation: