Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 223.2 MB / 240.3 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009638/0.0009639, allocations: 95.97 kB / 291.5 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003024/0.0003024, allocations: 8 kB / 351.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2652, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.017/6.282, allocations: 2.787 GB / 3.179 GB, free: 117.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/6.283, allocations: 71.19 kB / 3.179 GB, free: 117.5 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2503/6.533, allocations: 108.4 MB / 3.285 GB, free: 25.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.374e-06/6.533, allocations: 0 / 3.285 GB, free: 25.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.312e-05/6.533, allocations: 4 kB / 3.285 GB, free: 25.41 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.006191/6.539, allocations: 1.148 MB / 3.286 GB, free: 24.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/6.539, allocations: 16.03 kB / 3.286 GB, free: 24.22 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.408e-05/6.539, allocations: 49.11 kB / 3.286 GB, free: 24.17 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004589/6.54, allocations: 51.77 kB / 3.286 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/6.54, allocations: 224.9 kB / 3.287 GB, free: 23.88 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/6.54, allocations: 7.938 kB / 3.287 GB, free: 23.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.82e-05/6.54, allocations: 22.89 kB / 3.287 GB, free: 23.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/6.541, allocations: 393 kB / 3.287 GB, free: 23.51 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/6.541, allocations: 0 / 3.287 GB, free: 23.51 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/6.542, allocations: 7.438 kB / 3.287 GB, free: 23.51 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/6.542, allocations: 4 kB / 3.287 GB, free: 23.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/6.543, allocations: 371.5 kB / 3.287 GB, free: 23.21 MB / 458.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.001141/6.544, allocations: 1.186 MB / 3.288 GB, free: 22.01 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007072/6.545, allocations: 290.7 kB / 3.289 GB, free: 21.75 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3369/6.881, allocations: 47.18 MB / 3.335 GB, free: 78.82 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/6.882, allocations: 46.31 kB / 3.335 GB, free: 78.78 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/6.882, allocations: 0 / 3.335 GB, free: 78.78 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.006433/6.888, allocations: 1.619 MB / 3.336 GB, free: 78.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/6.888, allocations: 112.8 kB / 3.337 GB, free: 78.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.162e-05/6.888, allocations: 109.9 kB / 3.337 GB, free: 78.28 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/6.888, allocations: 29.64 kB / 3.337 GB, free: 78.25 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.052e-05/6.888, allocations: 103.3 kB / 3.337 GB, free: 78.16 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.35e-05/6.888, allocations: 127.9 kB / 3.337 GB, free: 78.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.266e-05/6.888, allocations: 4.875 kB / 3.337 GB, free: 78.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.827e-05/6.888, allocations: 320.4 kB / 3.337 GB, free: 77.79 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003412/6.889, allocations: 136.7 kB / 3.337 GB, free: 77.79 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003407/6.889, allocations: 207.2 kB / 3.338 GB, free: 77.72 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/6.89, allocations: 163.3 kB / 3.338 GB, free: 77.71 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/6.89, allocations: 3.688 kB / 3.338 GB, free: 77.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009282/6.89, allocations: 434.4 kB / 3.338 GB, free: 77.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/6.891, allocations: 7.75 kB / 3.338 GB, free: 77.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/6.891, allocations: 0 / 3.338 GB, free: 77.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002425/6.891, allocations: 39.3 kB / 3.338 GB, free: 77.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004482/6.891, allocations: 96.17 kB / 3.338 GB, free: 77.65 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000288/6.892, allocations: 0.5407 MB / 3.339 GB, free: 77.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003037/6.892, allocations: 36.47 kB / 3.339 GB, free: 77.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/6.892, allocations: 18.78 kB / 3.339 GB, free: 77.13 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 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 prepare postOptimizeDAE: time 0.0001352/6.892, allocations: 139.7 kB / 3.339 GB, free: 77.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.411e-05/6.892, allocations: 17.25 kB / 3.339 GB, free: 77.01 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/6.894, allocations: 1.468 MB / 3.34 GB, free: 76.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.961e-05/6.894, allocations: 23.14 kB / 3.34 GB, free: 76.86 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/6.894, allocations: 0.5 kB / 3.34 GB, free: 76.86 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/6.894, allocations: 11.73 kB / 3.34 GB, free: 76.86 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/6.896, allocations: 1.984 MB / 3.342 GB, free: 76.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/6.896, allocations: 2.562 kB / 3.342 GB, free: 76.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004167/6.897, allocations: 91 kB / 3.342 GB, free: 76.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003387/6.897, allocations: 82.41 kB / 3.343 GB, free: 76.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/6.897, allocations: 14.23 kB / 3.343 GB, free: 76.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002352/6.897, allocations: 0.5864 MB / 3.343 GB, free: 75.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/6.897, allocations: 0 / 3.343 GB, free: 75.95 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/6.899, allocations: 1.785 MB / 3.345 GB, free: 75.46 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-05/6.899, allocations: 126.3 kB / 3.345 GB, free: 75.35 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/6.899, allocations: 11.42 kB / 3.345 GB, free: 75.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003677/6.9, allocations: 22.86 kB / 3.345 GB, free: 75.35 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.763e-05/6.9, allocations: 35.22 kB / 3.345 GB, free: 75.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/6.9, allocations: 21.34 kB / 3.345 GB, free: 75.35 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.679e-05/6.9, allocations: 90.62 kB / 3.345 GB, free: 75.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/6.9, allocations: 0 / 3.345 GB, free: 75.27 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004485/6.904, allocations: 0.9714 MB / 3.346 GB, free: 75.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.009158/6.914, allocations: 3.868 MB / 3.35 GB, free: 73.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001339/6.915, allocations: 0.6068 MB / 3.351 GB, free: 73.84 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/6.915, allocations: 0 / 3.351 GB, free: 73.84 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006965/6.916, allocations: 0.5156 MB / 3.351 GB, free: 73.83 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006009/6.916, allocations: 78.09 kB / 3.351 GB, free: 73.83 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006814/6.923, allocations: 3.804 MB / 3.355 GB, free: 71.81 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/6.923, allocations: 0.8337 MB / 3.356 GB, free: 71.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004398/6.924, allocations: 137.7 kB / 3.356 GB, free: 71.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/6.924, allocations: 131.7 kB / 3.356 GB, free: 71.09 MB / 458.7 MB Notification: Performance of SimCode: time 1.172e-06/6.924, allocations: 0 / 3.356 GB, free: 71.09 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05837/6.982, allocations: 30.8 MB / 3.386 GB, free: 69.66 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/6.983, allocations: 198.4 kB / 3.386 GB, free: 69.42 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.094/10.08, allocations: 0 / 3.386 GB, free: 69.42 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat