Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_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.002247/0.002247, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.061/2.061, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001121, allocations: 91.42 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2968/0.2968, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.713e-05/1.711e-05, allocations: 224 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4011/0.4011, allocations: 58.86 MB / 477.2 MB, free: 5.168 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.724/9.125, allocations: 2.795 GB / 3.261 GB, free: 96.3 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/9.126, allocations: 88.97 kB / 3.261 GB, free: 96.3 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.442/11.57, allocations: 0.4883 GB / 3.749 GB, free: 60.41 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.013e-06/11.57, allocations: 0 / 3.749 GB, free: 60.41 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 7.573e-05/11.57, allocations: 20.58 kB / 3.749 GB, free: 60.41 MB / 0.5108 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.008112/11.58, allocations: 1.764 MB / 3.751 GB, free: 59.61 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/11.58, allocations: 7.469 kB / 3.751 GB, free: 59.61 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003477/11.58, allocations: 322.9 kB / 3.751 GB, free: 59.57 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001939/11.58, allocations: 0.5999 MB / 3.752 GB, free: 59.3 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/11.58, allocations: 95.38 kB / 3.752 GB, free: 59.24 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001444/11.58, allocations: 35.16 kB / 3.752 GB, free: 59.24 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001847/11.58, allocations: 0.6937 MB / 3.753 GB, free: 59.24 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/11.59, allocations: 0.895 MB / 3.754 GB, free: 58.94 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.575e-05/11.59, allocations: 7.719 kB / 3.754 GB, free: 58.94 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/11.59, allocations: 11.2 kB / 3.754 GB, free: 58.93 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.402e-05/11.59, allocations: 46.3 kB / 3.754 GB, free: 58.93 MB / 0.5108 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.156/11.74, allocations: 52.89 MB / 3.805 GB, free: 25.34 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/11.74, allocations: 398 kB / 3.806 GB, free: 25.17 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003969/11.74, allocations: 179.6 kB / 3.806 GB, free: 25.09 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02873/11.77, allocations: 8.166 MB / 3.814 GB, free: 35.7 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.782e-05/11.77, allocations: 38.44 kB / 3.814 GB, free: 35.66 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=37): time 3.266e-06/11.77, allocations: 4 kB / 3.814 GB, free: 35.65 MB / 0.5265 GB Notification: Performance of matching and sorting (n=41): time 0.006107/11.78, allocations: 1.455 MB / 3.815 GB, free: 34.94 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/11.78, allocations: 134 kB / 3.815 GB, free: 34.79 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009309/11.78, allocations: 483 kB / 3.816 GB, free: 34.54 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 0.0001463/11.78, allocations: 25.7 kB / 3.816 GB, free: 34.51 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/11.78, allocations: 458.9 kB / 3.816 GB, free: 34.12 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/11.78, allocations: 150.5 kB / 3.817 GB, free: 34.01 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.965e-05/11.78, allocations: 0 / 3.817 GB, free: 34.01 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 0.0001675/11.78, allocations: 340.1 kB / 3.817 GB, free: 33.69 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005252/11.78, allocations: 214.3 kB / 3.817 GB, free: 33.6 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006832/11.78, allocations: 0.5311 MB / 3.818 GB, free: 33.09 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/11.78, allocations: 319.6 kB / 3.818 GB, free: 32.98 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/11.78, allocations: 3.719 kB / 3.818 GB, free: 32.98 MB / 0.5265 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002148/11.79, allocations: 0.7583 MB / 3.819 GB, free: 32.7 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/11.79, allocations: 11.83 kB / 3.819 GB, free: 32.69 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/11.79, allocations: 19.48 kB / 3.819 GB, free: 32.69 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003014/11.79, allocations: 59.91 kB / 3.819 GB, free: 32.67 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002569/11.79, allocations: 309.2 kB / 3.819 GB, free: 32.64 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/11.79, allocations: 1.935 MB / 3.821 GB, free: 30.76 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/11.79, allocations: 83.7 kB / 3.821 GB, free: 30.75 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/11.79, allocations: 40.22 kB / 3.821 GB, free: 30.74 MB / 0.5265 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,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.0003018/11.79, allocations: 149.8 kB / 3.821 GB, free: 30.61 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001444/11.79, allocations: 460.2 kB / 3.822 GB, free: 30.41 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/11.79, allocations: 71.09 kB / 3.822 GB, free: 30.37 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002991/11.8, allocations: 1.857 MB / 3.823 GB, free: 29.51 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.231e-05/11.8, allocations: 32.52 kB / 3.824 GB, free: 29.5 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/11.8, allocations: 0 / 3.824 GB, free: 29.5 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/11.8, allocations: 0 / 3.824 GB, free: 29.5 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005043/11.8, allocations: 2.861 MB / 3.826 GB, free: 27.46 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/11.8, allocations: 0 / 3.826 GB, free: 27.46 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002008/11.8, allocations: 211.3 kB / 3.827 GB, free: 27.3 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003995/11.8, allocations: 90.05 kB / 3.827 GB, free: 27.23 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.28e-05/11.81, allocations: 7.609 kB / 3.827 GB, free: 27.23 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/11.81, allocations: 1.972 MB / 3.829 GB, free: 25.18 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/11.81, allocations: 0 / 3.829 GB, free: 25.18 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002996/11.81, allocations: 1.81 MB / 3.83 GB, free: 23.47 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005792/11.81, allocations: 226.7 kB / 3.831 GB, free: 23.24 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/11.81, allocations: 4 kB / 3.831 GB, free: 23.24 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000874/11.81, allocations: 51.3 kB / 3.831 GB, free: 23.2 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/11.81, allocations: 43.19 kB / 3.831 GB, free: 23.18 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/11.81, allocations: 20 kB / 3.831 GB, free: 23.16 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.0006156/11.81, allocations: 340.4 kB / 3.831 GB, free: 22.85 MB / 0.5265 GB Notification: Performance of sort global known variables: time 3.81e-07/11.81, allocations: 0 / 3.831 GB, free: 22.85 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.005912/11.82, allocations: 1.09 MB / 3.832 GB, free: 21.79 MB / 0.5265 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.h) * Number of discrete variables: 16 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 38 * 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.01412/11.83, allocations: 4.022 MB / 3.836 GB, free: 18.17 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.002732/11.84, allocations: 0.8517 MB / 3.837 GB, free: 17.39 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/11.84, allocations: 0.875 kB / 3.837 GB, free: 17.39 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.001959/11.84, allocations: 0.6341 MB / 3.837 GB, free: 16.82 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002589/11.84, allocations: 277.9 kB / 3.838 GB, free: 16.62 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008344/11.85, allocations: 2.112 MB / 3.84 GB, free: 14.71 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008272/11.85, allocations: 1.1 MB / 3.841 GB, free: 13.73 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007319/11.85, allocations: 361.9 kB / 3.841 GB, free: 13.41 MB / 0.5265 GB Notification: Performance of SimCode: time 1.352e-06/11.85, allocations: 0 / 3.841 GB, free: 13.41 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.447/16.3, allocations: 43.6 MB / 3.884 GB, free: 68.15 MB / 0.5265 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat