Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 177.3 kB / 17.06 MB, free: 5.094 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.531/1.531, allocations: 223.2 MB / 241 MB, free: 11.88 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.0009046/0.0009046, allocations: 99.41 kB / 292.1 MB, free: 10.89 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.4/0.4, allocations: 44.23 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.0003628, allocations: 8 kB / 460 MB, free: 1.406 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3577, allocations: 61.9 MB / 0.5096 GB, free: 37.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.869/7.227, allocations: 2.801 GB / 3.31 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003542/7.227, allocations: 103 kB / 3.31 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.943/9.17, allocations: 0.4995 GB / 3.81 GB, free: 52.4 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.106e-06/9.171, allocations: 0 / 3.81 GB, free: 52.4 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001268/9.171, allocations: 21.98 kB / 3.81 GB, free: 52.39 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.01162/9.182, allocations: 1.8 MB / 3.812 GB, free: 51.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.301e-05/9.182, allocations: 11.36 kB / 3.812 GB, free: 51.41 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006756/9.183, allocations: 121.3 kB / 3.812 GB, free: 51.33 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003773/9.187, allocations: 330.6 kB / 3.812 GB, free: 51.27 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/9.189, allocations: 0.5911 MB / 3.813 GB, free: 50.89 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/9.189, allocations: 121 kB / 3.813 GB, free: 50.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002519/9.189, allocations: 58.75 kB / 3.813 GB, free: 50.78 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002944/9.192, allocations: 1.164 MB / 3.814 GB, free: 50.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/9.192, allocations: 0 / 3.814 GB, free: 50.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001604/9.193, allocations: 35.72 kB / 3.814 GB, free: 50.18 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.495e-05/9.193, allocations: 47.17 kB / 3.814 GB, free: 50.17 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001831/9.195, allocations: 0.8313 MB / 3.815 GB, free: 49.91 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.006703/9.201, allocations: 5.491 MB / 3.82 GB, free: 45.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/9.202, allocations: 0.5756 MB / 3.821 GB, free: 45.27 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08796/9.29, allocations: 45.94 MB / 3.866 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.592e-05/9.29, allocations: 38.56 kB / 3.866 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 2.555e-06/9.29, allocations: 0 / 3.866 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.006099/9.297, allocations: 1.947 MB / 3.868 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004678/9.297, allocations: 158.2 kB / 3.868 GB, free: 24.68 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/9.298, allocations: 0.5433 MB / 3.868 GB, free: 24.16 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001168/9.298, allocations: 37.7 kB / 3.868 GB, free: 24.12 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/9.299, allocations: 390.3 kB / 3.869 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/9.299, allocations: 169.5 kB / 3.869 GB, free: 23.57 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.066e-05/9.299, allocations: 16 kB / 3.869 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000214/9.299, allocations: 378.8 kB / 3.869 GB, free: 23.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003933/9.3, allocations: 225.9 kB / 3.869 GB, free: 22.96 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/9.3, allocations: 0.5605 MB / 3.87 GB, free: 22.23 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005085/9.301, allocations: 332.6 kB / 3.87 GB, free: 21.91 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/9.301, allocations: 4 kB / 3.87 GB, free: 21.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001395/9.302, allocations: 0.8675 MB / 3.871 GB, free: 21.03 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/9.302, allocations: 8 kB / 3.871 GB, free: 21.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/9.302, allocations: 12 kB / 3.871 GB, free: 21.01 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003131/9.302, allocations: 72.84 kB / 3.871 GB, free: 20.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/9.304, allocations: 279.6 kB / 3.871 GB, free: 20.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/9.305, allocations: 1.975 MB / 3.873 GB, free: 18.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008588/9.306, allocations: 67.83 kB / 3.873 GB, free: 18.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.497e-05/9.306, allocations: 44 kB / 3.874 GB, free: 18.42 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 () * 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.0005715/9.307, allocations: 273.5 kB / 3.874 GB, free: 18.14 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/9.307, allocations: 75.09 kB / 3.874 GB, free: 18.07 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002467/9.31, allocations: 2.216 MB / 3.876 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-05/9.31, allocations: 30.91 kB / 3.876 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/9.31, allocations: 0 / 3.876 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/9.31, allocations: 11.94 kB / 3.876 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004147/9.314, allocations: 3.28 MB / 3.879 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/9.314, allocations: 0 / 3.879 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009925/9.315, allocations: 195.7 kB / 3.879 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004638/9.315, allocations: 92.69 kB / 3.88 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.664e-05/9.315, allocations: 19.94 kB / 3.88 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001722/9.317, allocations: 1.995 MB / 3.882 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/9.317, allocations: 0 / 3.882 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/9.32, allocations: 1.999 MB / 3.883 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007448/9.321, allocations: 287 kB / 3.884 GB, free: 7.691 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002153/9.321, allocations: 12 kB / 3.884 GB, free: 7.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007899/9.322, allocations: 59.95 kB / 3.884 GB, free: 7.621 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/9.322, allocations: 32.39 kB / 3.884 GB, free: 7.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.755e-05/9.322, allocations: 23.98 kB / 3.884 GB, free: 7.566 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001019/9.323, allocations: 0.499 MB / 3.884 GB, free: 7.066 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/9.323, allocations: 4 kB / 3.884 GB, free: 7.062 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006915/9.33, allocations: 1.127 MB / 3.885 GB, free: 5.938 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 () * 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.01377/9.344, allocations: 4.061 MB / 3.889 GB, free: 2.055 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002532/9.346, allocations: 0.9278 MB / 3.89 GB, free: 1.125 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/9.346, allocations: 0 / 3.89 GB, free: 1.125 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001451/9.348, allocations: 0.6601 MB / 3.891 GB, free: 476 kB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002289/9.35, allocations: 360.3 kB / 3.891 GB, free: 132 kB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3608/9.711, allocations: 13.23 MB / 3.904 GB, free: 65.27 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005442/9.712, allocations: 1.134 MB / 3.905 GB, free: 64.56 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001054/9.713, allocations: 451.1 kB / 3.906 GB, free: 64.55 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004211/9.713, allocations: 394 kB / 3.906 GB, free: 64.55 MB / 0.5417 GB Notification: Performance of SimCode: time 1.813e-06/9.713, allocations: 0 / 3.906 GB, free: 64.55 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1004/9.813, allocations: 51.15 MB / 3.956 GB, free: 63.69 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/9.814, allocations: 293.4 kB / 3.956 GB, free: 63.32 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.568/13.38, allocations: 9.906 kB / 3.956 GB, free: 63.32 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat