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.001519/0.001519, allocations: 179.4 kB / 8.364 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.137/2.137, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.002153/0.002153, allocations: 93 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.592e-05/2.584e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3546, allocations: 47.56 MB / 362.4 MB, free: 45.76 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.432/8.787, allocations: 2.741 GB / 3.095 GB, free: 85.48 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005249/8.787, allocations: 94.73 kB / 3.095 GB, free: 85.48 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.176/10.96, allocations: 423.1 MB / 3.508 GB, free: 48.62 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.545e-06/10.96, allocations: 0 / 3.508 GB, free: 48.62 MB / 427.1 MB Notification: Performance of Transformations before backend: time 3.106e-05/10.96, allocations: 7.312 kB / 3.508 GB, free: 48.62 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.005671/10.97, allocations: 1.219 MB / 3.509 GB, free: 47.85 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/10.97, allocations: 7.906 kB / 3.509 GB, free: 47.85 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/10.97, allocations: 159.7 kB / 3.51 GB, free: 47.83 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007269/10.97, allocations: 325.4 kB / 3.51 GB, free: 47.55 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/10.97, allocations: 10.75 kB / 3.51 GB, free: 47.55 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.744e-05/10.97, allocations: 19.38 kB / 3.51 GB, free: 47.55 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006705/10.97, allocations: 246.7 kB / 3.51 GB, free: 47.47 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007686/10.97, allocations: 359.3 kB / 3.511 GB, free: 47.26 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/10.97, allocations: 3.391 kB / 3.511 GB, free: 47.26 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.113e-05/10.97, allocations: 7.688 kB / 3.511 GB, free: 47.26 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/10.97, allocations: 7.5 kB / 3.511 GB, free: 47.26 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.105/11.08, allocations: 33.18 MB / 3.543 GB, free: 19.36 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004397/11.08, allocations: 194.4 kB / 3.543 GB, free: 19.16 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/11.08, allocations: 96.84 kB / 3.543 GB, free: 19.07 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.103/11.18, allocations: 30.89 MB / 3.573 GB, free: 0.6523 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.87e-05/11.18, allocations: 44.05 kB / 3.573 GB, free: 0.6016 MB / 443.1 MB Notification: Performance of pre-optimization done (n=25): time 3.617e-06/11.18, allocations: 0 / 3.573 GB, free: 0.6016 MB / 443.1 MB Notification: Performance of matching and sorting (n=29): time 0.3222/11.5, allocations: 0.9014 MB / 3.574 GB, free: 74.95 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/11.5, allocations: 58.16 kB / 3.574 GB, free: 74.89 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/11.51, allocations: 205.5 kB / 3.575 GB, free: 74.79 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/11.51, allocations: 25.7 kB / 3.575 GB, free: 74.76 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/11.51, allocations: 257.8 kB / 3.575 GB, free: 74.57 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.273e-05/11.51, allocations: 101.7 kB / 3.575 GB, free: 74.52 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.143e-05/11.51, allocations: 0 / 3.575 GB, free: 74.52 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/11.51, allocations: 328.1 kB / 3.575 GB, free: 74.21 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/11.51, allocations: 81.56 kB / 3.575 GB, free: 74.21 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002651/11.51, allocations: 195.9 kB / 3.576 GB, free: 74.07 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004735/11.51, allocations: 128.9 kB / 3.576 GB, free: 74.07 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/11.51, allocations: 2.625 kB / 3.576 GB, free: 74.07 MB / 443.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001154/11.51, allocations: 365.5 kB / 3.576 GB, free: 74.01 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/11.51, allocations: 6.984 kB / 3.576 GB, free: 74.01 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/11.51, allocations: 5.438 kB / 3.576 GB, free: 74.01 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003404/11.51, allocations: 55.16 kB / 3.576 GB, free: 73.99 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006412/11.51, allocations: 91.41 kB / 3.576 GB, free: 73.99 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001684/11.51, allocations: 2.378 MB / 3.578 GB, free: 71.7 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/11.51, allocations: 21.73 kB / 3.579 GB, free: 71.7 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.253e-05/11.51, allocations: 25.78 kB / 3.579 GB, free: 71.7 MB / 443.1 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 () * 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.0001775/11.51, allocations: 120 kB / 3.579 GB, free: 71.59 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008194/11.51, allocations: 260.6 kB / 3.579 GB, free: 71.53 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.987e-05/11.51, allocations: 27.16 kB / 3.579 GB, free: 71.52 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/11.51, allocations: 0.7543 MB / 3.58 GB, free: 71.41 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/11.51, allocations: 13.27 kB / 3.58 GB, free: 71.41 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/11.51, allocations: 0 / 3.58 GB, free: 71.41 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001098/11.51, allocations: 0.9661 MB / 3.581 GB, free: 70.93 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/11.52, allocations: 1.325 MB / 3.582 GB, free: 70.55 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/11.52, allocations: 0 / 3.582 GB, free: 70.55 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003945/11.52, allocations: 52.7 kB / 3.582 GB, free: 70.55 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003449/11.52, allocations: 66.72 kB / 3.582 GB, free: 70.54 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/11.52, allocations: 4.969 kB / 3.582 GB, free: 70.54 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004357/11.52, allocations: 0.6144 MB / 3.583 GB, free: 70.02 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/11.52, allocations: 0.9375 kB / 3.583 GB, free: 70.02 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/11.52, allocations: 0.8138 MB / 3.583 GB, free: 69.79 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/11.52, allocations: 117.8 kB / 3.584 GB, free: 69.68 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.076e-05/11.52, allocations: 3.938 kB / 3.584 GB, free: 69.68 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/11.52, allocations: 38.45 kB / 3.584 GB, free: 69.68 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.054e-05/11.52, allocations: 23.72 kB / 3.584 GB, free: 69.68 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.643e-05/11.52, allocations: 15.23 kB / 3.584 GB, free: 69.68 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0001909/11.52, allocations: 158.8 kB / 3.584 GB, free: 69.59 MB / 443.1 MB Notification: Performance of sort global known variables: time 5.81e-07/11.52, allocations: 3.312 kB / 3.584 GB, free: 69.59 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.005244/11.53, allocations: 0.8593 MB / 3.585 GB, free: 69.59 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * 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.01097/11.54, allocations: 2.793 MB / 3.587 GB, free: 68.7 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.001373/11.54, allocations: 465.6 kB / 3.588 GB, free: 68.59 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/11.54, allocations: 0 / 3.588 GB, free: 68.59 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004671/11.54, allocations: 231.1 kB / 3.588 GB, free: 68.59 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/11.54, allocations: 136 kB / 3.588 GB, free: 68.59 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005058/11.55, allocations: 1.085 MB / 3.589 GB, free: 68.32 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/11.55, allocations: 0.81 MB / 3.59 GB, free: 67.62 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002558/11.55, allocations: 129.1 kB / 3.59 GB, free: 67.62 MB / 443.1 MB Notification: Performance of SimCode: time 1.282e-06/11.55, allocations: 4.531 kB / 3.59 GB, free: 67.62 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.613/15.16, allocations: 27.57 MB / 3.617 GB, free: 66.36 MB / 443.1 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