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.001265/0.001266, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.671/1.671, allocations: 221.3 MB / 235.5 MB, free: 2.941 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.001174/0.001174, allocations: 92.03 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.164e-05/5.209e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1506, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 16.39/16.55, allocations: 5.751 GB / 6.136 GB, free: 96.87 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/16.55, allocations: 67.97 kB / 6.136 GB, free: 96.8 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 13.55/30.09, allocations: 3.736 GB / 9.872 GB, free: 82.62 MB / 0.6671 GB Notification: Performance of FrontEnd: time 1.994e-06/30.09, allocations: 4 kB / 9.872 GB, free: 82.62 MB / 0.6671 GB Notification: Performance of Transformations before backend: time 6.531e-05/30.09, allocations: 11.88 kB / 9.872 GB, free: 82.62 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.06232/30.16, allocations: 2.194 MB / 9.874 GB, free: 81.61 MB / 0.6671 GB Notification: Performance of prepare preOptimizeDAE: time 6.903e-05/30.16, allocations: 10.38 kB / 9.874 GB, free: 81.61 MB / 0.6671 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003006/30.16, allocations: 84.62 kB / 9.874 GB, free: 81.57 MB / 0.6671 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009862/30.16, allocations: 89.84 kB / 9.874 GB, free: 81.54 MB / 0.6671 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008465/30.16, allocations: 371.2 kB / 9.874 GB, free: 81.34 MB / 0.6671 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.034e-05/30.16, allocations: 39.75 kB / 9.874 GB, free: 81.33 MB / 0.6671 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/30.16, allocations: 45.28 kB / 9.874 GB, free: 81.33 MB / 0.6671 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001769/30.16, allocations: 0.6166 MB / 9.875 GB, free: 81.18 MB / 0.6671 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.695e-05/30.16, allocations: 6.062 kB / 9.875 GB, free: 81.18 MB / 0.6671 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.01e-05/30.16, allocations: 22.06 kB / 9.875 GB, free: 81.18 MB / 0.6671 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/30.16, allocations: 12.84 kB / 9.875 GB, free: 81.18 MB / 0.6671 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/30.16, allocations: 0.5205 MB / 9.876 GB, free: 81.17 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.008621/30.17, allocations: 6.086 MB / 9.881 GB, free: 78.59 MB / 0.6671 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/30.17, allocations: 436.5 kB / 9.882 GB, free: 78.57 MB / 0.6671 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002904/30.17, allocations: 200.9 kB / 9.882 GB, free: 78.56 MB / 0.6671 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00325/30.17, allocations: 2.827 MB / 9.885 GB, free: 76.11 MB / 0.6671 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/30.17, allocations: 44.78 kB / 9.885 GB, free: 76.06 MB / 0.6671 GB Notification: Performance of pre-optimization done (n=46): time 3.276e-06/30.17, allocations: 0 / 9.885 GB, free: 76.06 MB / 0.6671 GB Notification: Performance of matching and sorting (n=54): time 0.008322/30.18, allocations: 1.821 MB / 9.887 GB, free: 75.68 MB / 0.6671 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/30.18, allocations: 62.84 kB / 9.887 GB, free: 75.62 MB / 0.6671 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003263/30.18, allocations: 267.4 kB / 9.887 GB, free: 75.51 MB / 0.6671 GB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/30.18, allocations: 36.55 kB / 9.887 GB, free: 75.48 MB / 0.6671 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/30.18, allocations: 236.2 kB / 9.887 GB, free: 75.34 MB / 0.6671 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/30.18, allocations: 188.7 kB / 9.887 GB, free: 75.25 MB / 0.6671 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.717e-05/30.18, allocations: 11.19 kB / 9.887 GB, free: 75.25 MB / 0.6671 GB Notification: Performance of setup shared object (initialization): time 9.702e-05/30.18, allocations: 354 kB / 9.888 GB, free: 74.93 MB / 0.6671 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002647/30.18, allocations: 172.7 kB / 9.888 GB, free: 74.93 MB / 0.6671 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003212/30.18, allocations: 328 kB / 9.888 GB, free: 74.76 MB / 0.6671 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/30.18, allocations: 223.7 kB / 9.888 GB, free: 74.75 MB / 0.6671 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/30.18, allocations: 2.594 kB / 9.888 GB, free: 74.75 MB / 0.6671 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001096/30.19, allocations: 0.6565 MB / 9.889 GB, free: 74.66 MB / 0.6671 GB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/30.19, allocations: 9.562 kB / 9.889 GB, free: 74.66 MB / 0.6671 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/30.19, allocations: 4.938 kB / 9.889 GB, free: 74.66 MB / 0.6671 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01371/30.2, allocations: 0.5545 MB / 9.89 GB, free: 74.62 MB / 0.6671 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007355/30.2, allocations: 144.5 kB / 9.89 GB, free: 74.62 MB / 0.6671 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/30.2, allocations: 2.986 MB / 9.893 GB, free: 71.75 MB / 0.6671 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006616/30.2, allocations: 47.94 kB / 9.893 GB, free: 71.75 MB / 0.6671 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.967e-05/30.2, allocations: 26.44 kB / 9.893 GB, free: 71.75 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.0002201/30.2, allocations: 147.5 kB / 9.893 GB, free: 71.64 MB / 0.6671 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/30.2, allocations: 47.72 kB / 9.893 GB, free: 71.62 MB / 0.6671 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/30.21, allocations: 1.049 MB / 9.894 GB, free: 71.5 MB / 0.6671 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.078e-05/30.21, allocations: 14.3 kB / 9.894 GB, free: 71.5 MB / 0.6671 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/30.21, allocations: 0 / 9.894 GB, free: 71.5 MB / 0.6671 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001139/30.21, allocations: 1.071 MB / 9.895 GB, free: 71.11 MB / 0.6671 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00236/30.21, allocations: 1.717 MB / 9.897 GB, free: 70.75 MB / 0.6671 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/30.21, allocations: 0 / 9.897 GB, free: 70.75 MB / 0.6671 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003888/30.21, allocations: 108.4 kB / 9.897 GB, free: 70.75 MB / 0.6671 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003462/30.21, allocations: 381.7 kB / 9.897 GB, free: 70.73 MB / 0.6671 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.878e-05/30.21, allocations: 17.8 kB / 9.897 GB, free: 70.73 MB / 0.6671 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005431/30.21, allocations: 1.142 MB / 9.898 GB, free: 69.69 MB / 0.6671 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/30.21, allocations: 4.062 kB / 9.898 GB, free: 69.68 MB / 0.6671 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/30.21, allocations: 1.104 MB / 9.899 GB, free: 69.48 MB / 0.6671 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/30.22, allocations: 146.8 kB / 9.9 GB, free: 69.36 MB / 0.6671 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/30.22, allocations: 11.59 kB / 9.9 GB, free: 69.36 MB / 0.6671 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004205/30.22, allocations: 34.5 kB / 9.9 GB, free: 69.35 MB / 0.6671 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.426e-05/30.22, allocations: 35.95 kB / 9.9 GB, free: 69.35 MB / 0.6671 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-05/30.22, allocations: 18.95 kB / 9.9 GB, free: 69.35 MB / 0.6671 GB Notification: Performance of sorting global known variables: time 0.0003277/30.22, allocations: 248.8 kB / 9.9 GB, free: 69.27 MB / 0.6671 GB Notification: Performance of sort global known variables: time 1.4e-07/30.22, allocations: 0 / 9.9 GB, free: 69.27 MB / 0.6671 GB Notification: Performance of remove unused functions: time 0.02142/30.24, allocations: 1.122 MB / 9.901 GB, free: 69.09 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 () * 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.1499/30.39, allocations: 25.23 MB / 9.926 GB, free: 56.26 MB / 0.6671 GB Notification: Performance of simCode: created initialization part: time 0.001683/30.39, allocations: 0.6941 MB / 9.926 GB, free: 56.14 MB / 0.6671 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/30.39, allocations: 0 / 9.926 GB, free: 56.14 MB / 0.6671 GB Notification: Performance of simCode: created simulation system equations: time 0.0006396/30.39, allocations: 372.2 kB / 9.927 GB, free: 56.13 MB / 0.6671 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/30.39, allocations: 249.6 kB / 9.927 GB, free: 56.11 MB / 0.6671 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01949/30.41, allocations: 1.633 MB / 9.928 GB, free: 55.5 MB / 0.6671 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/30.41, allocations: 0.8791 MB / 9.929 GB, free: 54.79 MB / 0.6671 GB Notification: Performance of simCode: alias equations: time 0.0006172/30.41, allocations: 235.4 kB / 9.93 GB, free: 54.76 MB / 0.6671 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002448/30.41, allocations: 200.4 kB / 9.93 GB, free: 54.75 MB / 0.6671 GB Notification: Performance of SimCode: time 1.292e-06/30.41, allocations: 0 / 9.93 GB, free: 54.75 MB / 0.6671 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0873/30.5, allocations: 51.38 MB / 9.98 GB, free: 49.6 MB / 0.6671 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/30.5, allocations: 160.2 kB / 9.98 GB, free: 49.38 MB / 0.6671 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.049/34.55, allocations: 0 / 9.98 GB, free: 49.38 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