Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001567/0.001572, allocations: 188.1 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.153/2.153, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 86.92 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.0004011, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.3214/0.4295, allocations: 31.68 MB / 406.3 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.04591/0.4755, allocations: 25.59 MB / 431.9 MB, free: 1.113 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007651/0.4763, allocations: 10.5 kB / 431.9 MB, free: 1.109 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001595/0.4779, allocations: 326.8 kB / 432.2 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001593/0.4795, allocations: 370 kB / 432.6 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01985/0.4994, allocations: 3.97 MB / 436.6 MB, free: 13.31 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001967/0.5014, allocations: 0.7576 MB / 437.3 MB, free: 12.55 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003688/0.5018, allocations: 118.3 kB / 437.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001185/0.503, allocations: 398.8 kB / 437.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005437/0.5036, allocations: 274.9 kB / 438.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.433e-05/0.5037, allocations: 27.94 kB / 438.1 MB, free: 11.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1434/0.6471, allocations: 69.17 MB / 0.4954 GB, free: 6.535 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003297/0.6475, allocations: 111.6 kB / 0.4955 GB, free: 6.426 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003651/0.6479, allocations: 145.5 kB / 0.4956 GB, free: 6.277 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.07671/0.7246, allocations: 13.83 MB / 0.5091 GB, free: 8.434 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.7247, allocations: 4 kB / 0.5091 GB, free: 8.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.7247, allocations: 0 / 0.5091 GB, free: 8.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.7247, allocations: 0 / 0.5091 GB, free: 8.43 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.01147/0.7362, allocations: 1.314 MB / 0.5104 GB, free: 7.066 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.7362, allocations: 12.03 kB / 0.5104 GB, free: 7.055 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001686/0.7364, allocations: 90.5 kB / 0.5105 GB, free: 6.957 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009428/0.7374, allocations: 95.3 kB / 0.5106 GB, free: 6.863 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008146/0.7382, allocations: 382 kB / 0.511 GB, free: 6.449 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.894e-05/0.7383, allocations: 40.89 kB / 0.511 GB, free: 6.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.7384, allocations: 44 kB / 0.5111 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.7402, allocations: 0.6127 MB / 0.5117 GB, free: 5.707 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.321e-05/0.7403, allocations: 3.938 kB / 0.5117 GB, free: 5.703 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.952e-05/0.7404, allocations: 24 kB / 0.5117 GB, free: 5.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.168e-05/0.7404, allocations: 12 kB / 0.5117 GB, free: 5.668 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.742, allocations: 0.5191 MB / 0.5122 GB, free: 5.152 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007214/0.7493, allocations: 3.82 MB / 0.5159 GB, free: 1.023 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.7508, allocations: 411.5 kB / 0.5163 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005343/0.7562, allocations: 3.556 MB / 0.5198 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.847e-05/0.7563, allocations: 38.92 kB / 0.5198 GB, free: 12.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=46): time 3.327e-06/0.7563, allocations: 0 / 0.5198 GB, free: 12.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.01495/0.7712, allocations: 2.039 MB / 0.5218 GB, free: 10.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.7713, allocations: 63.84 kB / 0.5219 GB, free: 10.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005682/0.7719, allocations: 300.5 kB / 0.5222 GB, free: 9.816 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.763e-05/0.772, allocations: 33.7 kB / 0.5222 GB, free: 9.777 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002289/0.7723, allocations: 291 kB / 0.5225 GB, free: 9.488 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000223/0.7725, allocations: 185.3 kB / 0.5227 GB, free: 9.305 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.742e-05/0.7726, allocations: 12 kB / 0.5227 GB, free: 9.293 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.7727, allocations: 334.8 kB / 0.523 GB, free: 8.957 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005557/0.7733, allocations: 181.1 kB / 0.5232 GB, free: 8.777 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006795/0.774, allocations: 328.1 kB / 0.5235 GB, free: 8.398 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006469/0.7747, allocations: 232.7 kB / 0.5237 GB, free: 8.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.7747, allocations: 3.953 kB / 0.5237 GB, free: 8.176 MB / 410.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002142/0.7768, allocations: 0.6503 MB / 0.5243 GB, free: 7.508 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.7769, allocations: 8 kB / 0.5244 GB, free: 7.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.7769, allocations: 4 kB / 0.5244 GB, free: 7.496 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01718/0.7941, allocations: 458.5 kB / 0.5248 GB, free: 7.039 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.7953, allocations: 139.8 kB / 0.5249 GB, free: 6.902 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003785/0.7991, allocations: 2.994 MB / 0.5278 GB, free: 3.699 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.8003, allocations: 56 kB / 0.5279 GB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.8005, allocations: 27.95 kB / 0.5279 GB, free: 3.617 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.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): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006223/0.8011, allocations: 193.6 kB / 0.5281 GB, free: 3.418 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/0.8014, allocations: 39.53 kB / 0.5282 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004253/0.8056, allocations: 1.059 MB / 0.5292 GB, free: 2.305 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.174e-05/0.8057, allocations: 15.98 kB / 0.5292 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.8058, allocations: 0 / 0.5292 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003219/0.809, allocations: 1.087 MB / 0.5303 GB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2775/1.087, allocations: 1.729 MB / 0.532 GB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/1.087, allocations: 0 / 0.532 GB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007787/1.087, allocations: 103.3 kB / 0.532 GB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005684/1.093, allocations: 357 kB / 0.5324 GB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000131/1.093, allocations: 15.94 kB / 0.5324 GB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008638/1.094, allocations: 1.146 MB / 0.5335 GB, free: 130.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.094, allocations: 1.375 kB / 0.5335 GB, free: 130.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/1.097, allocations: 1.132 MB / 0.5346 GB, free: 130.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/1.097, allocations: 138.2 kB / 0.5348 GB, free: 130.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/1.097, allocations: 9.875 kB / 0.5348 GB, free: 130.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005538/1.098, allocations: 35.77 kB / 0.5348 GB, free: 130.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/1.098, allocations: 38.38 kB / 0.5348 GB, free: 130.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-05/1.098, allocations: 24.77 kB / 0.5349 GB, free: 130.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004021/1.098, allocations: 247.8 kB / 0.5351 GB, free: 130.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.098, allocations: 0 / 0.5351 GB, free: 130.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007924/1.106, allocations: 0.9589 MB / 0.536 GB, free: 130.2 MB / 410.7 MB 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: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.07373/1.18, allocations: 9.42 MB / 0.5452 GB, free: 125.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002287/1.182, allocations: 0.702 MB / 0.5459 GB, free: 125.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/1.182, allocations: 1.281 kB / 0.5459 GB, free: 125.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/1.183, allocations: 361.1 kB / 0.5463 GB, free: 125.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/1.186, allocations: 251.9 kB / 0.5465 GB, free: 125.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/1.2, allocations: 6.536 MB / 0.5529 GB, free: 120.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/1.201, allocations: 0.8762 MB / 0.5537 GB, free: 119.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004532/1.201, allocations: 210 kB / 0.5539 GB, free: 119.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/1.201, allocations: 0 / 0.5539 GB, free: 119.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.662/4.863, allocations: 41.68 MB / 0.5946 GB, free: 81.03 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat