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.001478/0.001477, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 87.44 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.301e-05/3.313e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3609, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.438/8.799, allocations: 2.741 GB / 3.095 GB, free: 85.46 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003582/8.8, allocations: 101.6 kB / 3.095 GB, free: 85.46 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.067/10.87, allocations: 423.1 MB / 3.508 GB, free: 48.57 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.653e-06/10.87, allocations: 1 kB / 3.508 GB, free: 48.57 MB / 427.1 MB Notification: Performance of Transformations before backend: time 2.592e-05/10.87, allocations: 7.906 kB / 3.508 GB, free: 48.57 MB / 427.1 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.005718/10.87, allocations: 1.255 MB / 3.509 GB, free: 47.8 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/10.87, allocations: 14.78 kB / 3.509 GB, free: 47.8 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00203/10.87, allocations: 158.6 kB / 3.51 GB, free: 47.79 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006697/10.88, allocations: 314.9 kB / 3.51 GB, free: 47.51 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.44e-05/10.88, allocations: 21.36 kB / 3.51 GB, free: 47.5 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.376e-05/10.88, allocations: 17.94 kB / 3.51 GB, free: 47.5 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007284/10.88, allocations: 303.2 kB / 3.51 GB, free: 47.4 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007195/10.88, allocations: 362.6 kB / 3.511 GB, free: 47.2 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/10.88, allocations: 3.375 kB / 3.511 GB, free: 47.2 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.477e-05/10.88, allocations: 3.938 kB / 3.511 GB, free: 47.2 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/10.88, allocations: 7.875 kB / 3.511 GB, free: 47.2 MB / 427.1 MB 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.004101/10.88, allocations: 2.55 MB / 3.513 GB, free: 45.02 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006511/10.88, allocations: 234.8 kB / 3.513 GB, free: 44.91 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002538/10.88, allocations: 125.7 kB / 3.513 GB, free: 44.86 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001076/10.88, allocations: 0.5551 MB / 3.514 GB, free: 44.37 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/10.88, allocations: 42.19 kB / 3.514 GB, free: 44.33 MB / 427.1 MB Notification: Performance of pre-optimization done (n=29): time 2.885e-06/10.88, allocations: 0 / 3.514 GB, free: 44.33 MB / 427.1 MB Notification: Performance of matching and sorting (n=33): time 0.003956/10.89, allocations: 0.9871 MB / 3.515 GB, free: 43.79 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.678e-05/10.89, allocations: 58.56 kB / 3.515 GB, free: 43.73 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/10.89, allocations: 198.9 kB / 3.515 GB, free: 43.6 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/10.89, allocations: 29.64 kB / 3.515 GB, free: 43.57 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/10.89, allocations: 239.8 kB / 3.515 GB, free: 43.35 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.209e-05/10.89, allocations: 114 kB / 3.516 GB, free: 43.26 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/10.89, allocations: 0 / 3.516 GB, free: 43.26 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.039e-05/10.89, allocations: 325.6 kB / 3.516 GB, free: 42.95 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/10.89, allocations: 97.59 kB / 3.516 GB, free: 42.9 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/10.89, allocations: 189.8 kB / 3.516 GB, free: 42.74 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004483/10.89, allocations: 125.7 kB / 3.516 GB, free: 42.7 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.279e-06/10.89, allocations: 0 / 3.516 GB, free: 42.7 MB / 427.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001236/10.89, allocations: 396 kB / 3.517 GB, free: 42.51 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/10.89, allocations: 8.938 kB / 3.517 GB, free: 42.51 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/10.89, allocations: 6.5 kB / 3.517 GB, free: 42.51 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003912/10.89, allocations: 79.08 kB / 3.517 GB, free: 42.46 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006352/10.89, allocations: 94.47 kB / 3.517 GB, free: 42.46 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/10.89, allocations: 2.331 MB / 3.519 GB, free: 40.13 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000812/10.89, allocations: 64.64 kB / 3.519 GB, free: 40.12 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/10.89, allocations: 18.48 kB / 3.519 GB, free: 40.12 MB / 427.1 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 (volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete 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.0001537/10.89, allocations: 119.2 kB / 3.519 GB, free: 40 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008883/10.9, allocations: 305.4 kB / 3.52 GB, free: 39.86 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.821e-05/10.9, allocations: 25.25 kB / 3.52 GB, free: 39.84 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/10.9, allocations: 1.109 MB / 3.521 GB, free: 39.32 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.359e-05/10.9, allocations: 19.22 kB / 3.521 GB, free: 39.31 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/10.9, allocations: 0 / 3.521 GB, free: 39.31 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001441/10.9, allocations: 1.249 MB / 3.522 GB, free: 38.47 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/10.9, allocations: 1.782 MB / 3.524 GB, free: 37.49 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-06/10.9, allocations: 0 / 3.524 GB, free: 37.49 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006499/10.9, allocations: 88.95 kB / 3.524 GB, free: 37.48 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003368/10.9, allocations: 60.27 kB / 3.524 GB, free: 37.46 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/10.9, allocations: 6.688 kB / 3.524 GB, free: 37.46 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004273/10.9, allocations: 0.6266 MB / 3.524 GB, free: 36.88 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/10.9, allocations: 0 / 3.524 GB, free: 36.88 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/10.9, allocations: 1.008 MB / 3.525 GB, free: 36.36 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/10.9, allocations: 144.3 kB / 3.526 GB, free: 36.22 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.97e-05/10.9, allocations: 6.844 kB / 3.526 GB, free: 36.22 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005667/10.91, allocations: 38.2 kB / 3.526 GB, free: 36.21 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/10.91, allocations: 39.83 kB / 3.526 GB, free: 36.2 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-05/10.91, allocations: 11.22 kB / 3.526 GB, free: 36.2 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002936/10.91, allocations: 211.8 kB / 3.526 GB, free: 36.07 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.31e-07/10.91, allocations: 3.875 kB / 3.526 GB, free: 36.07 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.004498/10.91, allocations: 0.86 MB / 3.527 GB, free: 35.91 MB / 427.1 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: 8 ($cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,volume.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.01035/10.92, allocations: 2.863 MB / 3.53 GB, free: 34.31 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/10.92, allocations: 0.5246 MB / 3.53 GB, free: 33.81 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/10.92, allocations: 4 kB / 3.53 GB, free: 33.8 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005858/10.92, allocations: 311.9 kB / 3.53 GB, free: 33.52 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/10.92, allocations: 157.8 kB / 3.53 GB, free: 33.41 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005102/10.93, allocations: 1.223 MB / 3.532 GB, free: 32.34 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003741/10.93, allocations: 0.8624 MB / 3.533 GB, free: 31.52 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003099/10.93, allocations: 164.8 kB / 3.533 GB, free: 31.38 MB / 427.1 MB Notification: Performance of SimCode: time 1.473e-06/10.93, allocations: 4 kB / 3.533 GB, free: 31.37 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.714/14.64, allocations: 29.08 MB / 3.561 GB, free: 3.637 MB / 427.1 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