Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_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.001814/0.001814, allocations: 177.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.93/1.93, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 82.7 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.975e-05/1.96e-05, allocations: 4 kB / 315.6 MB, free: 22.65 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1144, allocations: 47.58 MB / 363.2 MB, free: 7.004 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.764/7.878, allocations: 2.781 GB / 3.136 GB, free: 15.03 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/7.879, allocations: 68.47 kB / 3.136 GB, free: 15 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5928/8.471, allocations: 105.3 MB / 3.239 GB, free: 86.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.174e-06/8.471, allocations: 0 / 3.239 GB, free: 86.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.805e-05/8.471, allocations: 4 kB / 3.239 GB, free: 86.39 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.007588/8.479, allocations: 1.148 MB / 3.24 GB, free: 85.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.832e-05/8.479, allocations: 8.031 kB / 3.24 GB, free: 85.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004732/8.48, allocations: 54.41 kB / 3.24 GB, free: 85.29 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002909/8.48, allocations: 225.4 kB / 3.24 GB, free: 85.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.196e-05/8.48, allocations: 5.406 kB / 3.24 GB, free: 85.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.886e-05/8.48, allocations: 12 kB / 3.24 GB, free: 85.03 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003734/8.48, allocations: 212.7 kB / 3.241 GB, free: 84.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002855/8.481, allocations: 206.1 kB / 3.241 GB, free: 84.61 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/8.481, allocations: 4 kB / 3.241 GB, free: 84.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/8.481, allocations: 0 / 3.241 GB, free: 84.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/8.481, allocations: 7.984 kB / 3.241 GB, free: 84.59 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.001252/8.482, allocations: 1.149 MB / 3.242 GB, free: 83.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/8.482, allocations: 164.2 kB / 3.242 GB, free: 83.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/8.482, allocations: 94.89 kB / 3.242 GB, free: 83.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08226/8.565, allocations: 47.34 MB / 3.288 GB, free: 30.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.252e-05/8.565, allocations: 30.75 kB / 3.288 GB, free: 30.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 3.376e-06/8.565, allocations: 0 / 3.288 GB, free: 30.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.004748/8.57, allocations: 1.228 MB / 3.29 GB, free: 28.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/8.57, allocations: 114.8 kB / 3.29 GB, free: 28.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.424e-05/8.57, allocations: 105.1 kB / 3.29 GB, free: 28.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.006e-05/8.57, allocations: 25.7 kB / 3.29 GB, free: 28.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.144e-05/8.57, allocations: 104.6 kB / 3.29 GB, free: 28.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.582e-05/8.57, allocations: 110.4 kB / 3.29 GB, free: 28.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.097e-05/8.57, allocations: 384 / 3.29 GB, free: 28.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.851e-05/8.57, allocations: 326.8 kB / 3.29 GB, free: 28 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/8.57, allocations: 107.7 kB / 3.29 GB, free: 27.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/8.57, allocations: 167.1 kB / 3.291 GB, free: 27.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006502/8.571, allocations: 176.3 kB / 3.291 GB, free: 27.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/8.571, allocations: 0 / 3.291 GB, free: 27.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001013/8.572, allocations: 390 kB / 3.291 GB, free: 27.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/8.572, allocations: 8 kB / 3.291 GB, free: 27.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/8.572, allocations: 0 / 3.291 GB, free: 27.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001831/8.572, allocations: 36.78 kB / 3.291 GB, free: 27.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/8.573, allocations: 96.09 kB / 3.291 GB, free: 27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003782/8.573, allocations: 0.5523 MB / 3.292 GB, free: 26.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/8.573, allocations: 23.91 kB / 3.292 GB, free: 26.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/8.573, allocations: 20.09 kB / 3.292 GB, free: 26.38 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.0001166/8.574, allocations: 104.9 kB / 3.292 GB, free: 26.27 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001006/8.575, allocations: 373.9 kB / 3.292 GB, free: 25.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.445e-05/8.575, allocations: 15.81 kB / 3.292 GB, free: 25.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/8.576, allocations: 1.402 MB / 3.294 GB, free: 24.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.352e-05/8.576, allocations: 23.97 kB / 3.294 GB, free: 24.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/8.576, allocations: 0 / 3.294 GB, free: 24.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/8.576, allocations: 11.98 kB / 3.294 GB, free: 24.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/8.578, allocations: 1.869 MB / 3.296 GB, free: 22.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/8.579, allocations: 4 kB / 3.296 GB, free: 22.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003954/8.579, allocations: 83.88 kB / 3.296 GB, free: 22.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002232/8.579, allocations: 68.83 kB / 3.296 GB, free: 22.35 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.335e-05/8.579, allocations: 15.98 kB / 3.296 GB, free: 22.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003085/8.58, allocations: 0.6069 MB / 3.296 GB, free: 21.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/8.58, allocations: 4.031 kB / 3.296 GB, free: 21.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/8.581, allocations: 1.66 MB / 3.298 GB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.469e-05/8.581, allocations: 128.5 kB / 3.298 GB, free: 19.83 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/8.581, allocations: 4 kB / 3.298 GB, free: 19.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/8.582, allocations: 31.83 kB / 3.298 GB, free: 19.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.677e-05/8.582, allocations: 27.89 kB / 3.298 GB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/8.582, allocations: 20.08 kB / 3.298 GB, free: 19.75 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.081e-05/8.582, allocations: 91.56 kB / 3.298 GB, free: 19.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/8.582, allocations: 0 / 3.298 GB, free: 19.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006355/8.588, allocations: 0.9445 MB / 3.299 GB, free: 18.71 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.01156/8.6, allocations: 3.796 MB / 3.303 GB, free: 14.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001166/8.601, allocations: 0.5401 MB / 3.303 GB, free: 14.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.393e-06/8.601, allocations: 4.125 kB / 3.303 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005329/8.601, allocations: 481.3 kB / 3.304 GB, free: 13.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007634/8.602, allocations: 69.83 kB / 3.304 GB, free: 13.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006571/8.609, allocations: 1.434 MB / 3.305 GB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/8.609, allocations: 0.8301 MB / 3.306 GB, free: 11.49 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004678/8.61, allocations: 141.8 kB / 3.306 GB, free: 11.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/8.61, allocations: 127.4 kB / 3.306 GB, free: 11.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.002e-06/8.61, allocations: 0 / 3.306 GB, free: 11.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4285/9.038, allocations: 29.39 MB / 3.335 GB, free: 85.09 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002125/9.039, allocations: 118.9 kB / 3.335 GB, free: 84.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.675/12.71, allocations: 0 / 3.335 GB, free: 84.9 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat