Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.2 MB / 245 MB, free: 7.676 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009909/0.0009906, allocations: 95.98 kB / 297.2 MB, free: 6.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000243/0.0002433, allocations: 4 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2463, allocations: 51.47 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.36/12.61, allocations: 5.751 GB / 6.151 GB, free: 113.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002001/12.61, allocations: 81.36 kB / 6.151 GB, free: 113.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.978/22.58, allocations: 3.748 GB / 9.899 GB, free: 42.76 MB / 0.6828 GB Notification: Performance of FrontEnd: time 1.202e-06/22.58, allocations: 4 kB / 9.899 GB, free: 42.76 MB / 0.6828 GB Notification: Performance of Transformations before backend: time 4.282e-05/22.58, allocations: 11.91 kB / 9.899 GB, free: 42.75 MB / 0.6828 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/22.64, allocations: 2.241 MB / 9.902 GB, free: 40.82 MB / 0.6828 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/22.64, allocations: 8.031 kB / 9.902 GB, free: 40.81 MB / 0.6828 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/22.64, allocations: 86.25 kB / 9.902 GB, free: 40.75 MB / 0.6828 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006396/22.64, allocations: 99.59 kB / 9.902 GB, free: 40.65 MB / 0.6828 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/22.64, allocations: 376.9 kB / 9.902 GB, free: 40.33 MB / 0.6828 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/22.64, allocations: 31.19 kB / 9.902 GB, free: 40.31 MB / 0.6828 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.738e-05/22.64, allocations: 48.69 kB / 9.902 GB, free: 40.28 MB / 0.6828 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000978/22.64, allocations: 0.6145 MB / 9.903 GB, free: 39.79 MB / 0.6828 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/22.64, allocations: 0 / 9.903 GB, free: 39.79 MB / 0.6828 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.482e-05/22.64, allocations: 21.44 kB / 9.903 GB, free: 39.79 MB / 0.6828 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/22.64, allocations: 19.09 kB / 9.903 GB, free: 39.77 MB / 0.6828 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000782/22.64, allocations: 0.5276 MB / 9.903 GB, free: 39.4 MB / 0.6828 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.005567/22.65, allocations: 6.08 MB / 9.909 GB, free: 33.6 MB / 0.6828 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008172/22.65, allocations: 426.7 kB / 9.91 GB, free: 33.31 MB / 0.6828 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002595/22.65, allocations: 2.833 MB / 9.912 GB, free: 30.1 MB / 0.6828 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/22.65, allocations: 42.55 kB / 9.913 GB, free: 30.05 MB / 0.6828 GB Notification: Performance of pre-optimization done (n=46): time 2.725e-06/22.65, allocations: 0 / 9.913 GB, free: 30.05 MB / 0.6828 GB Notification: Performance of matching and sorting (n=54): time 0.00817/22.66, allocations: 2.021 MB / 9.915 GB, free: 28.45 MB / 0.6828 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/22.66, allocations: 59.84 kB / 9.915 GB, free: 28.38 MB / 0.6828 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/22.66, allocations: 273.5 kB / 9.915 GB, free: 28.15 MB / 0.6828 GB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/22.66, allocations: 32.7 kB / 9.915 GB, free: 28.12 MB / 0.6828 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/22.66, allocations: 235 kB / 9.915 GB, free: 27.95 MB / 0.6828 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/22.66, allocations: 184.7 kB / 9.915 GB, free: 27.82 MB / 0.6828 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.463e-05/22.66, allocations: 13.06 kB / 9.915 GB, free: 27.81 MB / 0.6828 GB Notification: Performance of setup shared object (initialization): time 8.853e-05/22.66, allocations: 352.1 kB / 9.916 GB, free: 27.48 MB / 0.6828 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/22.66, allocations: 179.9 kB / 9.916 GB, free: 27.37 MB / 0.6828 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000288/22.66, allocations: 333.7 kB / 9.916 GB, free: 27.07 MB / 0.6828 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/22.66, allocations: 226.1 kB / 9.916 GB, free: 26.94 MB / 0.6828 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/22.66, allocations: 4 kB / 9.916 GB, free: 26.94 MB / 0.6828 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001076/22.66, allocations: 0.6596 MB / 9.917 GB, free: 26.46 MB / 0.6828 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/22.66, allocations: 11.98 kB / 9.917 GB, free: 26.45 MB / 0.6828 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/22.66, allocations: 6.812 kB / 9.917 GB, free: 26.44 MB / 0.6828 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01322/22.68, allocations: 0.555 MB / 9.918 GB, free: 25.95 MB / 0.6828 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006597/22.68, allocations: 145.6 kB / 9.918 GB, free: 25.81 MB / 0.6828 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/22.68, allocations: 3 MB / 9.921 GB, free: 22.72 MB / 0.6828 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005413/22.68, allocations: 48.03 kB / 9.921 GB, free: 22.69 MB / 0.6828 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.697e-05/22.68, allocations: 23.75 kB / 9.921 GB, free: 22.67 MB / 0.6828 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.0002944/22.68, allocations: 189.4 kB / 9.921 GB, free: 22.52 MB / 0.6828 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/22.68, allocations: 47.53 kB / 9.921 GB, free: 22.47 MB / 0.6828 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001323/22.68, allocations: 1.067 MB / 9.922 GB, free: 21.76 MB / 0.6828 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/22.68, allocations: 11.98 kB / 9.922 GB, free: 21.75 MB / 0.6828 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/22.68, allocations: 0 / 9.922 GB, free: 21.75 MB / 0.6828 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008619/22.68, allocations: 1.091 MB / 9.923 GB, free: 20.88 MB / 0.6828 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0017/22.68, allocations: 1.719 MB / 9.925 GB, free: 19.12 MB / 0.6828 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/22.68, allocations: 4 kB / 9.925 GB, free: 19.12 MB / 0.6828 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003657/22.68, allocations: 99.89 kB / 9.925 GB, free: 19.02 MB / 0.6828 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003546/22.69, allocations: 392.9 kB / 9.925 GB, free: 18.63 MB / 0.6828 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.251e-05/22.69, allocations: 16 kB / 9.925 GB, free: 18.61 MB / 0.6828 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004752/22.69, allocations: 1.144 MB / 9.926 GB, free: 17.42 MB / 0.6828 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/22.69, allocations: 0 / 9.926 GB, free: 17.42 MB / 0.6828 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/22.69, allocations: 1.135 MB / 9.927 GB, free: 16.26 MB / 0.6828 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/22.69, allocations: 134.4 kB / 9.928 GB, free: 16.11 MB / 0.6828 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.815e-05/22.69, allocations: 19.94 kB / 9.928 GB, free: 16.09 MB / 0.6828 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/22.69, allocations: 37.69 kB / 9.928 GB, free: 16.06 MB / 0.6828 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/22.69, allocations: 32.52 kB / 9.928 GB, free: 16.03 MB / 0.6828 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.73e-05/22.69, allocations: 23.92 kB / 9.928 GB, free: 16.01 MB / 0.6828 GB Notification: Performance of sorting global known variables: time 0.000247/22.69, allocations: 251 kB / 9.928 GB, free: 15.76 MB / 0.6828 GB Notification: Performance of sort global known variables: time 1.31e-07/22.69, allocations: 0 / 9.928 GB, free: 15.76 MB / 0.6828 GB Notification: Performance of remove unused functions: time 0.01753/22.71, allocations: 1.13 MB / 9.929 GB, free: 14.7 MB / 0.6828 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.5041/23.21, allocations: 25.24 MB / 9.954 GB, free: 112.8 MB / 0.6828 GB Notification: Performance of simCode: created initialization part: time 0.001317/23.21, allocations: 0.6949 MB / 9.954 GB, free: 112.7 MB / 0.6828 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/23.21, allocations: 1.281 kB / 9.954 GB, free: 112.7 MB / 0.6828 GB Notification: Performance of simCode: created simulation system equations: time 0.0005362/23.21, allocations: 361.9 kB / 9.955 GB, free: 112.7 MB / 0.6828 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/23.22, allocations: 252.8 kB / 9.955 GB, free: 112.7 MB / 0.6828 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/23.23, allocations: 6.642 MB / 9.961 GB, free: 108.8 MB / 0.6828 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/23.23, allocations: 0.8771 MB / 9.962 GB, free: 108.1 MB / 0.6828 GB Notification: Performance of simCode: alias equations: time 0.000575/23.23, allocations: 236 kB / 9.962 GB, free: 108 MB / 0.6828 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/23.23, allocations: 202.2 kB / 9.963 GB, free: 108 MB / 0.6828 GB Notification: Performance of SimCode: time 1.192e-06/23.23, allocations: 0 / 9.963 GB, free: 108 MB / 0.6828 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07613/23.31, allocations: 49.21 MB / 10.01 GB, free: 105.4 MB / 0.6828 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001622/23.31, allocations: 193.2 kB / 10.01 GB, free: 105.2 MB / 0.6828 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.761/27.07, allocations: 3.938 kB / 10.01 GB, free: 105.2 MB / 0.6828 GB (rm -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat