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_pT.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_pT,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",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.002298/0.002297, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.926/1.926, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001178/0.001178, allocations: 97.97 kB / 270.9 MB, free: 8.371 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.5471/0.5471, allocations: 43.55 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006403/0.0006402, allocations: 16 kB / 431.5 MB, free: 6.051 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1295, allocations: 58.84 MB / 490.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.303/8.432, allocations: 2.794 GB / 3.273 GB, free: 21.01 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003441/8.433, allocations: 96.75 kB / 3.273 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.852/11.28, allocations: 0.4924 GB / 3.765 GB, free: 46.36 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.937e-06/11.28, allocations: 0 / 3.765 GB, free: 46.36 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.219e-05/11.28, allocations: 20.97 kB / 3.765 GB, free: 46.36 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.009467/11.29, allocations: 1.779 MB / 3.767 GB, free: 45.59 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/11.29, allocations: 12.88 kB / 3.767 GB, free: 45.59 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003751/11.29, allocations: 112.2 kB / 3.767 GB, free: 45.55 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0026/11.3, allocations: 229.7 kB / 3.767 GB, free: 45.51 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002088/11.3, allocations: 0.5762 MB / 3.768 GB, free: 45.27 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/11.3, allocations: 106.6 kB / 3.768 GB, free: 45.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/11.3, allocations: 65.95 kB / 3.768 GB, free: 45.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00322/11.3, allocations: 1.073 MB / 3.769 GB, free: 44.87 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.077e-05/11.3, allocations: 4.031 kB / 3.769 GB, free: 44.87 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/11.3, allocations: 29.75 kB / 3.769 GB, free: 44.87 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.837e-05/11.3, allocations: 48.55 kB / 3.769 GB, free: 44.86 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002769/11.31, allocations: 0.8071 MB / 3.77 GB, free: 44.86 MB / 0.5105 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.008799/11.32, allocations: 5.547 MB / 3.775 GB, free: 40.99 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/11.32, allocations: 0.5281 MB / 3.776 GB, free: 40.92 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1524/11.47, allocations: 47.19 MB / 3.822 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.588e-05/11.47, allocations: 45.28 kB / 3.822 GB, free: 27.87 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=39): time 3.326e-06/11.47, allocations: 0 / 3.822 GB, free: 27.87 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44): time 0.009242/11.48, allocations: 2.109 MB / 3.824 GB, free: 27.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000141/11.48, allocations: 191.7 kB / 3.824 GB, free: 27.08 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/11.48, allocations: 0.5599 MB / 3.825 GB, free: 26.95 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000137/11.48, allocations: 32.83 kB / 3.825 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/11.48, allocations: 428.2 kB / 3.825 GB, free: 26.63 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/11.48, allocations: 157 kB / 3.825 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.165e-05/11.48, allocations: 17.06 kB / 3.825 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002033/11.48, allocations: 338.8 kB / 3.826 GB, free: 26.23 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006102/11.48, allocations: 228.4 kB / 3.826 GB, free: 26.23 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007911/11.48, allocations: 0.5842 MB / 3.827 GB, free: 25.77 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000764/11.48, allocations: 337.7 kB / 3.827 GB, free: 25.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/11.48, allocations: 5.188 kB / 3.827 GB, free: 25.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00209/11.49, allocations: 0.8526 MB / 3.828 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/11.49, allocations: 12.78 kB / 3.828 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/11.49, allocations: 14.75 kB / 3.828 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006754/11.49, allocations: 267.6 kB / 3.828 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002337/11.49, allocations: 284.8 kB / 3.828 GB, free: 25.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/11.5, allocations: 2.021 MB / 3.83 GB, free: 23.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/11.5, allocations: 60.08 kB / 3.83 GB, free: 23.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.829e-05/11.5, allocations: 46.92 kB / 3.83 GB, free: 23.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (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,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * 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 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006248/11.5, allocations: 276 kB / 3.831 GB, free: 23.68 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/11.5, allocations: 75.83 kB / 3.831 GB, free: 23.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003233/11.5, allocations: 2.023 MB / 3.833 GB, free: 23.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.365e-05/11.5, allocations: 24.78 kB / 3.833 GB, free: 23.38 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/11.5, allocations: 6.438 kB / 3.833 GB, free: 23.38 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/11.5, allocations: 3.141 kB / 3.833 GB, free: 23.38 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005378/11.51, allocations: 2.992 MB / 3.836 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/11.51, allocations: 3.969 kB / 3.836 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001758/11.51, allocations: 180.9 kB / 3.836 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003165/11.51, allocations: 306.6 kB / 3.836 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/11.51, allocations: 14.98 kB / 3.836 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002401/11.52, allocations: 2.083 MB / 3.838 GB, free: 21.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/11.52, allocations: 0 / 3.838 GB, free: 21.06 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003177/11.52, allocations: 1.955 MB / 3.84 GB, free: 20.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007245/11.52, allocations: 299.3 kB / 3.84 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/11.52, allocations: 11.28 kB / 3.84 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008898/11.52, allocations: 28.17 kB / 3.84 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/11.52, allocations: 38.78 kB / 3.84 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.309e-05/11.52, allocations: 21.02 kB / 3.84 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001091/11.52, allocations: 0.5631 MB / 3.841 GB, free: 20.37 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.11e-07/11.52, allocations: 3.5 kB / 3.841 GB, free: 20.37 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006406/11.53, allocations: 1.138 MB / 3.842 GB, free: 20.22 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.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01572/11.54, allocations: 4.116 MB / 3.846 GB, free: 34.87 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002889/11.55, allocations: 0.8915 MB / 3.847 GB, free: 34.84 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/11.55, allocations: 4 kB / 3.847 GB, free: 34.84 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001847/11.55, allocations: 0.6199 MB / 3.848 GB, free: 34.84 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003459/11.55, allocations: 379 kB / 3.848 GB, free: 34.82 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01866/11.57, allocations: 13.69 MB / 3.861 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008748/11.57, allocations: 1.104 MB / 3.862 GB, free: 23.93 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000705/11.57, allocations: 389 kB / 3.863 GB, free: 23.64 MB / 0.5417 GB Notification: Performance of SimCode: time 1.363e-06/11.57, allocations: 3.562 kB / 3.863 GB, free: 23.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.103/15.68, allocations: 44.08 MB / 3.906 GB, free: 13.22 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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_pT_res.mat does not exist to compare? outputFormat=mat