Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.479/1.479, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 94.25 kB / 292.1 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4131/0.4131, allocations: 44.21 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003012, allocations: 8 kB / 460 MB, free: 1.406 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3894, allocations: 61.9 MB / 0.5096 GB, free: 38.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.193/7.582, allocations: 2.799 GB / 3.309 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/7.582, allocations: 102.9 kB / 3.309 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.939/9.521, allocations: 0.4972 GB / 3.806 GB, free: 52.32 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.474e-06/9.521, allocations: 0 / 3.806 GB, free: 52.32 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001158/9.521, allocations: 21.33 kB / 3.806 GB, free: 52.32 MB / 0.5261 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.009358/9.531, allocations: 1.77 MB / 3.808 GB, free: 51.35 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/9.531, allocations: 14.72 kB / 3.808 GB, free: 51.35 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005002/9.531, allocations: 111.3 kB / 3.808 GB, free: 51.27 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002006/9.533, allocations: 231.7 kB / 3.808 GB, free: 51.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001989/9.535, allocations: 0.5866 MB / 3.808 GB, free: 50.84 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/9.536, allocations: 110.2 kB / 3.809 GB, free: 50.75 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002702/9.536, allocations: 56.95 kB / 3.809 GB, free: 50.74 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002479/9.538, allocations: 1.071 MB / 3.81 GB, free: 50.14 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/9.538, allocations: 0 / 3.81 GB, free: 50.14 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/9.539, allocations: 27.91 kB / 3.81 GB, free: 50.13 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.911e-05/9.539, allocations: 46.06 kB / 3.81 GB, free: 50.12 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001746/9.54, allocations: 0.8071 MB / 3.811 GB, free: 49.86 MB / 0.5261 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.00609/9.546, allocations: 5.557 MB / 3.816 GB, free: 45.33 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/9.548, allocations: 0.5407 MB / 3.817 GB, free: 45.09 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08825/9.636, allocations: 47.18 MB / 3.863 GB, free: 26.03 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.95e-05/9.636, allocations: 38.56 kB / 3.863 GB, free: 25.98 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=39): time 3.046e-06/9.636, allocations: 0 / 3.863 GB, free: 25.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44): time 0.006609/9.643, allocations: 2.116 MB / 3.865 GB, free: 24.06 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/9.643, allocations: 191 kB / 3.865 GB, free: 23.84 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008287/9.644, allocations: 0.5539 MB / 3.865 GB, free: 23.35 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.516e-05/9.644, allocations: 29.7 kB / 3.865 GB, free: 23.31 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002574/9.644, allocations: 393.2 kB / 3.866 GB, free: 22.96 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001536/9.644, allocations: 167.9 kB / 3.866 GB, free: 22.81 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.61e-05/9.644, allocations: 16 kB / 3.866 GB, free: 22.79 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002173/9.644, allocations: 384.4 kB / 3.866 GB, free: 22.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003893/9.645, allocations: 228.9 kB / 3.867 GB, free: 22.24 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005663/9.645, allocations: 0.5877 MB / 3.867 GB, free: 21.53 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005557/9.646, allocations: 332.4 kB / 3.867 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.437e-06/9.646, allocations: 4 kB / 3.867 GB, free: 21.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001595/9.648, allocations: 0.8932 MB / 3.868 GB, free: 20.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/9.648, allocations: 8 kB / 3.868 GB, free: 20.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/9.648, allocations: 15.61 kB / 3.868 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003954/9.652, allocations: 263.1 kB / 3.869 GB, free: 20.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/9.653, allocations: 286.8 kB / 3.869 GB, free: 19.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/9.655, allocations: 2.027 MB / 3.871 GB, free: 17.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008883/9.656, allocations: 63.61 kB / 3.871 GB, free: 17.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.742e-05/9.656, allocations: 43.89 kB / 3.871 GB, free: 17.76 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.0005692/9.656, allocations: 272.8 kB / 3.871 GB, free: 17.5 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002449/9.656, allocations: 71.16 kB / 3.871 GB, free: 17.43 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00227/9.659, allocations: 2.02 MB / 3.873 GB, free: 15.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/9.659, allocations: 22.78 kB / 3.873 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/9.659, allocations: 0 / 3.873 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/9.659, allocations: 15.86 kB / 3.873 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003475/9.662, allocations: 2.988 MB / 3.876 GB, free: 12.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/9.662, allocations: 4 kB / 3.876 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008573/9.663, allocations: 190.2 kB / 3.876 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001823/9.665, allocations: 303.8 kB / 3.877 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.465e-05/9.665, allocations: 12 kB / 3.877 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/9.667, allocations: 2.081 MB / 3.879 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/9.667, allocations: 0 / 3.879 GB, free: 10.21 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/9.669, allocations: 1.963 MB / 3.881 GB, free: 8.207 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007029/9.67, allocations: 287.3 kB / 3.881 GB, free: 7.906 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002028/9.67, allocations: 12 kB / 3.881 GB, free: 7.895 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006654/9.671, allocations: 43.92 kB / 3.881 GB, free: 7.852 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.835e-05/9.671, allocations: 28.39 kB / 3.881 GB, free: 7.824 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.657e-05/9.671, allocations: 19.94 kB / 3.881 GB, free: 7.805 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001021/9.672, allocations: 0.5693 MB / 3.882 GB, free: 7.238 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.01e-07/9.672, allocations: 0 / 3.882 GB, free: 7.238 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007411/9.68, allocations: 1.135 MB / 3.883 GB, free: 6.109 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.01351/9.693, allocations: 4.114 MB / 3.887 GB, free: 2.164 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002434/9.696, allocations: 0.917 MB / 3.888 GB, free: 1.254 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/9.696, allocations: 4.125 kB / 3.888 GB, free: 1.25 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001411/9.697, allocations: 0.6163 MB / 3.888 GB, free: 0.6328 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/9.7, allocations: 376.4 kB / 3.889 GB, free: 280 kB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3308/10.03, allocations: 13.66 MB / 3.902 GB, free: 64.94 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005361/10.03, allocations: 1.117 MB / 3.903 GB, free: 64.23 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0008771/10.03, allocations: 341 kB / 3.903 GB, free: 64.22 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003649/10.03, allocations: 375.9 kB / 3.904 GB, free: 64.22 MB / 0.5417 GB Notification: Performance of SimCode: time 1.182e-06/10.03, allocations: 1 kB / 3.904 GB, free: 64.22 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08358/10.12, allocations: 50.85 MB / 3.953 GB, free: 63.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/10.12, allocations: 278.6 kB / 3.954 GB, free: 62.95 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.596/13.71, allocations: 0 / 3.954 GB, free: 62.95 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat