Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.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.WaterIF97,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97",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.001489/0.001492, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.026/2.026, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001032/0.001032, allocations: 94.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.714e-05/3.732e-05, allocations: 0 / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1227, allocations: 47.58 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.656/8.779, allocations: 2.782 GB / 3.142 GB, free: 86.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/8.779, allocations: 66.52 kB / 3.142 GB, free: 86.98 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4713/9.251, allocations: 107.2 MB / 3.247 GB, free: 36.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.714e-06/9.251, allocations: 0 / 3.247 GB, free: 36.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.386e-05/9.251, allocations: 0 / 3.247 GB, free: 36.23 MB / 426.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.008706/9.259, allocations: 1.145 MB / 3.248 GB, free: 35.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/9.26, allocations: 12.03 kB / 3.248 GB, free: 35.03 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.629e-05/9.26, allocations: 50.55 kB / 3.248 GB, free: 34.97 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007132/9.26, allocations: 52.11 kB / 3.248 GB, free: 34.92 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/9.261, allocations: 222.8 kB / 3.249 GB, free: 34.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/9.261, allocations: 12.28 kB / 3.249 GB, free: 34.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.431e-05/9.261, allocations: 12 kB / 3.249 GB, free: 34.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/9.262, allocations: 373 kB / 3.249 GB, free: 34.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/9.262, allocations: 0 / 3.249 GB, free: 34.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.167e-05/9.262, allocations: 4 kB / 3.249 GB, free: 34.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/9.262, allocations: 4 kB / 3.249 GB, free: 34.24 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/9.264, allocations: 315.6 kB / 3.249 GB, free: 33.93 MB / 426.7 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.001786/9.266, allocations: 1.203 MB / 3.25 GB, free: 32.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008842/9.267, allocations: 264.3 kB / 3.251 GB, free: 32.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/9.267, allocations: 102.8 kB / 3.251 GB, free: 32.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4501/9.717, allocations: 47.32 MB / 3.297 GB, free: 69.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/9.717, allocations: 45.25 kB / 3.297 GB, free: 69.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.836e-06/9.717, allocations: 0.9688 kB / 3.297 GB, free: 69.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.009175/9.726, allocations: 1.421 MB / 3.298 GB, free: 69.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/9.726, allocations: 114.6 kB / 3.298 GB, free: 69.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/9.726, allocations: 115.4 kB / 3.299 GB, free: 69.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/9.726, allocations: 36.73 kB / 3.299 GB, free: 69.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.191e-05/9.727, allocations: 164.9 kB / 3.299 GB, free: 68.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/9.727, allocations: 122 kB / 3.299 GB, free: 68.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/9.727, allocations: 4.719 kB / 3.299 GB, free: 68.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.796e-05/9.727, allocations: 326.4 kB / 3.299 GB, free: 68.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003197/9.727, allocations: 115.4 kB / 3.299 GB, free: 68.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/9.728, allocations: 168.2 kB / 3.299 GB, free: 68.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/9.728, allocations: 124.6 kB / 3.3 GB, free: 68.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/9.728, allocations: 0 / 3.3 GB, free: 68.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001186/9.729, allocations: 370.4 kB / 3.3 GB, free: 68.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/9.729, allocations: 5.344 kB / 3.3 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/9.729, allocations: 5.25 kB / 3.3 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003494/9.73, allocations: 37.52 kB / 3.3 GB, free: 68.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008654/9.73, allocations: 93.08 kB / 3.3 GB, free: 68.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003963/9.731, allocations: 0.5478 MB / 3.301 GB, free: 67.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005175/9.731, allocations: 30.3 kB / 3.301 GB, free: 67.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.136e-05/9.731, allocations: 19.11 kB / 3.301 GB, free: 67.93 MB / 426.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 () * 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.0001606/9.732, allocations: 121.4 kB / 3.301 GB, free: 67.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/9.732, allocations: 17.86 kB / 3.301 GB, free: 67.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002765/9.735, allocations: 1.431 MB / 3.302 GB, free: 67.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.608e-05/9.735, allocations: 22.16 kB / 3.302 GB, free: 67.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/9.735, allocations: 1 kB / 3.302 GB, free: 67.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/9.735, allocations: 8.984 kB / 3.302 GB, free: 67.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00387/9.739, allocations: 1.965 MB / 3.304 GB, free: 67.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/9.739, allocations: 6.25 kB / 3.304 GB, free: 67.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008553/9.739, allocations: 84.27 kB / 3.304 GB, free: 67.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004692/9.74, allocations: 69 kB / 3.304 GB, free: 67.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.225e-05/9.74, allocations: 17.78 kB / 3.304 GB, free: 67.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004344/9.741, allocations: 0.5839 MB / 3.305 GB, free: 66.74 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.391e-06/9.741, allocations: 5.594 kB / 3.305 GB, free: 66.74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/9.743, allocations: 1.673 MB / 3.307 GB, free: 66.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/9.743, allocations: 134.3 kB / 3.307 GB, free: 66.15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.596e-05/9.743, allocations: 9.281 kB / 3.307 GB, free: 66.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006845/9.744, allocations: 33.81 kB / 3.307 GB, free: 66.15 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/9.744, allocations: 34.12 kB / 3.307 GB, free: 66.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.501e-05/9.744, allocations: 18.22 kB / 3.307 GB, free: 66.15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.688e-05/9.744, allocations: 90.34 kB / 3.307 GB, free: 66.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/9.744, allocations: 0 / 3.307 GB, free: 66.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005257/9.75, allocations: 0.9637 MB / 3.308 GB, free: 66.07 MB / 426.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 () * 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.01242/9.762, allocations: 3.785 MB / 3.311 GB, free: 64.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001526/9.764, allocations: 0.5517 MB / 3.312 GB, free: 64.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/9.764, allocations: 0 / 3.312 GB, free: 64.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008969/9.765, allocations: 496.4 kB / 3.312 GB, free: 64.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009463/9.766, allocations: 73.84 kB / 3.313 GB, free: 64.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006575/9.772, allocations: 1.497 MB / 3.314 GB, free: 64.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/9.773, allocations: 0.8269 MB / 3.315 GB, free: 63.55 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003575/9.773, allocations: 131.9 kB / 3.315 GB, free: 63.54 MB / 426.7 MB Notification: Performance of SimCode: time 1.653e-06/9.773, allocations: 0 / 3.315 GB, free: 63.54 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.668/13.44, allocations: 25.01 MB / 3.339 GB, free: 61.27 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat