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.002328/0.002328, allocations: 181.4 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.138/2.138, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001089/0.001089, allocations: 78.66 kB / 267.5 MB, free: 14.04 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.291/0.291, allocations: 43.48 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.648e-05/3.678e-05, allocations: 7.984 kB / 425.4 MB, free: 23.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1303, allocations: 58.86 MB / 484.3 MB, free: 12.35 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.622/8.752, allocations: 2.796 GB / 3.268 GB, free: 48.29 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003301/8.753, allocations: 94.8 kB / 3.269 GB, free: 48.24 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.877/11.63, allocations: 0.4933 GB / 3.762 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.064e-06/11.63, allocations: 0 / 3.762 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.448e-05/11.63, allocations: 18.69 kB / 3.762 GB, free: 55.82 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.008383/11.64, allocations: 1.758 MB / 3.764 GB, free: 55.12 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/11.64, allocations: 10.5 kB / 3.764 GB, free: 55.12 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003341/11.64, allocations: 111.2 kB / 3.764 GB, free: 55.08 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003594/11.64, allocations: 326.8 kB / 3.764 GB, free: 55.04 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/11.64, allocations: 0.5949 MB / 3.765 GB, free: 54.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/11.64, allocations: 114.2 kB / 3.765 GB, free: 54.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/11.64, allocations: 58.62 kB / 3.765 GB, free: 54.74 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003756/11.65, allocations: 1.203 MB / 3.766 GB, free: 54.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.681e-05/11.65, allocations: 6.406 kB / 3.766 GB, free: 54.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/11.65, allocations: 31.91 kB / 3.766 GB, free: 54.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-05/11.65, allocations: 42.58 kB / 3.766 GB, free: 54.44 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003645/11.65, allocations: 0.9922 MB / 3.767 GB, free: 54.43 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.009684/11.66, allocations: 5.626 MB / 3.772 GB, free: 50.71 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002848/11.67, allocations: 0.7296 MB / 3.773 GB, free: 50.66 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006162/11.67, allocations: 250.4 kB / 3.773 GB, free: 50.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05067/11.72, allocations: 15.77 MB / 3.789 GB, free: 41.15 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/11.72, allocations: 43.47 kB / 3.789 GB, free: 41.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=45): time 2.966e-06/11.72, allocations: 5.719 kB / 3.789 GB, free: 41.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49): time 0.008316/11.72, allocations: 2.017 MB / 3.791 GB, free: 40.63 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/11.72, allocations: 162.4 kB / 3.791 GB, free: 40.45 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009796/11.73, allocations: 0.5355 MB / 3.792 GB, free: 40.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000138/11.73, allocations: 37.92 kB / 3.792 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002654/11.73, allocations: 420.7 kB / 3.792 GB, free: 40 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001932/11.73, allocations: 170.4 kB / 3.792 GB, free: 39.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.979e-05/11.73, allocations: 14.66 kB / 3.792 GB, free: 39.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.218e-05/11.73, allocations: 340.6 kB / 3.792 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005927/11.73, allocations: 237.5 kB / 3.793 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007849/11.73, allocations: 0.5647 MB / 3.793 GB, free: 39.18 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007419/11.73, allocations: 330.4 kB / 3.794 GB, free: 39.18 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/11.73, allocations: 5.969 kB / 3.794 GB, free: 39.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002046/11.73, allocations: 0.8373 MB / 3.794 GB, free: 39.12 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/11.73, allocations: 10.16 kB / 3.794 GB, free: 39.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/11.73, allocations: 13.31 kB / 3.794 GB, free: 39.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004419/11.73, allocations: 68.45 kB / 3.794 GB, free: 39.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002552/11.73, allocations: 309.5 kB / 3.795 GB, free: 39.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001756/11.74, allocations: 1.989 MB / 3.797 GB, free: 37.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/11.74, allocations: 83.95 kB / 3.797 GB, free: 37.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/11.74, allocations: 45.8 kB / 3.797 GB, free: 37.26 MB / 0.5105 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.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.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.0002864/11.74, allocations: 163.8 kB / 3.797 GB, free: 37.15 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/11.74, allocations: 66.59 kB / 3.797 GB, free: 37.12 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003709/11.74, allocations: 2.568 MB / 3.8 GB, free: 36.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.553e-05/11.74, allocations: 35.97 kB / 3.8 GB, free: 36.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/11.74, allocations: 3.562 kB / 3.8 GB, free: 36.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/11.74, allocations: 6.047 kB / 3.8 GB, free: 36.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006154/11.75, allocations: 3.763 MB / 3.803 GB, free: 36.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/11.75, allocations: 0 / 3.803 GB, free: 36.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00221/11.75, allocations: 240.1 kB / 3.804 GB, free: 36.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000562/11.75, allocations: 91.66 kB / 3.804 GB, free: 36.29 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001137/11.75, allocations: 11.66 kB / 3.804 GB, free: 36.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/11.75, allocations: 2.001 MB / 3.806 GB, free: 34.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/11.75, allocations: 3.875 kB / 3.806 GB, free: 34.45 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003673/11.76, allocations: 2.227 MB / 3.808 GB, free: 34.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007837/11.76, allocations: 328.5 kB / 3.808 GB, free: 33.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/11.76, allocations: 16.42 kB / 3.808 GB, free: 33.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/11.76, allocations: 63.47 kB / 3.808 GB, free: 33.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/11.76, allocations: 57.44 kB / 3.808 GB, free: 33.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.57e-05/11.76, allocations: 18.81 kB / 3.808 GB, free: 33.88 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001094/11.76, allocations: 0.5442 MB / 3.809 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.41e-07/11.76, allocations: 0 / 3.809 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006243/11.77, allocations: 1.136 MB / 3.81 GB, free: 33.63 MB / 0.5105 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: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.01443/11.78, allocations: 4.319 MB / 3.814 GB, free: 32.49 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003283/11.78, allocations: 1.002 MB / 3.815 GB, free: 32.47 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/11.78, allocations: 3.5 kB / 3.815 GB, free: 32.47 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002128/11.79, allocations: 0.7533 MB / 3.816 GB, free: 32.47 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003575/11.79, allocations: 367 kB / 3.816 GB, free: 32.46 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009211/11.8, allocations: 2.496 MB / 3.819 GB, free: 31.83 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007509/11.8, allocations: 1.186 MB / 3.82 GB, free: 31.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008156/11.8, allocations: 447 kB / 3.82 GB, free: 31.11 MB / 0.5105 GB Notification: Performance of SimCode: time 1.312e-06/11.8, allocations: 0 / 3.82 GB, free: 31.11 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.977/15.78, allocations: 46.88 MB / 3.866 GB, free: 27.9 MB / 0.5105 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