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.001471/0.001471, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001651/0.001651, allocations: 193.1 kB / 16.25 MB, free: 6.629 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.407/1.407, allocations: 205.1 MB / 222.1 MB, free: 4.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04484/0.04484, allocations: 9.08 MB / 278.5 MB, free: 12.36 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.001424/0.001424, allocations: 72.41 kB / 337.6 MB, free: 25.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09036/0.0918, allocations: 48.17 MB / 385.8 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.3812/0.473, allocations: 196.9 MB / 0.569 GB, free: 1.09 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3769/0.85, allocations: 143.3 MB / 0.7089 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.8512, allocations: 10.62 kB / 0.7089 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005058/0.8563, allocations: 1.725 MB / 0.7106 GB, free: 12.23 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006557/0.8629, allocations: 2.398 MB / 0.7129 GB, free: 10.21 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1156/0.9786, allocations: 35.3 MB / 0.7474 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002938/0.9815, allocations: 1.976 MB / 0.7493 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003839/0.9819, allocations: 194.7 kB / 0.7495 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001529/0.9835, allocations: 0.8172 MB / 0.7503 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000666/0.9841, allocations: 0.5563 MB / 0.7509 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.089e-05/0.9842, allocations: 60 kB / 0.7509 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.08308/1.067, allocations: 45.62 MB / 0.7955 GB, free: 5.504 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004007/1.068, allocations: 167.3 kB / 0.7956 GB, free: 5.344 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0008086/1.069, allocations: 434.3 kB / 0.7961 GB, free: 4.918 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3437/1.412, allocations: 18.79 MB / 0.8144 GB, free: 49.09 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/1.412, allocations: 0 / 0.8144 GB, free: 49.09 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.066e-06/1.412, allocations: 3.031 kB / 0.8144 GB, free: 49.09 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.501e-05/1.412, allocations: 0 / 0.8144 GB, free: 49.09 MB / 0.545 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.01154/1.424, allocations: 3.347 MB / 0.8177 GB, free: 47.37 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/1.424, allocations: 7.938 kB / 0.8177 GB, free: 47.37 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/1.424, allocations: 109.4 kB / 0.8178 GB, free: 47.33 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007861/1.425, allocations: 122.1 kB / 0.8179 GB, free: 47.3 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/1.425, allocations: 403.7 kB / 0.8183 GB, free: 47.05 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.085e-05/1.425, allocations: 45.88 kB / 0.8183 GB, free: 47.05 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.13e-05/1.425, allocations: 44.88 kB / 0.8184 GB, free: 47.05 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/1.427, allocations: 0.8234 MB / 0.8192 GB, free: 46.94 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/1.427, allocations: 2.688 kB / 0.8192 GB, free: 46.94 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.221e-05/1.427, allocations: 19.03 kB / 0.8192 GB, free: 46.94 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.683e-05/1.427, allocations: 31.03 kB / 0.8192 GB, free: 46.94 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/1.429, allocations: 0.7573 MB / 0.82 GB, free: 46.94 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002791/1.432, allocations: 3.414 MB / 0.8233 GB, free: 44.71 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/1.433, allocations: 0.6848 MB / 0.824 GB, free: 44.68 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006563/1.434, allocations: 483.3 kB / 0.8244 GB, free: 44.67 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3171/1.751, allocations: 185.3 MB / 1.005 GB, free: 13.72 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.101e-05/1.751, allocations: 37.19 kB / 1.005 GB, free: 13.68 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 4.659e-06/1.751, allocations: 0 / 1.005 GB, free: 13.68 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.009644/1.76, allocations: 3.424 MB / 1.009 GB, free: 11.08 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/1.761, allocations: 55.97 kB / 1.009 GB, free: 11.01 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/1.761, allocations: 308.2 kB / 1.009 GB, free: 10.76 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 6.3e-05/1.761, allocations: 36.83 kB / 1.009 GB, free: 10.72 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/1.761, allocations: 232.3 kB / 1.009 GB, free: 10.53 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002186/1.761, allocations: 380.8 kB / 1.01 GB, free: 10.21 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/1.762, allocations: 138.9 kB / 1.01 GB, free: 10.12 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001401/1.762, allocations: 377 kB / 1.01 GB, free: 9.766 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006484/1.762, allocations: 392.3 kB / 1.011 GB, free: 9.535 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007522/1.763, allocations: 0.5339 MB / 1.011 GB, free: 9.125 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/1.765, allocations: 0.9734 MB / 1.012 GB, free: 8.488 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/1.765, allocations: 4 kB / 1.012 GB, free: 8.484 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002204/1.767, allocations: 1.122 MB / 1.013 GB, free: 7.727 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/1.767, allocations: 14.14 kB / 1.013 GB, free: 7.715 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/1.767, allocations: 4 kB / 1.013 GB, free: 7.711 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000426/1.767, allocations: 104 kB / 1.013 GB, free: 7.625 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/1.768, allocations: 208 kB / 1.013 GB, free: 7.438 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4631/2.232, allocations: 46.88 MB / 1.059 GB, free: 187.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007131/2.232, allocations: 68.11 kB / 1.059 GB, free: 187 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.347e-05/2.232, allocations: 25.09 kB / 1.059 GB, free: 187 MB / 0.6856 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.0003248/2.233, allocations: 221.6 kB / 1.06 GB, free: 186.9 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/2.233, allocations: 62.62 kB / 1.06 GB, free: 186.9 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002566/2.235, allocations: 2.39 MB / 1.062 GB, free: 186.6 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-05/2.235, allocations: 20.52 kB / 1.062 GB, free: 186.6 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/2.235, allocations: 0 / 1.062 GB, free: 186.6 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001853/2.237, allocations: 1.655 MB / 1.064 GB, free: 186.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002854/2.24, allocations: 2.461 MB / 1.066 GB, free: 185.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/2.24, allocations: 4 kB / 1.066 GB, free: 185.8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/2.241, allocations: 117.4 kB / 1.066 GB, free: 185.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004554/2.241, allocations: 206.1 kB / 1.066 GB, free: 185.8 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.965e-05/2.241, allocations: 21.31 kB / 1.066 GB, free: 185.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001762/2.243, allocations: 3.991 MB / 1.07 GB, free: 182 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/2.243, allocations: 0 / 1.07 GB, free: 182 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/2.245, allocations: 1.974 MB / 1.072 GB, free: 181.8 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001868/2.246, allocations: 135.6 kB / 1.072 GB, free: 181.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.249e-05/2.246, allocations: 11.53 kB / 1.072 GB, free: 181.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000459/2.246, allocations: 58.5 kB / 1.072 GB, free: 181.6 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/2.246, allocations: 73.23 kB / 1.072 GB, free: 181.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.599e-05/2.246, allocations: 21.84 kB / 1.072 GB, free: 181.6 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002424/2.247, allocations: 250.6 kB / 1.073 GB, free: 181.5 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.1e-07/2.247, allocations: 0 / 1.073 GB, free: 181.5 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01625/2.263, allocations: 4.824 MB / 1.077 GB, free: 181.3 MB / 0.6856 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.03066/2.294, allocations: 8.22 MB / 1.085 GB, free: 177.6 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003302/2.297, allocations: 1.552 MB / 1.087 GB, free: 176.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/2.297, allocations: 4 kB / 1.087 GB, free: 176.6 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001051/2.298, allocations: 0.8281 MB / 1.088 GB, free: 176.1 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/2.3, allocations: 0.5002 MB / 1.088 GB, free: 175.7 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/2.319, allocations: 8.665 MB / 1.097 GB, free: 169.2 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/2.319, allocations: 0.9351 MB / 1.098 GB, free: 168.3 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0006091/2.32, allocations: 188.8 kB / 1.098 GB, free: 168.2 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002653/2.32, allocations: 250.7 kB / 1.098 GB, free: 168.2 MB / 0.6856 GB Notification: Performance of SimCode: time 6.11e-07/2.32, allocations: 0 / 1.098 GB, free: 168.2 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4465/2.767, allocations: 194.8 MB / 1.288 GB, free: 255.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/2.767, allocations: 239.1 kB / 1.289 GB, free: 255.3 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.852/11.62, allocations: 0 / 1.289 GB, free: 255.3 MB / 0.6856 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)