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.00242/0.00242, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.262/2.262, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001146/0.001146, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2878/0.2878, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.365e-05/3.382e-05, allocations: 0 / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1262, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.832/8.959, allocations: 2.796 GB / 3.268 GB, free: 45.04 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003515/8.959, allocations: 101 kB / 3.269 GB, free: 44.98 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.884/11.84, allocations: 0.4934 GB / 3.762 GB, free: 55.11 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.154e-06/11.84, allocations: 0 / 3.762 GB, free: 55.11 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.738e-05/11.84, allocations: 21.38 kB / 3.762 GB, free: 55.11 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.008521/11.85, allocations: 1.726 MB / 3.764 GB, free: 54.42 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/11.85, allocations: 14 kB / 3.764 GB, free: 54.41 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002988/11.85, allocations: 114.4 kB / 3.764 GB, free: 54.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003475/11.86, allocations: 317.4 kB / 3.764 GB, free: 54.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002018/11.86, allocations: 0.5983 MB / 3.765 GB, free: 54.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/11.86, allocations: 116.8 kB / 3.765 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001712/11.86, allocations: 58.41 kB / 3.765 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003787/11.86, allocations: 1.193 MB / 3.766 GB, free: 53.74 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.893e-05/11.86, allocations: 5.719 kB / 3.766 GB, free: 53.74 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001651/11.86, allocations: 36.7 kB / 3.766 GB, free: 53.73 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.049e-05/11.86, allocations: 42.55 kB / 3.766 GB, free: 53.73 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002641/11.86, allocations: 0.8464 MB / 3.767 GB, free: 53.73 MB / 0.5105 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.00931/11.87, allocations: 5.503 MB / 3.772 GB, free: 50.02 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001812/11.88, allocations: 0.6024 MB / 3.773 GB, free: 49.96 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000509/11.88, allocations: 219.4 kB / 3.773 GB, free: 49.94 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1651/12.04, allocations: 46.08 MB / 3.818 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.149e-05/12.04, allocations: 40.3 kB / 3.818 GB, free: 22.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=42): time 4.498e-06/12.04, allocations: 4 kB / 3.818 GB, free: 22.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=46): time 0.006772/12.05, allocations: 1.833 MB / 3.82 GB, free: 22.08 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/12.05, allocations: 165.6 kB / 3.82 GB, free: 21.89 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009475/12.05, allocations: 0.5401 MB / 3.821 GB, free: 21.75 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.098e-05/12.05, allocations: 36.3 kB / 3.821 GB, free: 21.72 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002592/12.05, allocations: 420 kB / 3.821 GB, free: 21.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/12.05, allocations: 172.6 kB / 3.821 GB, free: 21.34 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.224e-05/12.05, allocations: 18.88 kB / 3.821 GB, free: 21.34 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.069e-05/12.05, allocations: 344.5 kB / 3.822 GB, free: 21.03 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005213/12.05, allocations: 218.2 kB / 3.822 GB, free: 21.03 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007453/12.05, allocations: 0.5549 MB / 3.822 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006988/12.05, allocations: 324.4 kB / 3.823 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/12.05, allocations: 6.625 kB / 3.823 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001956/12.05, allocations: 0.8165 MB / 3.823 GB, free: 20.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/12.05, allocations: 11.09 kB / 3.823 GB, free: 20.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/12.05, allocations: 11.25 kB / 3.823 GB, free: 20.49 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004218/12.05, allocations: 57.89 kB / 3.823 GB, free: 20.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00229/12.06, allocations: 282.2 kB / 3.824 GB, free: 20.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002543/12.06, allocations: 1.973 MB / 3.826 GB, free: 34.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/12.06, allocations: 70.36 kB / 3.826 GB, free: 34.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.063e-05/12.06, allocations: 42.5 kB / 3.826 GB, free: 34.63 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 () * 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.0003206/12.06, allocations: 158.7 kB / 3.826 GB, free: 34.52 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/12.06, allocations: 70.75 kB / 3.826 GB, free: 34.48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004483/12.07, allocations: 2.216 MB / 3.828 GB, free: 34.19 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.966e-05/12.07, allocations: 28.44 kB / 3.828 GB, free: 34.19 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/12.07, allocations: 0 / 3.828 GB, free: 34.19 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/12.07, allocations: 7.312 kB / 3.828 GB, free: 34.19 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005089/12.07, allocations: 3.279 MB / 3.831 GB, free: 33.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/12.07, allocations: 0 / 3.831 GB, free: 33.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/12.07, allocations: 190.6 kB / 3.832 GB, free: 33.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004861/12.07, allocations: 80.5 kB / 3.832 GB, free: 33.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/12.07, allocations: 14.7 kB / 3.832 GB, free: 33.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001967/12.08, allocations: 1.995 MB / 3.834 GB, free: 31.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/12.08, allocations: 2.375 kB / 3.834 GB, free: 31.86 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002998/12.08, allocations: 1.985 MB / 3.836 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005977/12.08, allocations: 285.9 kB / 3.836 GB, free: 31.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/12.08, allocations: 13 kB / 3.836 GB, free: 31.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/12.08, allocations: 61.34 kB / 3.836 GB, free: 31.31 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/12.08, allocations: 47.19 kB / 3.836 GB, free: 31.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.679e-05/12.08, allocations: 19.06 kB / 3.836 GB, free: 31.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009606/12.08, allocations: 0.4941 MB / 3.836 GB, free: 31.21 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.91e-07/12.08, allocations: 7.812 kB / 3.836 GB, free: 31.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006043/12.09, allocations: 1.125 MB / 3.838 GB, free: 31.06 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 () * 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.01265/12.1, allocations: 4.042 MB / 3.842 GB, free: 29.86 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00292/12.1, allocations: 0.9143 MB / 3.842 GB, free: 29.83 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.697e-06/12.1, allocations: 3.859 kB / 3.842 GB, free: 29.83 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001782/12.11, allocations: 0.6579 MB / 3.843 GB, free: 29.82 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/12.11, allocations: 359.8 kB / 3.843 GB, free: 29.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008372/12.12, allocations: 2.293 MB / 3.846 GB, free: 29.14 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008949/12.12, allocations: 1.132 MB / 3.847 GB, free: 28.42 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006819/12.12, allocations: 399.6 kB / 3.847 GB, free: 28.41 MB / 0.5261 GB Notification: Performance of SimCode: time 1.322e-06/12.12, allocations: 0 / 3.847 GB, free: 28.41 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.205/16.32, allocations: 44.96 MB / 3.891 GB, free: 23.19 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