Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.712/1.712, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 102.4 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.999e-05/2.002e-05, allocations: 4 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1331, allocations: 50.41 MB / 387.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 15.43/15.56, allocations: 5.75 GB / 6.128 GB, free: 107.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000201/15.56, allocations: 75.95 kB / 6.129 GB, free: 107.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 13.47/29.04, allocations: 3.692 GB / 9.821 GB, free: 95.21 MB / 0.6671 GB Notification: Performance of FrontEnd: time 2.224e-06/29.04, allocations: 0 / 9.821 GB, free: 95.21 MB / 0.6671 GB Notification: Performance of Transformations before backend: time 5.057e-05/29.04, allocations: 10.62 kB / 9.821 GB, free: 95.21 MB / 0.6671 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.05639/29.1, allocations: 2.197 MB / 9.823 GB, free: 94.2 MB / 0.6671 GB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/29.1, allocations: 8.969 kB / 9.823 GB, free: 94.2 MB / 0.6671 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/29.1, allocations: 91.64 kB / 9.823 GB, free: 94.18 MB / 0.6671 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007695/29.1, allocations: 384.7 kB / 9.824 GB, free: 93.96 MB / 0.6671 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/29.1, allocations: 15.56 kB / 9.824 GB, free: 93.96 MB / 0.6671 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/29.1, allocations: 29.62 kB / 9.824 GB, free: 93.96 MB / 0.6671 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009295/29.1, allocations: 454.8 kB / 9.824 GB, free: 93.95 MB / 0.6671 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009549/29.1, allocations: 0.5074 MB / 9.824 GB, free: 93.8 MB / 0.6671 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.722e-05/29.1, allocations: 5.719 kB / 9.824 GB, free: 93.8 MB / 0.6671 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.403e-05/29.1, allocations: 2.156 kB / 9.824 GB, free: 93.8 MB / 0.6671 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/29.1, allocations: 10.75 kB / 9.824 GB, free: 93.8 MB / 0.6671 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.007932/29.11, allocations: 6.4 MB / 9.831 GB, free: 90.88 MB / 0.6671 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/29.11, allocations: 340.8 kB / 9.831 GB, free: 90.85 MB / 0.6671 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002592/29.11, allocations: 179.7 kB / 9.831 GB, free: 90.84 MB / 0.6671 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002728/29.11, allocations: 2.416 MB / 9.834 GB, free: 88.76 MB / 0.6671 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/29.11, allocations: 37.66 kB / 9.834 GB, free: 88.72 MB / 0.6671 GB Notification: Performance of pre-optimization done (n=44): time 3.416e-06/29.11, allocations: 4 kB / 9.834 GB, free: 88.72 MB / 0.6671 GB Notification: Performance of matching and sorting (n=52): time 0.01444/29.13, allocations: 2.284 MB / 9.836 GB, free: 88.35 MB / 0.6671 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/29.13, allocations: 56.16 kB / 9.836 GB, free: 88.29 MB / 0.6671 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003423/29.13, allocations: 239.1 kB / 9.836 GB, free: 88.18 MB / 0.6671 GB Notification: Performance of collectPreVariables (initialization): time 5.947e-05/29.13, allocations: 27.77 kB / 9.836 GB, free: 88.15 MB / 0.6671 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/29.13, allocations: 240.3 kB / 9.836 GB, free: 88.01 MB / 0.6671 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/29.13, allocations: 178.8 kB / 9.837 GB, free: 87.92 MB / 0.6671 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/29.13, allocations: 0 / 9.837 GB, free: 87.92 MB / 0.6671 GB Notification: Performance of setup shared object (initialization): time 9.727e-05/29.13, allocations: 357.1 kB / 9.837 GB, free: 87.6 MB / 0.6671 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/29.13, allocations: 153 kB / 9.837 GB, free: 87.59 MB / 0.6671 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003203/29.13, allocations: 313.3 kB / 9.837 GB, free: 87.43 MB / 0.6671 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003992/29.13, allocations: 0.5313 MB / 9.838 GB, free: 87.42 MB / 0.6671 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/29.13, allocations: 0 / 9.838 GB, free: 87.42 MB / 0.6671 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.004705/29.14, allocations: 0.9262 MB / 9.839 GB, free: 87.33 MB / 0.6671 GB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/29.14, allocations: 5.469 kB / 9.839 GB, free: 87.33 MB / 0.6671 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/29.14, allocations: 8.656 kB / 9.839 GB, free: 87.32 MB / 0.6671 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003703/29.14, allocations: 90.53 kB / 9.839 GB, free: 87.3 MB / 0.6671 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005534/29.14, allocations: 144.1 kB / 9.839 GB, free: 87.3 MB / 0.6671 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003869/29.14, allocations: 3.154 MB / 9.842 GB, free: 84.47 MB / 0.6671 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005469/29.14, allocations: 34.78 kB / 9.842 GB, free: 84.47 MB / 0.6671 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-05/29.14, allocations: 25.56 kB / 9.842 GB, free: 84.47 MB / 0.6671 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.0001679/29.14, allocations: 120.4 kB / 9.842 GB, free: 84.36 MB / 0.6671 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004484/29.15, allocations: 0.7877 MB / 9.843 GB, free: 84.28 MB / 0.6671 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/29.15, allocations: 43.61 kB / 9.843 GB, free: 84.25 MB / 0.6671 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002459/29.15, allocations: 1.062 MB / 9.844 GB, free: 84.14 MB / 0.6671 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/29.15, allocations: 10.16 kB / 9.844 GB, free: 84.14 MB / 0.6671 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/29.15, allocations: 3.281 kB / 9.844 GB, free: 84.14 MB / 0.6671 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001843/29.15, allocations: 1.102 MB / 9.845 GB, free: 83.75 MB / 0.6671 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/29.15, allocations: 1.648 MB / 9.847 GB, free: 83.41 MB / 0.6671 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/29.15, allocations: 0 / 9.847 GB, free: 83.41 MB / 0.6671 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000352/29.15, allocations: 98.86 kB / 9.847 GB, free: 83.41 MB / 0.6671 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003733/29.15, allocations: 114.8 kB / 9.847 GB, free: 83.39 MB / 0.6671 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/29.15, allocations: 9.625 kB / 9.847 GB, free: 83.39 MB / 0.6671 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006346/29.16, allocations: 1.203 MB / 9.848 GB, free: 82.34 MB / 0.6671 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/29.16, allocations: 0 / 9.848 GB, free: 82.34 MB / 0.6671 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002053/29.16, allocations: 1.183 MB / 9.849 GB, free: 82.09 MB / 0.6671 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000141/29.16, allocations: 123.2 kB / 9.849 GB, free: 81.97 MB / 0.6671 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/29.16, allocations: 0 / 9.849 GB, free: 81.97 MB / 0.6671 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/29.16, allocations: 28.11 kB / 9.85 GB, free: 81.96 MB / 0.6671 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.083e-05/29.16, allocations: 32.16 kB / 9.85 GB, free: 81.96 MB / 0.6671 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.656e-05/29.16, allocations: 29.39 kB / 9.85 GB, free: 81.96 MB / 0.6671 GB Notification: Performance of sorting global known variables: time 0.0001683/29.16, allocations: 183.4 kB / 9.85 GB, free: 81.88 MB / 0.6671 GB Notification: Performance of sort global known variables: time 1.4e-07/29.16, allocations: 3.938 kB / 9.85 GB, free: 81.88 MB / 0.6671 GB Notification: Performance of remove unused functions: time 0.01488/29.17, allocations: 1.077 MB / 9.851 GB, free: 81.7 MB / 0.6671 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.1757/29.35, allocations: 25.54 MB / 9.876 GB, free: 68.66 MB / 0.6671 GB Notification: Performance of simCode: created initialization part: time 0.001542/29.35, allocations: 0.6556 MB / 9.876 GB, free: 68.55 MB / 0.6671 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/29.35, allocations: 0 / 9.876 GB, free: 68.55 MB / 0.6671 GB Notification: Performance of simCode: created simulation system equations: time 0.0005168/29.35, allocations: 333.1 kB / 9.877 GB, free: 68.55 MB / 0.6671 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/29.35, allocations: 204.2 kB / 9.877 GB, free: 68.53 MB / 0.6671 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/29.37, allocations: 1.577 MB / 9.878 GB, free: 67.89 MB / 0.6671 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/29.37, allocations: 0.8696 MB / 9.879 GB, free: 67.2 MB / 0.6671 GB Notification: Performance of simCode: alias equations: time 0.0006841/29.37, allocations: 284.8 kB / 9.88 GB, free: 67.16 MB / 0.6671 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/29.37, allocations: 190.8 kB / 9.88 GB, free: 67.16 MB / 0.6671 GB Notification: Performance of SimCode: time 1.102e-06/29.37, allocations: 0 / 9.88 GB, free: 67.16 MB / 0.6671 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0758/29.45, allocations: 42.08 MB / 9.921 GB, free: 56.15 MB / 0.6671 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/29.45, allocations: 124.7 kB / 9.921 GB, free: 55.95 MB / 0.6671 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.656/33.1, allocations: 0 / 9.921 GB, free: 55.95 MB / 0.6671 GB (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat