Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",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.001058, allocations: 197.2 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.269/1.269, 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.0007969/0.000797, allocations: 92.75 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1801/0.1801, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.619e-05/2.621e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.09091, allocations: 63.24 MB / 0.5115 GB, free: 6.699 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.019/5.11, allocations: 2.802 GB / 3.313 GB, free: 56.42 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/5.11, allocations: 91.94 kB / 3.313 GB, free: 56.33 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.75/6.86, allocations: 0.4984 GB / 3.812 GB, free: 65.73 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.061e-06/6.86, allocations: 3.594 kB / 3.812 GB, free: 65.73 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.615e-05/6.86, allocations: 24.2 kB / 3.812 GB, free: 65.73 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.004942/6.865, allocations: 1.727 MB / 3.813 GB, free: 65.12 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/6.865, allocations: 7.188 kB / 3.813 GB, free: 65.12 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/6.866, allocations: 107.6 kB / 3.813 GB, free: 65.08 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001967/6.868, allocations: 329.9 kB / 3.814 GB, free: 65.04 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009849/6.869, allocations: 0.5999 MB / 3.814 GB, free: 64.8 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.903e-05/6.869, allocations: 110.4 kB / 3.814 GB, free: 64.74 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.098e-05/6.869, allocations: 57.67 kB / 3.814 GB, free: 64.74 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/6.871, allocations: 1.195 MB / 3.816 GB, free: 64.44 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/6.871, allocations: 4.75 kB / 3.816 GB, free: 64.44 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.562e-05/6.871, allocations: 33.64 kB / 3.816 GB, free: 64.44 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.718e-05/6.871, allocations: 49.08 kB / 3.816 GB, free: 64.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/6.873, allocations: 0.8493 MB / 3.816 GB, free: 64.43 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.005392/6.878, allocations: 5.511 MB / 3.822 GB, free: 60.74 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/6.879, allocations: 0.5972 MB / 3.822 GB, free: 60.68 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/6.879, allocations: 221 kB / 3.823 GB, free: 60.67 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07705/6.957, allocations: 51.22 MB / 3.873 GB, free: 28.34 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.834e-05/6.957, allocations: 43.09 kB / 3.873 GB, free: 28.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 2.725e-06/6.957, allocations: 0 / 3.873 GB, free: 28.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.004179/6.961, allocations: 1.835 MB / 3.875 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/6.961, allocations: 161.3 kB / 3.875 GB, free: 27.62 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005535/6.961, allocations: 0.5444 MB / 3.875 GB, free: 27.48 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/6.961, allocations: 34.11 kB / 3.875 GB, free: 27.45 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/6.962, allocations: 399.6 kB / 3.876 GB, free: 27.24 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.644e-05/6.962, allocations: 168.2 kB / 3.876 GB, free: 27.13 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/6.962, allocations: 14.66 kB / 3.876 GB, free: 27.13 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.621e-05/6.962, allocations: 380.3 kB / 3.876 GB, free: 26.82 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/6.962, allocations: 219.5 kB / 3.876 GB, free: 26.82 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/6.963, allocations: 0.5533 MB / 3.877 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003798/6.963, allocations: 329 kB / 3.877 GB, free: 26.36 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/6.963, allocations: 3.719 kB / 3.877 GB, free: 26.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001002/6.964, allocations: 0.8532 MB / 3.878 GB, free: 26.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/6.964, allocations: 15.38 kB / 3.878 GB, free: 26.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/6.964, allocations: 10.41 kB / 3.878 GB, free: 26.26 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002256/6.964, allocations: 66.02 kB / 3.878 GB, free: 26.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/6.965, allocations: 279.4 kB / 3.878 GB, free: 26.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009379/6.966, allocations: 1.971 MB / 3.88 GB, free: 24.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004945/6.967, allocations: 60.94 kB / 3.88 GB, free: 24.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.203e-05/6.967, allocations: 45.91 kB / 3.88 GB, free: 24.4 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001416/6.967, allocations: 167.9 kB / 3.881 GB, free: 24.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/6.967, allocations: 69.16 kB / 3.881 GB, free: 24.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/6.969, allocations: 2.217 MB / 3.883 GB, free: 23.95 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/6.969, allocations: 32.06 kB / 3.883 GB, free: 23.95 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/6.969, allocations: 0 / 3.883 GB, free: 23.95 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/6.969, allocations: 6.672 kB / 3.883 GB, free: 23.95 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002655/6.972, allocations: 3.273 MB / 3.886 GB, free: 23.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/6.972, allocations: 3.953 kB / 3.886 GB, free: 23.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008072/6.972, allocations: 188.5 kB / 3.886 GB, free: 23.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002705/6.973, allocations: 96.73 kB / 3.886 GB, free: 23.46 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/6.973, allocations: 9.875 kB / 3.886 GB, free: 23.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008308/6.974, allocations: 1.989 MB / 3.888 GB, free: 21.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/6.974, allocations: 0 / 3.888 GB, free: 21.62 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/6.975, allocations: 1.979 MB / 3.89 GB, free: 21.26 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/6.975, allocations: 286.9 kB / 3.89 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.796e-05/6.975, allocations: 10.31 kB / 3.891 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005241/6.976, allocations: 67.55 kB / 3.891 GB, free: 21.08 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.354e-05/6.976, allocations: 36.73 kB / 3.891 GB, free: 21.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.982e-05/6.976, allocations: 18.72 kB / 3.891 GB, free: 21.07 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004616/6.977, allocations: 0.4975 MB / 3.891 GB, free: 20.97 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.8e-07/6.977, allocations: 0 / 3.891 GB, free: 20.97 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004078/6.981, allocations: 1.141 MB / 3.892 GB, free: 20.82 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007074/6.988, allocations: 4.046 MB / 3.896 GB, free: 19.64 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001711/6.99, allocations: 0.9187 MB / 3.897 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/6.99, allocations: 2.438 kB / 3.897 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009394/6.99, allocations: 0.6618 MB / 3.898 GB, free: 19.61 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/6.992, allocations: 369.9 kB / 3.898 GB, free: 19.59 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004938/6.997, allocations: 2.263 MB / 3.9 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/6.998, allocations: 1.135 MB / 3.901 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0008237/6.998, allocations: 446.9 kB / 3.902 GB, free: 18.22 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/6.999, allocations: 401.1 kB / 3.902 GB, free: 18.21 MB / 0.5417 GB Notification: Performance of SimCode: time 5.11e-07/6.999, allocations: 0 / 3.902 GB, free: 18.21 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08662/7.085, allocations: 53.74 MB / 3.955 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0008556/7.086, allocations: 252.5 kB / 3.955 GB, free: 31.22 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.378/10.46, allocations: 3.875 kB / 3.955 GB, free: 31.22 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat