Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001138/0.001138, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.767/1.767, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 90.12 kB / 261.7 MB, free: 1.684 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.2264/0.2264, allocations: 43.49 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.94e-05/1.942e-05, allocations: 0 / 418.4 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1393, allocations: 58.85 MB / 477.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.909/8.049, allocations: 2.795 GB / 3.261 GB, free: 74.79 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003591/8.049, allocations: 95.94 kB / 3.261 GB, free: 74.73 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.125/10.17, allocations: 0.4883 GB / 3.749 GB, free: 62.77 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.863e-06/10.17, allocations: 0 / 3.749 GB, free: 62.77 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.353e-05/10.17, allocations: 24.02 kB / 3.749 GB, free: 62.77 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.007441/10.18, allocations: 1.761 MB / 3.751 GB, free: 62.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/10.18, allocations: 9.25 kB / 3.751 GB, free: 62.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002565/10.18, allocations: 320.7 kB / 3.751 GB, free: 62.08 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/10.19, allocations: 0.6041 MB / 3.752 GB, free: 61.84 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/10.19, allocations: 98.11 kB / 3.752 GB, free: 61.78 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/10.19, allocations: 37.22 kB / 3.752 GB, free: 61.78 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001324/10.19, allocations: 0.6938 MB / 3.753 GB, free: 61.77 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/10.19, allocations: 0.8905 MB / 3.754 GB, free: 61.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/10.19, allocations: 10.92 kB / 3.754 GB, free: 61.48 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.418e-05/10.19, allocations: 3.797 kB / 3.754 GB, free: 61.48 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.889e-05/10.19, allocations: 55.33 kB / 3.754 GB, free: 61.47 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.09461/10.28, allocations: 52.88 MB / 3.805 GB, free: 29.04 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007661/10.28, allocations: 391.2 kB / 3.806 GB, free: 29.01 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/10.28, allocations: 178.8 kB / 3.806 GB, free: 29 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01469/10.3, allocations: 8.169 MB / 3.814 GB, free: 23.76 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.146e-05/10.3, allocations: 38.88 kB / 3.814 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=37): time 2.655e-06/10.3, allocations: 0 / 3.814 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of matching and sorting (n=41): time 0.004189/10.3, allocations: 1.467 MB / 3.815 GB, free: 23.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/10.3, allocations: 132.4 kB / 3.816 GB, free: 23.14 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006478/10.3, allocations: 478.3 kB / 3.816 GB, free: 23.01 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/10.3, allocations: 25.7 kB / 3.816 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002402/10.3, allocations: 423.5 kB / 3.816 GB, free: 22.74 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/10.3, allocations: 143.1 kB / 3.817 GB, free: 22.65 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/10.3, allocations: 0 / 3.817 GB, free: 22.65 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001008/10.3, allocations: 372.5 kB / 3.817 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002893/10.3, allocations: 216.3 kB / 3.817 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/10.31, allocations: 0.5353 MB / 3.818 GB, free: 21.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005738/10.31, allocations: 329 kB / 3.818 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/10.31, allocations: 3.031 kB / 3.818 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001377/10.31, allocations: 0.784 MB / 3.819 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/10.31, allocations: 8.75 kB / 3.819 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/10.31, allocations: 11.44 kB / 3.819 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002272/10.31, allocations: 61.33 kB / 3.819 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/10.31, allocations: 313.6 kB / 3.819 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002204/10.31, allocations: 1.939 MB / 3.821 GB, free: 36.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008891/10.31, allocations: 86.3 kB / 3.821 GB, free: 36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.079e-05/10.31, allocations: 40.88 kB / 3.821 GB, free: 36 MB / 0.5261 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.000216/10.31, allocations: 140 kB / 3.821 GB, free: 35.89 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000864/10.31, allocations: 470.9 kB / 3.822 GB, free: 35.81 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.876e-05/10.31, allocations: 64.62 kB / 3.822 GB, free: 35.78 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/10.31, allocations: 1.863 MB / 3.824 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.952e-05/10.32, allocations: 30.89 kB / 3.824 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/10.32, allocations: 0 / 3.824 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/10.32, allocations: 0 / 3.824 GB, free: 35.55 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003207/10.32, allocations: 2.856 MB / 3.826 GB, free: 35.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/10.32, allocations: 0 / 3.826 GB, free: 35.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/10.32, allocations: 213.7 kB / 3.827 GB, free: 35.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002427/10.32, allocations: 86.31 kB / 3.827 GB, free: 35.09 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.979e-05/10.32, allocations: 3.875 kB / 3.827 GB, free: 35.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/10.32, allocations: 1.972 MB / 3.829 GB, free: 33.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/10.32, allocations: 0 / 3.829 GB, free: 33.31 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/10.32, allocations: 1.802 MB / 3.83 GB, free: 33.02 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000363/10.32, allocations: 234.1 kB / 3.831 GB, free: 32.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.177e-05/10.32, allocations: 3.75 kB / 3.831 GB, free: 32.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004813/10.32, allocations: 51.06 kB / 3.831 GB, free: 32.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.648e-05/10.32, allocations: 38.45 kB / 3.831 GB, free: 32.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.738e-05/10.32, allocations: 21.38 kB / 3.831 GB, free: 32.85 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004317/10.32, allocations: 348.4 kB / 3.831 GB, free: 32.76 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.6e-07/10.32, allocations: 0 / 3.831 GB, free: 32.76 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005925/10.33, allocations: 1.087 MB / 3.832 GB, free: 32.61 MB / 0.5261 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.009652/10.34, allocations: 4.02 MB / 3.836 GB, free: 31.41 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001862/10.34, allocations: 0.8655 MB / 3.837 GB, free: 31.39 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/10.34, allocations: 0 / 3.837 GB, free: 31.39 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001139/10.34, allocations: 0.6488 MB / 3.837 GB, free: 31.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/10.35, allocations: 275.1 kB / 3.838 GB, free: 31.37 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007644/10.35, allocations: 2.062 MB / 3.84 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008149/10.35, allocations: 1.107 MB / 3.841 GB, free: 30.06 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001081/10.35, allocations: 0.5201 MB / 3.841 GB, free: 30.03 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004414/10.36, allocations: 355.8 kB / 3.842 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of SimCode: time 9.62e-07/10.36, allocations: 0 / 3.842 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09401/10.45, allocations: 43.26 MB / 3.884 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/10.45, allocations: 202.8 kB / 3.884 GB, free: 27.36 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.459/13.91, allocations: 0 / 3.884 GB, free: 27.36 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_3.2.3_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_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat