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.001224/0.001224, allocations: 180.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 97.48 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002796, allocations: 12 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2722, allocations: 50.39 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.17/12.44, allocations: 5.751 GB / 6.143 GB, free: 146.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002016/12.44, allocations: 71.73 kB / 6.143 GB, free: 146.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 11.19/23.63, allocations: 3.738 GB / 9.881 GB, free: 43.27 MB / 0.6671 GB Notification: Performance of FrontEnd: time 1.984e-06/23.63, allocations: 0 / 9.881 GB, free: 43.27 MB / 0.6671 GB Notification: Performance of Transformations before backend: time 3.443e-05/23.63, allocations: 12 kB / 9.881 GB, free: 43.26 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.05465/23.69, allocations: 2.227 MB / 9.883 GB, free: 41.35 MB / 0.6671 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/23.69, allocations: 12.03 kB / 9.883 GB, free: 41.34 MB / 0.6671 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/23.69, allocations: 95.45 kB / 9.883 GB, free: 41.27 MB / 0.6671 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006604/23.69, allocations: 95.23 kB / 9.883 GB, free: 41.17 MB / 0.6671 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000468/23.69, allocations: 374.2 kB / 9.884 GB, free: 40.85 MB / 0.6671 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/23.69, allocations: 35.94 kB / 9.884 GB, free: 40.83 MB / 0.6671 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.564e-05/23.69, allocations: 45.38 kB / 9.884 GB, free: 40.8 MB / 0.6671 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009677/23.69, allocations: 0.6082 MB / 9.884 GB, free: 40.32 MB / 0.6671 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/23.69, allocations: 7.938 kB / 9.884 GB, free: 40.31 MB / 0.6671 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.631e-05/23.69, allocations: 24.56 kB / 9.884 GB, free: 40.3 MB / 0.6671 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/23.69, allocations: 13.44 kB / 9.884 GB, free: 40.29 MB / 0.6671 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007959/23.69, allocations: 0.528 MB / 9.885 GB, free: 39.92 MB / 0.6671 GB 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.006187/23.7, allocations: 6.08 MB / 9.891 GB, free: 34.12 MB / 0.6671 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009128/23.7, allocations: 425.1 kB / 9.891 GB, free: 33.83 MB / 0.6671 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002848/23.7, allocations: 2.828 MB / 9.894 GB, free: 30.62 MB / 0.6671 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/23.7, allocations: 38.44 kB / 9.894 GB, free: 30.58 MB / 0.6671 GB Notification: Performance of pre-optimization done (n=46): time 2.766e-06/23.7, allocations: 0 / 9.894 GB, free: 30.58 MB / 0.6671 GB Notification: Performance of matching and sorting (n=54): time 0.008055/23.71, allocations: 2.028 MB / 9.896 GB, free: 28.97 MB / 0.6671 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/23.71, allocations: 55.84 kB / 9.896 GB, free: 28.9 MB / 0.6671 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002632/23.71, allocations: 281.3 kB / 9.896 GB, free: 28.67 MB / 0.6671 GB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/23.71, allocations: 35.95 kB / 9.896 GB, free: 28.64 MB / 0.6671 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/23.71, allocations: 226.7 kB / 9.897 GB, free: 28.47 MB / 0.6671 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/23.71, allocations: 194.7 kB / 9.897 GB, free: 28.33 MB / 0.6671 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.626e-05/23.71, allocations: 14.56 kB / 9.897 GB, free: 28.33 MB / 0.6671 GB Notification: Performance of setup shared object (initialization): time 8.918e-05/23.71, allocations: 346.2 kB / 9.897 GB, free: 28 MB / 0.6671 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/23.71, allocations: 176.5 kB / 9.897 GB, free: 27.89 MB / 0.6671 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/23.71, allocations: 333 kB / 9.898 GB, free: 27.59 MB / 0.6671 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/23.71, allocations: 232 kB / 9.898 GB, free: 27.46 MB / 0.6671 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/23.71, allocations: 0 / 9.898 GB, free: 27.46 MB / 0.6671 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001056/23.71, allocations: 0.6684 MB / 9.898 GB, free: 26.98 MB / 0.6671 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/23.71, allocations: 4 kB / 9.898 GB, free: 26.97 MB / 0.6671 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/23.71, allocations: 8 kB / 9.898 GB, free: 26.96 MB / 0.6671 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01328/23.73, allocations: 0.5491 MB / 9.899 GB, free: 26.47 MB / 0.6671 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006413/23.73, allocations: 145.5 kB / 9.899 GB, free: 26.34 MB / 0.6671 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/23.73, allocations: 3.001 MB / 9.902 GB, free: 23.25 MB / 0.6671 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004976/23.73, allocations: 47.92 kB / 9.902 GB, free: 23.21 MB / 0.6671 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.703e-05/23.73, allocations: 30.98 kB / 9.902 GB, free: 23.19 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 () * 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.000268/23.73, allocations: 185.8 kB / 9.902 GB, free: 23.04 MB / 0.6671 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.141e-05/23.73, allocations: 39.53 kB / 9.902 GB, free: 23 MB / 0.6671 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/23.73, allocations: 1.064 MB / 9.903 GB, free: 22.29 MB / 0.6671 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/23.73, allocations: 10.69 kB / 9.903 GB, free: 22.28 MB / 0.6671 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/23.73, allocations: 11.94 kB / 9.903 GB, free: 22.27 MB / 0.6671 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008793/23.73, allocations: 1.09 MB / 9.904 GB, free: 21.41 MB / 0.6671 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001765/23.73, allocations: 1.724 MB / 9.906 GB, free: 20.21 MB / 0.6671 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/23.73, allocations: 0 / 9.906 GB, free: 20.21 MB / 0.6671 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003656/23.73, allocations: 98.88 kB / 9.906 GB, free: 20.11 MB / 0.6671 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003629/23.74, allocations: 399.5 kB / 9.907 GB, free: 19.77 MB / 0.6671 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.33e-05/23.74, allocations: 15.06 kB / 9.907 GB, free: 19.76 MB / 0.6671 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005018/23.74, allocations: 1.145 MB / 9.908 GB, free: 18.62 MB / 0.6671 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/23.74, allocations: 3.953 kB / 9.908 GB, free: 18.62 MB / 0.6671 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/23.74, allocations: 1.121 MB / 9.909 GB, free: 17.86 MB / 0.6671 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/23.74, allocations: 141.7 kB / 9.909 GB, free: 17.71 MB / 0.6671 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.302e-05/23.74, allocations: 10.62 kB / 9.909 GB, free: 17.71 MB / 0.6671 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003354/23.74, allocations: 30.36 kB / 9.909 GB, free: 17.69 MB / 0.6671 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/23.74, allocations: 39.81 kB / 9.909 GB, free: 17.65 MB / 0.6671 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/23.74, allocations: 24.95 kB / 9.909 GB, free: 17.63 MB / 0.6671 GB Notification: Performance of sorting global known variables: time 0.0002847/23.74, allocations: 247.9 kB / 9.909 GB, free: 17.43 MB / 0.6671 GB Notification: Performance of sort global known variables: time 1.3e-07/23.74, allocations: 0 / 9.909 GB, free: 17.43 MB / 0.6671 GB Notification: Performance of remove unused functions: time 0.01919/23.76, allocations: 1.118 MB / 9.91 GB, free: 16.48 MB / 0.6671 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: 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.1703/23.93, allocations: 25.25 MB / 9.935 GB, free: 8.035 MB / 0.6828 GB Notification: Performance of simCode: created initialization part: time 0.001793/23.93, allocations: 0.7053 MB / 9.936 GB, free: 7.5 MB / 0.6828 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/23.93, allocations: 0 / 9.936 GB, free: 7.5 MB / 0.6828 GB Notification: Performance of simCode: created simulation system equations: time 0.0006409/23.93, allocations: 353.9 kB / 9.936 GB, free: 7.27 MB / 0.6828 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/23.93, allocations: 251.7 kB / 9.936 GB, free: 7.031 MB / 0.6828 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02789/23.96, allocations: 6.63 MB / 9.943 GB, free: 364 kB / 0.6828 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3871/24.35, allocations: 0.8815 MB / 9.944 GB, free: 124.4 MB / 0.6828 GB Notification: Performance of simCode: alias equations: time 0.0007668/24.35, allocations: 225.4 kB / 9.944 GB, free: 124.4 MB / 0.6828 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/24.35, allocations: 201.6 kB / 9.944 GB, free: 124.4 MB / 0.6828 GB Notification: Performance of SimCode: time 1.243e-06/24.35, allocations: 0 / 9.944 GB, free: 124.4 MB / 0.6828 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.108/24.46, allocations: 49.15 MB / 9.992 GB, free: 122.2 MB / 0.6828 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/24.46, allocations: 192.8 kB / 9.992 GB, free: 122 MB / 0.6828 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.892/28.35, allocations: 0 / 9.992 GB, free: 122 MB / 0.6828 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