Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.166/2.166, allocations: 390.5 MB / 398 MB, free: 10.94 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 176.8 kB / 491.2 MB, free: 1.586 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 221.5 MB / 0.7868 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008852/0.0008848, allocations: 103.8 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.75e-05/1.752e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2724, allocations: 143 MB / 1.212 GB, free: 39.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.16/1.433, allocations: 423.5 MB / 1.626 GB, free: 7.035 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/1.433, allocations: 88.02 kB / 1.626 GB, free: 6.992 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 11.37/12.8, allocations: 2.998 GB / 4.624 GB, free: 218.7 MB / 1.182 GB Notification: Performance of FrontEnd: time 1.683e-06/12.8, allocations: 0 / 4.624 GB, free: 218.7 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0016/12.8, allocations: 268.7 kB / 4.624 GB, free: 218.7 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.03731/12.84, allocations: 8.327 MB / 4.633 GB, free: 214.9 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/12.84, allocations: 10.81 kB / 4.633 GB, free: 214.9 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007931/12.85, allocations: 1.176 MB / 4.634 GB, free: 214.4 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03349/12.88, allocations: 11.05 MB / 4.644 GB, free: 209.3 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005944/12.88, allocations: 267.1 kB / 4.645 GB, free: 209.3 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003888/12.89, allocations: 497.8 kB / 4.645 GB, free: 209.3 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02214/12.91, allocations: 8.901 MB / 4.654 GB, free: 205 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03271/12.94, allocations: 10.35 MB / 4.664 GB, free: 199 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006516/12.94, allocations: 22.75 kB / 4.664 GB, free: 198.9 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004042/12.95, allocations: 18.62 kB / 4.664 GB, free: 198.9 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003138/12.95, allocations: 245.8 kB / 4.664 GB, free: 198.9 MB / 1.182 GB 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.07947/13.03, allocations: 45.01 MB / 4.708 GB, free: 154.6 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009378/13.04, allocations: 5.988 MB / 4.714 GB, free: 148.6 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007339/13.04, allocations: 4.646 MB / 4.719 GB, free: 144 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001289/13.05, allocations: 0.8312 MB / 4.719 GB, free: 143 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006336/13.05, allocations: 3.174 MB / 4.723 GB, free: 139.8 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005087/13.06, allocations: 401.8 kB / 4.723 GB, free: 139.4 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 1.557e-05/13.06, allocations: 4 kB / 4.723 GB, free: 139.4 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.01322/13.07, allocations: 6.115 MB / 4.729 GB, free: 133.2 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/13.07, allocations: 158.2 kB / 4.729 GB, free: 133.1 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01247/13.08, allocations: 5.927 MB / 4.735 GB, free: 127.2 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001442/13.08, allocations: 29.7 kB / 4.735 GB, free: 127.1 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.005126/13.09, allocations: 4.292 MB / 4.739 GB, free: 122.8 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.002892/13.09, allocations: 1.516 MB / 4.741 GB, free: 121.2 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/13.09, allocations: 4 kB / 4.741 GB, free: 121.2 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0006434/13.09, allocations: 0.5459 MB / 4.741 GB, free: 120.7 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004864/13.1, allocations: 2.785 MB / 4.744 GB, free: 117.9 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005576/13.1, allocations: 4.615 MB / 4.748 GB, free: 112.4 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006935/13.11, allocations: 4.063 MB / 4.752 GB, free: 108.4 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.18e-05/13.11, allocations: 16 kB / 4.752 GB, free: 108.4 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01656/13.13, allocations: 8.239 MB / 4.76 GB, free: 100.1 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.005158/13.13, allocations: 28.13 MB / 4.788 GB, free: 70.08 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001304/13.13, allocations: 56 kB / 4.788 GB, free: 70.03 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001297/13.13, allocations: 100 kB / 4.788 GB, free: 69.93 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00649/13.14, allocations: 1.439 MB / 4.789 GB, free: 68.49 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.172e-05/13.14, allocations: 135.5 kB / 4.789 GB, free: 68.36 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008423/13.15, allocations: 0.506 MB / 4.79 GB, free: 67.85 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/13.15, allocations: 284 kB / 4.79 GB, free: 67.57 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/13.15, allocations: 4 kB / 4.79 GB, free: 67.57 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01961/13.17, allocations: 7.596 MB / 4.798 GB, free: 59.97 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000197/13.17, allocations: 60 kB / 4.798 GB, free: 59.91 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001091/13.17, allocations: 96 kB / 4.798 GB, free: 59.82 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006339/13.18, allocations: 1.447 MB / 4.799 GB, free: 58.37 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001422/13.18, allocations: 127.5 kB / 4.799 GB, free: 58.24 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008248/13.19, allocations: 490.5 kB / 4.8 GB, free: 57.76 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001572/13.19, allocations: 280 kB / 4.8 GB, free: 57.49 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002935/13.19, allocations: 359.7 kB / 4.8 GB, free: 57.12 MB / 1.182 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01441/13.2, allocations: 6.149 MB / 4.806 GB, free: 50.95 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003131/13.21, allocations: 0.6446 MB / 4.807 GB, free: 50.29 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/13.22, allocations: 6.78 MB / 4.814 GB, free: 43.51 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.354e-05/13.22, allocations: 40 kB / 4.814 GB, free: 43.47 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/13.22, allocations: 0 / 4.814 GB, free: 43.47 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008387/13.23, allocations: 5.652 MB / 4.819 GB, free: 37.8 MB / 1.182 GB 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 postOpt removeSimpleEquations (simulation): time 0.03666/13.27, allocations: 15.4 MB / 4.834 GB, free: 22.38 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.445e-05/13.27, allocations: 0 / 4.834 GB, free: 22.38 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00392/13.27, allocations: 0.9051 MB / 4.835 GB, free: 21.48 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.165e-05/13.27, allocations: 16 kB / 4.835 GB, free: 21.46 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003516/13.27, allocations: 67.94 kB / 4.835 GB, free: 21.39 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.51e-05/13.27, allocations: 22.94 kB / 4.835 GB, free: 21.38 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/13.27, allocations: 0 / 4.835 GB, free: 21.38 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/13.28, allocations: 10.34 MB / 4.845 GB, free: 10.97 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005673/13.29, allocations: 1.676 MB / 4.847 GB, free: 9.266 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002574/13.29, allocations: 23.98 kB / 4.847 GB, free: 9.242 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007684/13.3, allocations: 498.7 kB / 4.847 GB, free: 8.754 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008743/13.3, allocations: 262.3 kB / 4.848 GB, free: 8.5 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007032/13.3, allocations: 199.9 kB / 4.848 GB, free: 8.305 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.009084/13.31, allocations: 4.525 MB / 4.852 GB, free: 3.789 MB / 1.182 GB Notification: Performance of sort global known variables: time 5.61e-07/13.31, allocations: 0 / 4.852 GB, free: 3.789 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.9161/14.23, allocations: 4.759 MB / 4.857 GB, free: 215.6 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02582/14.25, allocations: 11.72 MB / 4.868 GB, free: 214.5 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.02464/14.28, allocations: 10.87 MB / 4.879 GB, free: 214.1 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.608e-05/14.28, allocations: 4.75 kB / 4.879 GB, free: 214.1 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.006722/14.28, allocations: 3.027 MB / 4.882 GB, free: 214 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02432/14.31, allocations: 3.475 MB / 4.885 GB, free: 214 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06353/14.37, allocations: 18.88 MB / 4.904 GB, free: 211 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01062/14.38, allocations: 6.312 MB / 4.91 GB, free: 210.1 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.02396/14.41, allocations: 5.978 MB / 4.916 GB, free: 210 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008508/14.42, allocations: 3.616 MB / 4.919 GB, free: 210 MB / 1.182 GB Notification: Performance of SimCode: time 1.102e-06/14.42, allocations: 0 / 4.919 GB, free: 210 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.339/14.76, allocations: 201.1 MB / 5.116 GB, free: 142.1 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/14.76, allocations: 178.2 kB / 5.116 GB, free: 141.9 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.059/23.81, allocations: 0 / 5.116 GB, free: 141.9 MB / 1.182 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified_res.mat does not exist to compare? outputFormat=mat