Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_3_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.001592/0.001592, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.068/2.068, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 86.7 kB / 262.4 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.395e-05/2.398e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1218, allocations: 47.58 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 16.8/16.93, allocations: 5.796 GB / 6.15 GB, free: 117.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/16.93, allocations: 68.61 kB / 6.15 GB, free: 117.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 15.36/32.28, allocations: 4.513 GB / 10.66 GB, free: 98.7 MB / 0.6515 GB Notification: Performance of FrontEnd: time 3.266e-06/32.28, allocations: 1.969 kB / 10.66 GB, free: 98.7 MB / 0.6515 GB Notification: Performance of Transformations before backend: time 6.114e-05/32.28, allocations: 13.97 kB / 10.66 GB, free: 98.7 MB / 0.6515 GB 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.07261/32.36, allocations: 2.193 MB / 10.67 GB, free: 97.62 MB / 0.6515 GB Notification: Performance of prepare preOptimizeDAE: time 5.573e-05/32.36, allocations: 11.86 kB / 10.67 GB, free: 97.62 MB / 0.6515 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008215/32.36, allocations: 91.83 kB / 10.67 GB, free: 97.6 MB / 0.6515 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005684/32.36, allocations: 373.6 kB / 10.67 GB, free: 97.39 MB / 0.6515 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/32.36, allocations: 17.41 kB / 10.67 GB, free: 97.39 MB / 0.6515 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.876e-05/32.36, allocations: 28.81 kB / 10.67 GB, free: 97.38 MB / 0.6515 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007275/32.36, allocations: 454.2 kB / 10.67 GB, free: 97.38 MB / 0.6515 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007016/32.36, allocations: 0.5075 MB / 10.67 GB, free: 97.23 MB / 0.6515 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/32.36, allocations: 5.156 kB / 10.67 GB, free: 97.23 MB / 0.6515 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/32.36, allocations: 3.234 kB / 10.67 GB, free: 97.23 MB / 0.6515 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/32.36, allocations: 12.94 kB / 10.67 GB, free: 97.23 MB / 0.6515 GB Warning: The model contains alias variables with conflicting start and/or 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.007232/32.37, allocations: 6.399 MB / 10.67 GB, free: 94.3 MB / 0.6515 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005178/32.37, allocations: 336.5 kB / 10.67 GB, free: 94.27 MB / 0.6515 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/32.37, allocations: 177.9 kB / 10.67 GB, free: 94.27 MB / 0.6515 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002772/32.37, allocations: 2.418 MB / 10.68 GB, free: 92.19 MB / 0.6515 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/32.37, allocations: 41.53 kB / 10.68 GB, free: 92.15 MB / 0.6515 GB Notification: Performance of pre-optimization done (n=44): time 5.481e-06/32.37, allocations: 0 / 10.68 GB, free: 92.15 MB / 0.6515 GB Notification: Performance of matching and sorting (n=52): time 0.01313/32.38, allocations: 2.278 MB / 10.68 GB, free: 91.77 MB / 0.6515 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/32.38, allocations: 59.62 kB / 10.68 GB, free: 91.71 MB / 0.6515 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/32.38, allocations: 240.3 kB / 10.68 GB, free: 91.61 MB / 0.6515 GB Notification: Performance of collectPreVariables (initialization): time 4.506e-05/32.38, allocations: 29.64 kB / 10.68 GB, free: 91.58 MB / 0.6515 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/32.38, allocations: 243 kB / 10.68 GB, free: 91.44 MB / 0.6515 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/32.38, allocations: 176.2 kB / 10.68 GB, free: 91.35 MB / 0.6515 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/32.38, allocations: 0 / 10.68 GB, free: 91.35 MB / 0.6515 GB Notification: Performance of setup shared object (initialization): time 9.742e-05/32.38, allocations: 349.4 kB / 10.68 GB, free: 91.03 MB / 0.6515 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/32.38, allocations: 160 kB / 10.68 GB, free: 91.03 MB / 0.6515 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003006/32.38, allocations: 307.9 kB / 10.68 GB, free: 90.86 MB / 0.6515 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003791/32.39, allocations: 0.5364 MB / 10.68 GB, free: 90.85 MB / 0.6515 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/32.39, allocations: 0 / 10.68 GB, free: 90.85 MB / 0.6515 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00457/32.39, allocations: 0.9237 MB / 10.68 GB, free: 90.76 MB / 0.6515 GB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/32.39, allocations: 11.61 kB / 10.68 GB, free: 90.76 MB / 0.6515 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/32.39, allocations: 5.062 kB / 10.68 GB, free: 90.76 MB / 0.6515 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003622/32.39, allocations: 100.1 kB / 10.68 GB, free: 90.73 MB / 0.6515 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/32.39, allocations: 141 kB / 10.68 GB, free: 90.73 MB / 0.6515 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003866/32.4, allocations: 3.146 MB / 10.68 GB, free: 87.91 MB / 0.6515 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005535/32.4, allocations: 31.95 kB / 10.68 GB, free: 87.9 MB / 0.6515 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.756e-05/32.4, allocations: 32.31 kB / 10.68 GB, free: 87.9 MB / 0.6515 GB 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 () * 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.0002258/32.4, allocations: 128.8 kB / 10.68 GB, free: 87.79 MB / 0.6515 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004427/32.4, allocations: 0.7825 MB / 10.69 GB, free: 87.7 MB / 0.6515 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/32.4, allocations: 35.62 kB / 10.69 GB, free: 87.69 MB / 0.6515 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002419/32.41, allocations: 1.067 MB / 10.69 GB, free: 87.59 MB / 0.6515 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/32.41, allocations: 3.625 kB / 10.69 GB, free: 87.59 MB / 0.6515 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/32.41, allocations: 3.844 kB / 10.69 GB, free: 87.59 MB / 0.6515 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001929/32.41, allocations: 1.105 MB / 10.69 GB, free: 87.19 MB / 0.6515 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003324/32.41, allocations: 1.645 MB / 10.69 GB, free: 86.85 MB / 0.6515 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/32.41, allocations: 0 / 10.69 GB, free: 86.85 MB / 0.6515 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003831/32.41, allocations: 103.1 kB / 10.69 GB, free: 86.84 MB / 0.6515 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004321/32.41, allocations: 112.9 kB / 10.69 GB, free: 86.82 MB / 0.6515 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.35e-05/32.41, allocations: 8.359 kB / 10.69 GB, free: 86.82 MB / 0.6515 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000796/32.41, allocations: 1.209 MB / 10.69 GB, free: 85.78 MB / 0.6515 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/32.41, allocations: 2 kB / 10.69 GB, free: 85.78 MB / 0.6515 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002371/32.42, allocations: 1.174 MB / 10.69 GB, free: 85.52 MB / 0.6515 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002551/32.42, allocations: 124 kB / 10.69 GB, free: 85.41 MB / 0.6515 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.316e-05/32.42, allocations: 2.156 kB / 10.69 GB, free: 85.41 MB / 0.6515 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004018/32.42, allocations: 20.41 kB / 10.69 GB, free: 85.4 MB / 0.6515 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.811e-05/32.42, allocations: 41.61 kB / 10.69 GB, free: 85.39 MB / 0.6515 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.66e-05/32.42, allocations: 15.62 kB / 10.69 GB, free: 85.39 MB / 0.6515 GB Notification: Performance of sorting global known variables: time 0.0002306/32.42, allocations: 187.9 kB / 10.69 GB, free: 85.32 MB / 0.6515 GB Notification: Performance of sort global known variables: time 4.01e-07/32.42, allocations: 0 / 10.69 GB, free: 85.32 MB / 0.6515 GB Notification: Performance of remove unused functions: time 0.0224/32.44, allocations: 1.069 MB / 10.69 GB, free: 85.14 MB / 0.6515 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * 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.163/32.6, allocations: 25.55 MB / 10.72 GB, free: 72.07 MB / 0.6515 GB Notification: Performance of simCode: created initialization part: time 0.001611/32.6, allocations: 0.6429 MB / 10.72 GB, free: 71.97 MB / 0.6515 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/32.6, allocations: 6.188 kB / 10.72 GB, free: 71.96 MB / 0.6515 GB Notification: Performance of simCode: created simulation system equations: time 0.0005493/32.6, allocations: 335.9 kB / 10.72 GB, free: 71.96 MB / 0.6515 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001343/32.61, allocations: 215.5 kB / 10.72 GB, free: 71.94 MB / 0.6515 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02209/32.63, allocations: 1.569 MB / 10.72 GB, free: 71.31 MB / 0.6515 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/32.63, allocations: 0.865 MB / 10.72 GB, free: 70.61 MB / 0.6515 GB Notification: Performance of simCode: alias equations: time 0.000713/32.63, allocations: 276.5 kB / 10.72 GB, free: 70.59 MB / 0.6515 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002993/32.63, allocations: 191.5 kB / 10.72 GB, free: 70.58 MB / 0.6515 GB Notification: Performance of SimCode: time 1.422e-06/32.63, allocations: 0 / 10.72 GB, free: 70.58 MB / 0.6515 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/32.73, allocations: 42.09 MB / 10.76 GB, free: 45.92 MB / 0.6515 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/32.73, allocations: 125.2 kB / 10.76 GB, free: 45.73 MB / 0.6515 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.757/36.49, allocations: 3.938 kB / 10.76 GB, free: 45.72 MB / 0.6515 GB (rm -f Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat