Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_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.002406/0.002412, allocations: 182.8 kB / 16.4 MB, free: 5.75 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.432/2.432, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001168/0.001168, allocations: 96.45 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006018/0.000602, allocations: 15.98 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4758/0.4765, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.0685/0.5451, allocations: 27.27 MB / 401.9 MB, free: 21.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03324/0.5784, allocations: 13.36 MB / 415.3 MB, free: 8.125 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006092/0.5791, allocations: 4 kB / 415.3 MB, free: 8.121 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001513/0.5806, allocations: 235 kB / 415.5 MB, free: 7.891 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001328/0.582, allocations: 247.3 kB / 415.7 MB, free: 7.648 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03102/0.6131, allocations: 4.531 MB / 420.3 MB, free: 3.121 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001673/0.6148, allocations: 0.5583 MB / 420.8 MB, free: 2.562 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003307/0.6152, allocations: 77.02 kB / 420.9 MB, free: 2.484 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01374/0.6289, allocations: 3.278 MB / 424.2 MB, free: 15.2 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007958/0.6298, allocations: 195.3 kB / 424.4 MB, free: 15.01 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.63, allocations: 23.94 kB / 424.4 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02606/0.6561, allocations: 5.931 MB / 430.3 MB, free: 9.051 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003439/0.6565, allocations: 87.7 kB / 430.4 MB, free: 8.965 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002942/0.6568, allocations: 105.6 kB / 430.5 MB, free: 8.855 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.667, allocations: 2.576 MB / 433.1 MB, free: 6.273 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.6671, allocations: 0 / 433.1 MB, free: 6.273 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.859e-06/0.6671, allocations: 3.984 kB / 433.1 MB, free: 6.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.6671, allocations: 4 kB / 433.1 MB, free: 6.266 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.004643/0.6718, allocations: 0.9084 MB / 434 MB, free: 5.309 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.422e-05/0.6719, allocations: 12.03 kB / 434 MB, free: 5.297 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002411/0.6722, allocations: 74.47 kB / 434.1 MB, free: 5.215 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003306/0.6755, allocations: 159.4 kB / 434.2 MB, free: 5.059 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009888/0.6765, allocations: 315.5 kB / 434.6 MB, free: 4.711 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.117e-05/0.6766, allocations: 20.66 kB / 434.6 MB, free: 4.688 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.6768, allocations: 32 kB / 434.6 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003238/0.68, allocations: 0.5229 MB / 435.1 MB, free: 4.098 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.109e-05/0.6801, allocations: 3.906 kB / 435.1 MB, free: 4.094 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.6803, allocations: 12 kB / 435.1 MB, free: 4.082 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.6803, allocations: 8 kB / 435.2 MB, free: 4.074 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.6821, allocations: 325.9 kB / 435.5 MB, free: 3.754 MB / 314.7 MB 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.007367/0.6895, allocations: 2.569 MB / 438 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.6911, allocations: 278.1 kB / 438.3 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.174/0.8651, allocations: 31.2 MB / 469.5 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.747e-05/0.8652, allocations: 42.55 kB / 469.6 MB, free: 13.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 9.649e-06/0.8653, allocations: 0 / 469.6 MB, free: 13.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.008733/0.874, allocations: 1.219 MB / 470.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/0.8742, allocations: 55.41 kB / 470.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006582/0.8748, allocations: 266.5 kB / 471.1 MB, free: 12.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.875, allocations: 29.7 kB / 471.1 MB, free: 12.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.8753, allocations: 242.5 kB / 471.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002194/0.8756, allocations: 114.4 kB / 471.5 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.302e-05/0.8756, allocations: 8 kB / 471.5 MB, free: 11.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.8759, allocations: 326.8 kB / 471.8 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004625/0.8763, allocations: 92.83 kB / 471.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005935/0.877, allocations: 210.9 kB / 472.1 MB, free: 11.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006211/0.8776, allocations: 127.9 kB / 472.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.8777, allocations: 0 / 472.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001996/0.8797, allocations: 403.5 kB / 472.6 MB, free: 10.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.954e-05/0.8798, allocations: 11.89 kB / 472.6 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.8798, allocations: 4 kB / 472.6 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006991/0.8805, allocations: 70.06 kB / 472.7 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009641/0.8815, allocations: 91.89 kB / 472.8 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/0.8841, allocations: 2.43 MB / 475.2 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/0.8847, allocations: 24.33 kB / 475.2 MB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-05/0.8847, allocations: 20 kB / 475.3 MB, free: 7.781 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (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 (45): * Single equations (assignments): 42 * 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: 2 * 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: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003184/0.8851, allocations: 165.6 kB / 475.4 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.8852, allocations: 31.62 kB / 475.4 MB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001829/0.887, allocations: 0.8669 MB / 476.3 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.543e-05/0.8871, allocations: 7.984 kB / 476.3 MB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.8871, allocations: 3.953 kB / 476.3 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001566/0.8887, allocations: 1.049 MB / 477.4 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.8916, allocations: 1.481 MB / 478.9 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/0.8917, allocations: 0 / 478.9 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/0.8921, allocations: 59.91 kB / 478.9 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006315/0.8928, allocations: 84.64 kB / 479 MB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.8929, allocations: 8 kB / 479 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006465/0.8935, allocations: 0.5876 MB / 479.6 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.8936, allocations: 32 / 479.6 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.8953, allocations: 0.8313 MB / 480.4 MB, free: 2.379 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000234/0.8956, allocations: 128.5 kB / 480.5 MB, free: 2.234 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.437e-05/0.8957, allocations: 15.98 kB / 480.6 MB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006801/0.8964, allocations: 44 kB / 480.6 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.8965, allocations: 15.97 kB / 480.6 MB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.583e-05/0.8965, allocations: 15.98 kB / 480.6 MB, free: 2.145 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004194/0.897, allocations: 231.1 kB / 480.9 MB, free: 1.922 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.897, allocations: 4 kB / 480.9 MB, free: 1.918 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003328/0.9003, allocations: 0.8551 MB / 481.7 MB, free: 1.062 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.008517/0.9089, allocations: 2.231 MB / 484 MB, free: 14.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.9104, allocations: 488.5 kB / 484.4 MB, free: 14.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.9105, allocations: 0 / 484.4 MB, free: 14.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006259/0.9111, allocations: 248.5 kB / 484.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/0.9129, allocations: 182.5 kB / 484.9 MB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00843/0.9214, allocations: 5.023 MB / 489.9 MB, free: 8.738 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005642/0.922, allocations: 0.8327 MB / 490.7 MB, free: 7.879 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003348/0.9224, allocations: 143.4 kB / 490.8 MB, free: 7.738 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.9224, allocations: 0 / 490.8 MB, free: 7.738 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.975/4.898, allocations: 27.2 MB / 0.5059 GB, free: 130 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat