Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001491/0.001491, allocations: 189.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.038/2.038, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001149/0.001148, allocations: 93.48 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5243/0.5243, allocations: 43.55 MB / 362.7 MB, free: 52.08 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00064/0.0006401, allocations: 12 kB / 431.5 MB, free: 6.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1655, allocations: 58.85 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.877/9.043, allocations: 2.796 GB / 3.274 GB, free: 14.99 MB / 0.4949 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003327/9.043, allocations: 100.1 kB / 3.275 GB, free: 14.93 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 3.007/12.05, allocations: 0.4947 GB / 3.769 GB, free: 51.62 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.174e-06/12.05, allocations: 0 / 3.769 GB, free: 51.62 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.371e-05/12.05, allocations: 19.69 kB / 3.769 GB, free: 51.62 MB / 0.5105 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.009091/12.06, allocations: 1.799 MB / 3.771 GB, free: 50.79 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/12.06, allocations: 9.531 kB / 3.771 GB, free: 50.79 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004142/12.06, allocations: 117.5 kB / 3.771 GB, free: 50.75 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00361/12.06, allocations: 324.1 kB / 3.772 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/12.07, allocations: 0.5926 MB / 3.772 GB, free: 50.45 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/12.07, allocations: 112.9 kB / 3.772 GB, free: 50.39 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/12.07, allocations: 55.77 kB / 3.772 GB, free: 50.39 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003964/12.07, allocations: 1.173 MB / 3.773 GB, free: 50.09 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.459e-05/12.07, allocations: 6.906 kB / 3.773 GB, free: 50.09 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000181/12.07, allocations: 32.11 kB / 3.773 GB, free: 50.08 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.079e-05/12.07, allocations: 46.09 kB / 3.773 GB, free: 50.08 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002837/12.07, allocations: 0.8293 MB / 3.774 GB, free: 50.08 MB / 0.5105 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.00902/12.08, allocations: 5.501 MB / 3.78 GB, free: 46.35 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/12.08, allocations: 0.5826 MB / 3.78 GB, free: 46.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1673/12.25, allocations: 45.91 MB / 3.825 GB, free: 34.56 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.772e-05/12.25, allocations: 37.22 kB / 3.825 GB, free: 34.52 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 2.775e-06/12.25, allocations: 0 / 3.825 GB, free: 34.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.007941/12.26, allocations: 1.944 MB / 3.827 GB, free: 34.03 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/12.26, allocations: 157.9 kB / 3.827 GB, free: 33.84 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009905/12.26, allocations: 0.545 MB / 3.828 GB, free: 33.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001413/12.26, allocations: 37.2 kB / 3.828 GB, free: 33.67 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003137/12.26, allocations: 429.9 kB / 3.828 GB, free: 33.31 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/12.26, allocations: 173 kB / 3.828 GB, free: 33.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.98e-05/12.26, allocations: 12 kB / 3.828 GB, free: 33.17 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002034/12.26, allocations: 348.4 kB / 3.829 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006251/12.26, allocations: 220.1 kB / 3.829 GB, free: 32.77 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007936/12.26, allocations: 0.5663 MB / 3.829 GB, free: 32.23 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000776/12.26, allocations: 327.5 kB / 3.83 GB, free: 32.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/12.26, allocations: 7.688 kB / 3.83 GB, free: 32.09 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002095/12.27, allocations: 0.8172 MB / 3.831 GB, free: 31.78 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/12.27, allocations: 15.25 kB / 3.831 GB, free: 31.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/12.27, allocations: 10.44 kB / 3.831 GB, free: 31.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000446/12.27, allocations: 73.19 kB / 3.831 GB, free: 31.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002321/12.27, allocations: 286.2 kB / 3.831 GB, free: 31.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/12.27, allocations: 1.989 MB / 3.833 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/12.27, allocations: 58.17 kB / 3.833 GB, free: 29.76 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.008e-05/12.27, allocations: 46.61 kB / 3.833 GB, free: 29.75 MB / 0.5261 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 () * Number of clocked 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.0006585/12.27, allocations: 269.1 kB / 3.833 GB, free: 29.56 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/12.27, allocations: 71.5 kB / 3.833 GB, free: 29.52 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003591/12.28, allocations: 2.226 MB / 3.835 GB, free: 28.45 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.357e-05/12.28, allocations: 36.69 kB / 3.835 GB, free: 28.44 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/12.28, allocations: 0 / 3.835 GB, free: 28.44 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-05/12.28, allocations: 7.031 kB / 3.835 GB, free: 28.44 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005709/12.28, allocations: 3.291 MB / 3.839 GB, free: 26.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/12.28, allocations: 0 / 3.839 GB, free: 26.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001807/12.29, allocations: 186.1 kB / 3.839 GB, free: 26.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006568/12.29, allocations: 93.3 kB / 3.839 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.536e-05/12.29, allocations: 13.92 kB / 3.839 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002234/12.29, allocations: 1.999 MB / 3.841 GB, free: 24.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/12.29, allocations: 4.062 kB / 3.841 GB, free: 24.8 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003374/12.29, allocations: 1.991 MB / 3.843 GB, free: 23.78 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006696/12.29, allocations: 285.3 kB / 3.843 GB, free: 23.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/12.29, allocations: 13.98 kB / 3.843 GB, free: 23.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/12.29, allocations: 52.45 kB / 3.843 GB, free: 23.54 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/12.29, allocations: 45.33 kB / 3.843 GB, free: 23.53 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.429e-05/12.29, allocations: 23.64 kB / 3.843 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009593/12.3, allocations: 0.5021 MB / 3.844 GB, free: 23.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.51e-07/12.3, allocations: 3.75 kB / 3.844 GB, free: 23.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006129/12.3, allocations: 1.129 MB / 3.845 GB, free: 23.09 MB / 0.5261 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 () * Number of clocked 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.01431/12.32, allocations: 4.051 MB / 3.849 GB, free: 21.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002932/12.32, allocations: 0.9155 MB / 3.85 GB, free: 20.85 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/12.32, allocations: 0 / 3.85 GB, free: 20.85 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001826/12.32, allocations: 0.6547 MB / 3.85 GB, free: 20.58 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/12.32, allocations: 369.6 kB / 3.851 GB, free: 20.49 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01816/12.34, allocations: 13.26 MB / 3.864 GB, free: 9.82 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009584/12.34, allocations: 1.137 MB / 3.865 GB, free: 9.086 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007437/12.34, allocations: 400.2 kB / 3.865 GB, free: 8.781 MB / 0.5261 GB Notification: Performance of SimCode: time 1.393e-06/12.34, allocations: 0 / 3.865 GB, free: 8.781 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.704/17.05, allocations: 44.77 MB / 3.909 GB, free: 64.03 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat