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.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) 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.WaterIF97_ph,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_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.001498/0.001498, allocations: 185.9 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 1.987/1.987, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001146/0.001146, allocations: 89.61 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003949/0.0003946, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3402, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.129/8.469, allocations: 2.742 GB / 3.108 GB, free: 52.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003561/8.47, allocations: 99.8 kB / 3.108 GB, free: 52.31 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314/10.78, allocations: 428.2 MB / 3.526 GB, free: 50.16 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.767e-06/10.78, allocations: 2.188 kB / 3.526 GB, free: 50.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.586e-05/10.78, allocations: 9.062 kB / 3.526 GB, free: 50.16 MB / 442.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.005701/10.79, allocations: 1.282 MB / 3.527 GB, free: 49.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/10.79, allocations: 9.25 kB / 3.527 GB, free: 49.61 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001711/10.79, allocations: 64.97 kB / 3.527 GB, free: 49.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/10.79, allocations: 167.3 kB / 3.527 GB, free: 49.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007016/10.79, allocations: 310.4 kB / 3.528 GB, free: 49.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.289e-05/10.79, allocations: 28.88 kB / 3.528 GB, free: 49.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.703e-05/10.79, allocations: 34.16 kB / 3.528 GB, free: 49.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/10.79, allocations: 0.5638 MB / 3.528 GB, free: 49.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/10.79, allocations: 0.8438 kB / 3.528 GB, free: 49.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.05e-05/10.79, allocations: 15 kB / 3.528 GB, free: 49.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/10.79, allocations: 7.875 kB / 3.528 GB, free: 49.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002671/10.8, allocations: 0.5431 MB / 3.529 GB, free: 49.23 MB / 442.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.004399/10.8, allocations: 2.63 MB / 3.531 GB, free: 47.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/10.8, allocations: 491.1 kB / 3.532 GB, free: 47.27 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001096/10.81, allocations: 0.5534 MB / 3.532 GB, free: 46.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/10.81, allocations: 37.56 kB / 3.532 GB, free: 46.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=30): time 2.264e-06/10.81, allocations: 0 / 3.532 GB, free: 46.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=34): time 0.007971/10.81, allocations: 1.605 MB / 3.534 GB, free: 46.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/10.81, allocations: 54.78 kB / 3.534 GB, free: 46.28 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003332/10.81, allocations: 221.1 kB / 3.534 GB, free: 46.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.19e-05/10.81, allocations: 36.45 kB / 3.534 GB, free: 46.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/10.81, allocations: 248.8 kB / 3.535 GB, free: 45.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/10.81, allocations: 114.1 kB / 3.535 GB, free: 45.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/10.81, allocations: 3.75 kB / 3.535 GB, free: 45.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.19e-05/10.81, allocations: 324 kB / 3.535 GB, free: 45.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006736/10.82, allocations: 150.1 kB / 3.535 GB, free: 45.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000747/10.82, allocations: 253.2 kB / 3.535 GB, free: 45.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007367/10.82, allocations: 176.2 kB / 3.536 GB, free: 45.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/10.82, allocations: 0 / 3.536 GB, free: 45.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002107/10.82, allocations: 0.5145 MB / 3.536 GB, free: 45.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/10.82, allocations: 7.188 kB / 3.536 GB, free: 45.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/10.82, allocations: 0 / 3.536 GB, free: 45.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007968/10.82, allocations: 127.2 kB / 3.536 GB, free: 45.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006688/10.82, allocations: 93.81 kB / 3.536 GB, free: 45.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002142/10.82, allocations: 2.421 MB / 3.539 GB, free: 43.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007011/10.82, allocations: 61.2 kB / 3.539 GB, free: 43.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.022e-05/10.82, allocations: 13 kB / 3.539 GB, free: 43.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,volume.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002743/10.82, allocations: 166 kB / 3.539 GB, free: 42.97 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-05/10.82, allocations: 33 kB / 3.539 GB, free: 42.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002836/10.83, allocations: 1.369 MB / 3.54 GB, free: 42.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.678e-05/10.83, allocations: 15.92 kB / 3.54 GB, free: 42.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/10.83, allocations: 0 / 3.54 GB, free: 42.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002451/10.83, allocations: 1.462 MB / 3.542 GB, free: 42.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003984/10.83, allocations: 2.138 MB / 3.544 GB, free: 41.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/10.83, allocations: 3.062 kB / 3.544 GB, free: 41.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007449/10.83, allocations: 107.8 kB / 3.544 GB, free: 41.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005617/10.83, allocations: 74.67 kB / 3.544 GB, free: 41.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.363e-05/10.83, allocations: 15.23 kB / 3.544 GB, free: 41.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003967/10.84, allocations: 0.5918 MB / 3.544 GB, free: 41.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/10.84, allocations: 3.562 kB / 3.545 GB, free: 41.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002801/10.84, allocations: 1.308 MB / 3.546 GB, free: 41.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/10.84, allocations: 170.9 kB / 3.546 GB, free: 40.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.113e-05/10.84, allocations: 6.562 kB / 3.546 GB, free: 40.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000558/10.84, allocations: 48.7 kB / 3.546 GB, free: 40.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/10.84, allocations: 38.02 kB / 3.546 GB, free: 40.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.13e-05/10.84, allocations: 13.52 kB / 3.546 GB, free: 40.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003408/10.84, allocations: 233.7 kB / 3.546 GB, free: 40.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/10.84, allocations: 0 / 3.546 GB, free: 40.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004469/10.84, allocations: 0.8928 MB / 3.547 GB, free: 40.76 MB / 442.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: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.01122/10.86, allocations: 3.079 MB / 3.55 GB, free: 39.89 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00211/10.86, allocations: 0.6678 MB / 3.551 GB, free: 39.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/10.86, allocations: 0 / 3.551 GB, free: 39.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/10.86, allocations: 425.6 kB / 3.551 GB, free: 39.76 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/10.86, allocations: 191.6 kB / 3.551 GB, free: 39.75 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/10.87, allocations: 5.045 MB / 3.556 GB, free: 36.75 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/10.87, allocations: 0.8817 MB / 3.557 GB, free: 36.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003789/10.87, allocations: 192.9 kB / 3.557 GB, free: 36.04 MB / 442.7 MB Notification: Performance of SimCode: time 1.162e-06/10.87, allocations: 0 / 3.557 GB, free: 36.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.595/14.47, allocations: 29.49 MB / 3.586 GB, free: 33.99 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat