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.00164/0.00164, allocations: 198.3 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.57/1.57, allocations: 227.2 MB / 245 MB, free: 5.934 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009732/0.0009732, allocations: 95.3 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4736/0.4736, allocations: 45.22 MB / 394.6 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002887/0.0002883, allocations: 4 kB / 468.5 MB, free: 7.613 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4546/0.4549, allocations: 63.25 MB / 0.5193 GB, free: 37.64 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.986/7.441, allocations: 2.8 GB / 3.319 GB, free: 91.16 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/7.441, allocations: 101.9 kB / 3.319 GB, free: 91.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.802/9.243, allocations: 0.4974 GB / 3.817 GB, free: 23.15 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.813e-06/9.244, allocations: 0 / 3.817 GB, free: 23.15 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.982e-05/9.244, allocations: 20 kB / 3.817 GB, free: 23.13 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.007251/9.251, allocations: 1.783 MB / 3.818 GB, free: 21.33 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/9.251, allocations: 12.56 kB / 3.818 GB, free: 21.32 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002016/9.251, allocations: 114.5 kB / 3.819 GB, free: 21.2 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/9.253, allocations: 233.9 kB / 3.819 GB, free: 20.97 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/9.254, allocations: 0.5828 MB / 3.819 GB, free: 20.36 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-05/9.254, allocations: 111.8 kB / 3.819 GB, free: 20.24 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.189e-05/9.254, allocations: 60 kB / 3.82 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0019/9.256, allocations: 1.067 MB / 3.821 GB, free: 19 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/9.256, allocations: 3.938 kB / 3.821 GB, free: 19 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-05/9.256, allocations: 30.73 kB / 3.821 GB, free: 18.97 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-05/9.256, allocations: 44.78 kB / 3.821 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/9.258, allocations: 0.8193 MB / 3.821 GB, free: 18.11 MB / 0.5417 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.005683/9.264, allocations: 5.537 MB / 3.827 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/9.265, allocations: 0.5227 MB / 3.827 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4833/9.748, allocations: 52.32 MB / 3.878 GB, free: 34.9 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/9.748, allocations: 44 kB / 3.879 GB, free: 34.86 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=39): time 2.625e-06/9.748, allocations: 0 / 3.879 GB, free: 34.86 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44): time 0.006343/9.755, allocations: 2.109 MB / 3.881 GB, free: 34.38 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/9.755, allocations: 183.2 kB / 3.881 GB, free: 34.16 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006883/9.755, allocations: 0.5623 MB / 3.881 GB, free: 34.03 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/9.755, allocations: 35.11 kB / 3.881 GB, free: 34 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002582/9.756, allocations: 398.5 kB / 3.882 GB, free: 33.81 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/9.756, allocations: 161.5 kB / 3.882 GB, free: 33.74 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/9.756, allocations: 14.78 kB / 3.882 GB, free: 33.74 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001178/9.756, allocations: 382.1 kB / 3.882 GB, free: 33.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/9.756, allocations: 228.2 kB / 3.882 GB, free: 33.42 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005693/9.757, allocations: 0.5819 MB / 3.883 GB, free: 32.98 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004719/9.757, allocations: 340.9 kB / 3.883 GB, free: 32.97 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/9.757, allocations: 7.75 kB / 3.883 GB, free: 32.97 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001286/9.759, allocations: 0.8898 MB / 3.884 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/9.759, allocations: 9.938 kB / 3.884 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/9.759, allocations: 12.95 kB / 3.884 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004067/9.763, allocations: 260.5 kB / 3.885 GB, free: 32.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/9.764, allocations: 286.6 kB / 3.885 GB, free: 32.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/9.766, allocations: 2.024 MB / 3.887 GB, free: 31.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/9.767, allocations: 61.45 kB / 3.887 GB, free: 31.04 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/9.767, allocations: 42.06 kB / 3.887 GB, free: 31.04 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 () * Number of clocked 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.000765/9.768, allocations: 275.5 kB / 3.887 GB, free: 30.93 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/9.768, allocations: 71.41 kB / 3.887 GB, free: 30.89 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002843/9.771, allocations: 2.019 MB / 3.889 GB, free: 30.67 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-05/9.771, allocations: 21.61 kB / 3.889 GB, free: 30.67 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/9.771, allocations: 8.766 kB / 3.889 GB, free: 30.67 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/9.771, allocations: 3.938 kB / 3.889 GB, free: 30.67 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004446/9.776, allocations: 3.001 MB / 3.892 GB, free: 30.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/9.776, allocations: 1.188 kB / 3.892 GB, free: 30.24 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/9.777, allocations: 187.7 kB / 3.892 GB, free: 30.24 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002068/9.779, allocations: 307.1 kB / 3.893 GB, free: 30.22 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.635e-05/9.779, allocations: 13.2 kB / 3.893 GB, free: 30.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/9.78, allocations: 2.079 MB / 3.895 GB, free: 28.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/9.78, allocations: 1.156 kB / 3.895 GB, free: 28.39 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/9.783, allocations: 1.962 MB / 3.897 GB, free: 27.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005817/9.784, allocations: 289.5 kB / 3.897 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.682e-05/9.784, allocations: 12.81 kB / 3.897 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004931/9.784, allocations: 38.03 kB / 3.897 GB, free: 27.81 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.174e-05/9.784, allocations: 33.75 kB / 3.897 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/9.784, allocations: 20.27 kB / 3.897 GB, free: 27.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0007901/9.785, allocations: 0.5684 MB / 3.897 GB, free: 27.71 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.6e-07/9.785, allocations: 0 / 3.897 GB, free: 27.71 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006077/9.791, allocations: 1.15 MB / 3.899 GB, free: 27.71 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 () * Number of clocked 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.01143/9.803, allocations: 4.11 MB / 3.903 GB, free: 26.61 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00221/9.805, allocations: 0.9141 MB / 3.904 GB, free: 26.59 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/9.805, allocations: 2.75 kB / 3.904 GB, free: 26.59 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001124/9.806, allocations: 0.6254 MB / 3.904 GB, free: 26.57 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/9.808, allocations: 373.5 kB / 3.904 GB, free: 26.57 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/9.823, allocations: 13.68 MB / 3.918 GB, free: 32.71 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008123/9.824, allocations: 1.115 MB / 3.919 GB, free: 32 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000933/9.825, allocations: 337.8 kB / 3.919 GB, free: 31.99 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000396/9.825, allocations: 378.4 kB / 3.92 GB, free: 31.98 MB / 0.5573 GB Notification: Performance of SimCode: time 1.753e-06/9.825, allocations: 1.859 kB / 3.92 GB, free: 31.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08247/9.908, allocations: 50.91 MB / 3.969 GB, free: 29.58 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/9.908, allocations: 267.7 kB / 3.97 GB, free: 29.23 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.825/13.73, allocations: 3.656 kB / 3.97 GB, free: 29.23 MB / 0.5573 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