Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001059, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008452/0.0008452, allocations: 90.38 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1679/0.1679, allocations: 45.14 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.439e-05/2.441e-05, allocations: 4 kB / 460.5 MB, free: 69.9 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08334/0.08338, allocations: 63.25 MB / 0.5115 GB, free: 6.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.558/5.642, allocations: 2.8 GB / 3.311 GB, free: 87.18 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/5.642, allocations: 91.02 kB / 3.311 GB, free: 87.13 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.399/7.041, allocations: 0.4961 GB / 3.807 GB, free: 21.68 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.133e-06/7.041, allocations: 0 / 3.807 GB, free: 21.68 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.457e-05/7.041, allocations: 16 kB / 3.808 GB, free: 21.66 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.005425/7.046, allocations: 1.714 MB / 3.809 GB, free: 19.92 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/7.046, allocations: 12.03 kB / 3.809 GB, free: 19.91 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/7.047, allocations: 110.2 kB / 3.809 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001332/7.048, allocations: 238.8 kB / 3.81 GB, free: 19.56 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009966/7.049, allocations: 0.5754 MB / 3.81 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.69e-05/7.049, allocations: 106.4 kB / 3.81 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.972e-05/7.049, allocations: 66.98 kB / 3.81 GB, free: 18.78 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/7.051, allocations: 1.089 MB / 3.811 GB, free: 17.59 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/7.051, allocations: 7.938 kB / 3.811 GB, free: 17.58 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.845e-05/7.051, allocations: 28 kB / 3.811 GB, free: 17.55 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.673e-05/7.051, allocations: 40.98 kB / 3.811 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/7.052, allocations: 0.8226 MB / 3.812 GB, free: 16.69 MB / 0.5417 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.003926/7.056, allocations: 5.549 MB / 3.818 GB, free: 10.82 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008964/7.057, allocations: 0.5546 MB / 3.818 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/7.057, allocations: 214.3 kB / 3.818 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3746/7.432, allocations: 52.47 MB / 3.87 GB, free: 37.24 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/7.432, allocations: 44.62 kB / 3.87 GB, free: 37.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=39): time 2.225e-06/7.432, allocations: 0 / 3.87 GB, free: 37.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44): time 0.006547/7.438, allocations: 2.003 MB / 3.872 GB, free: 36.73 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.797e-05/7.438, allocations: 183.6 kB / 3.872 GB, free: 36.51 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008011/7.439, allocations: 0.5524 MB / 3.872 GB, free: 36.38 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/7.439, allocations: 38 kB / 3.872 GB, free: 36.35 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002668/7.44, allocations: 400.5 kB / 3.873 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/7.44, allocations: 162.7 kB / 3.873 GB, free: 36.09 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/7.44, allocations: 20.53 kB / 3.873 GB, free: 36.09 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001359/7.44, allocations: 372.8 kB / 3.873 GB, free: 35.78 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004003/7.44, allocations: 224.7 kB / 3.873 GB, free: 35.78 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005883/7.441, allocations: 0.5758 MB / 3.874 GB, free: 35.33 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004862/7.441, allocations: 334.6 kB / 3.874 GB, free: 35.33 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/7.441, allocations: 3.5 kB / 3.874 GB, free: 35.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001312/7.443, allocations: 0.8809 MB / 3.875 GB, free: 35.24 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/7.443, allocations: 7.531 kB / 3.875 GB, free: 35.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/7.443, allocations: 15.19 kB / 3.875 GB, free: 35.24 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004188/7.447, allocations: 268.2 kB / 3.876 GB, free: 35.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/7.448, allocations: 290.6 kB / 3.876 GB, free: 35.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/7.45, allocations: 2.015 MB / 3.878 GB, free: 33.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006989/7.45, allocations: 66.2 kB / 3.878 GB, free: 33.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/7.451, allocations: 43.28 kB / 3.878 GB, free: 33.39 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.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 (94): * Single equations (assignments): 92 * 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: 1 * 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: 1 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001866/7.451, allocations: 161.8 kB / 3.878 GB, free: 33.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/7.451, allocations: 78.42 kB / 3.878 GB, free: 33.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002231/7.453, allocations: 2.015 MB / 3.88 GB, free: 33.04 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.408e-05/7.453, allocations: 23.75 kB / 3.88 GB, free: 33.04 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/7.453, allocations: 3.953 kB / 3.88 GB, free: 33.03 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/7.453, allocations: 3.891 kB / 3.88 GB, free: 33.03 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003267/7.456, allocations: 2.988 MB / 3.883 GB, free: 32.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/7.456, allocations: 0 / 3.883 GB, free: 32.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000985/7.457, allocations: 184.7 kB / 3.883 GB, free: 32.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/7.459, allocations: 299.8 kB / 3.883 GB, free: 32.59 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.543e-05/7.46, allocations: 10.41 kB / 3.883 GB, free: 32.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001306/7.461, allocations: 2.071 MB / 3.885 GB, free: 30.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/7.461, allocations: 3.844 kB / 3.885 GB, free: 30.75 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/7.463, allocations: 1.948 MB / 3.887 GB, free: 30.33 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004205/7.463, allocations: 286.7 kB / 3.888 GB, free: 30.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/7.463, allocations: 12.97 kB / 3.888 GB, free: 30.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005288/7.464, allocations: 36.97 kB / 3.888 GB, free: 30.18 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.809e-05/7.464, allocations: 47.86 kB / 3.888 GB, free: 30.17 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.732e-05/7.464, allocations: 18.67 kB / 3.888 GB, free: 30.17 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0007122/7.465, allocations: 0.553 MB / 3.888 GB, free: 30.08 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/7.465, allocations: 0 / 3.888 GB, free: 30.08 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005697/7.471, allocations: 1.15 MB / 3.889 GB, free: 30.08 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009942/7.481, allocations: 4.093 MB / 3.893 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00214/7.483, allocations: 0.8977 MB / 3.894 GB, free: 28.94 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/7.483, allocations: 4.422 kB / 3.894 GB, free: 28.94 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001116/7.484, allocations: 0.621 MB / 3.895 GB, free: 28.94 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002272/7.486, allocations: 369.1 kB / 3.895 GB, free: 28.94 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006312/7.492, allocations: 2.175 MB / 3.897 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006103/7.493, allocations: 1.121 MB / 3.899 GB, free: 27.79 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0009288/7.494, allocations: 344 kB / 3.899 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004515/7.494, allocations: 381.1 kB / 3.899 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of SimCode: time 1.573e-06/7.495, allocations: 0 / 3.899 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0944/7.589, allocations: 53.39 MB / 3.951 GB, free: 25.23 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/7.589, allocations: 236.4 kB / 3.952 GB, free: 24.92 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.352/10.94, allocations: 6.391 kB / 3.952 GB, free: 24.92 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat