Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001114/0.001114, allocations: 181.4 kB / 17.01 MB, free: 5.125 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.57/1.57, allocations: 205.4 MB / 223.1 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.0009246/0.0009249, allocations: 84.92 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002956, allocations: 8 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2817, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.125/6.407, allocations: 2.742 GB / 3.109 GB, free: 53.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/6.408, allocations: 100.2 kB / 3.109 GB, free: 53.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.433/7.84, allocations: 428.2 MB / 3.527 GB, free: 50.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.803e-06/7.84, allocations: 0 / 3.527 GB, free: 50.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.582e-05/7.84, allocations: 7.938 kB / 3.527 GB, free: 50.04 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.004233/7.844, allocations: 1.282 MB / 3.528 GB, free: 49.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/7.845, allocations: 11.19 kB / 3.528 GB, free: 49.51 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.48e-05/7.845, allocations: 71.36 kB / 3.528 GB, free: 49.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/7.846, allocations: 162.2 kB / 3.529 GB, free: 49.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/7.846, allocations: 316.2 kB / 3.529 GB, free: 49.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.101e-05/7.846, allocations: 34.62 kB / 3.529 GB, free: 49.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.954e-05/7.846, allocations: 33.12 kB / 3.529 GB, free: 49.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/7.848, allocations: 0.5639 MB / 3.53 GB, free: 49.13 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/7.848, allocations: 1.094 kB / 3.53 GB, free: 49.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.917e-05/7.848, allocations: 14.81 kB / 3.53 GB, free: 49.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/7.848, allocations: 11.44 kB / 3.53 GB, free: 49.13 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/7.849, allocations: 0.534 MB / 3.53 GB, free: 49.13 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.002655/7.852, allocations: 2.629 MB / 3.533 GB, free: 47.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/7.853, allocations: 486.8 kB / 3.533 GB, free: 47.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000709/7.854, allocations: 0.5653 MB / 3.534 GB, free: 46.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/7.854, allocations: 39.73 kB / 3.534 GB, free: 46.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=30): time 1.834e-06/7.854, allocations: 0 / 3.534 GB, free: 46.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=34): time 0.004435/7.859, allocations: 1.596 MB / 3.535 GB, free: 46.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/7.859, allocations: 55.31 kB / 3.535 GB, free: 46.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/7.859, allocations: 226.3 kB / 3.536 GB, free: 46.08 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/7.859, allocations: 29.2 kB / 3.536 GB, free: 46.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.21e-05/7.859, allocations: 191.4 kB / 3.536 GB, free: 45.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.229e-05/7.859, allocations: 109.2 kB / 3.536 GB, free: 45.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.568e-05/7.859, allocations: 3.875 kB / 3.536 GB, free: 45.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.579e-05/7.859, allocations: 346.3 kB / 3.536 GB, free: 45.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003486/7.86, allocations: 151.7 kB / 3.536 GB, free: 45.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003685/7.86, allocations: 243.6 kB / 3.537 GB, free: 45.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003521/7.86, allocations: 175 kB / 3.537 GB, free: 45.44 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/7.86, allocations: 0 / 3.537 GB, free: 45.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00107/7.861, allocations: 0.5333 MB / 3.537 GB, free: 45.37 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/7.861, allocations: 3.875 kB / 3.537 GB, free: 45.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/7.861, allocations: 3.625 kB / 3.537 GB, free: 45.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004743/7.862, allocations: 122.4 kB / 3.537 GB, free: 45.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/7.862, allocations: 95.25 kB / 3.537 GB, free: 45.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/7.864, allocations: 2.42 MB / 3.54 GB, free: 43.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004026/7.864, allocations: 63.16 kB / 3.54 GB, free: 43.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.129e-05/7.864, allocations: 13.56 kB / 3.54 GB, free: 43.05 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.0001813/7.864, allocations: 161.4 kB / 3.54 GB, free: 42.94 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.073e-05/7.864, allocations: 29.09 kB / 3.54 GB, free: 42.93 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/7.866, allocations: 1.37 MB / 3.541 GB, free: 42.76 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/7.866, allocations: 15.3 kB / 3.541 GB, free: 42.76 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/7.866, allocations: 3.938 kB / 3.541 GB, free: 42.76 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001272/7.867, allocations: 1.462 MB / 3.543 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/7.87, allocations: 2.14 MB / 3.545 GB, free: 41.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/7.87, allocations: 0.9375 kB / 3.545 GB, free: 41.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004015/7.87, allocations: 105.3 kB / 3.545 GB, free: 41.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003557/7.87, allocations: 73.36 kB / 3.545 GB, free: 41.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/7.87, allocations: 15.3 kB / 3.545 GB, free: 41.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002746/7.871, allocations: 0.5983 MB / 3.546 GB, free: 41.28 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/7.871, allocations: 0 / 3.546 GB, free: 41.28 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/7.872, allocations: 1.305 MB / 3.547 GB, free: 41.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/7.872, allocations: 177.8 kB / 3.547 GB, free: 40.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/7.872, allocations: 9.875 kB / 3.547 GB, free: 40.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003082/7.873, allocations: 40.36 kB / 3.547 GB, free: 40.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.759e-05/7.873, allocations: 42.2 kB / 3.547 GB, free: 40.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/7.873, allocations: 13.31 kB / 3.547 GB, free: 40.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002136/7.873, allocations: 228.9 kB / 3.547 GB, free: 40.85 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/7.873, allocations: 0 / 3.547 GB, free: 40.85 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004008/7.877, allocations: 0.8926 MB / 3.548 GB, free: 40.73 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.008176/7.885, allocations: 3.079 MB / 3.551 GB, free: 39.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/7.887, allocations: 0.6715 MB / 3.552 GB, free: 39.73 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/7.887, allocations: 1.641 kB / 3.552 GB, free: 39.73 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005618/7.887, allocations: 421.2 kB / 3.552 GB, free: 39.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/7.888, allocations: 191.9 kB / 3.553 GB, free: 39.71 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007088/7.895, allocations: 5.013 MB / 3.557 GB, free: 36.74 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/7.896, allocations: 0.8826 MB / 3.558 GB, free: 36.04 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004232/7.896, allocations: 152.1 kB / 3.559 GB, free: 36.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002227/7.896, allocations: 190 kB / 3.559 GB, free: 36.03 MB / 442.7 MB Notification: Performance of SimCode: time 7.12e-07/7.896, allocations: 1.531 kB / 3.559 GB, free: 36.03 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05918/7.956, allocations: 36.95 MB / 3.595 GB, free: 34.54 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/7.956, allocations: 220.9 kB / 3.595 GB, free: 34.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.108/11.06, allocations: 0 / 3.595 GB, free: 34.3 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph.fmu > Modelica_3.2.3_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_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat