Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.542/2.542, allocations: 387.4 MB / 394.9 MB, free: 13.32 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.001098/0.001098, allocations: 187.7 kB / 487.4 MB, free: 5.031 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.441/1.441, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008573/0.0008575, allocations: 99.78 kB / 0.9219 GB, free: 2.16 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.723e-05/1.726e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2517, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.073/1.325, allocations: 422.7 MB / 1.619 GB, free: 15.51 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/1.325, allocations: 87.02 kB / 1.619 GB, free: 15.47 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 11.98/13.3, allocations: 2.998 GB / 4.617 GB, free: 206 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.825e-06/13.3, allocations: 0 / 4.617 GB, free: 206 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.002608/13.31, allocations: 264.6 kB / 4.617 GB, free: 205.9 MB / 1.167 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.043/13.35, allocations: 8.332 MB / 4.625 GB, free: 202.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 7.633e-05/13.35, allocations: 15.27 kB / 4.625 GB, free: 202.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01424/13.36, allocations: 1.173 MB / 4.627 GB, free: 201.6 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03308/13.4, allocations: 11.05 MB / 4.637 GB, free: 195.1 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006336/13.4, allocations: 269.4 kB / 4.638 GB, free: 195.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004127/13.4, allocations: 490.9 kB / 4.638 GB, free: 195.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0247/13.43, allocations: 8.902 MB / 4.647 GB, free: 190.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03859/13.46, allocations: 10.34 MB / 4.657 GB, free: 184.8 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005843/13.46, allocations: 27.08 kB / 4.657 GB, free: 184.8 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003703/13.47, allocations: 15.47 kB / 4.657 GB, free: 184.8 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002977/13.47, allocations: 246.8 kB / 4.657 GB, free: 184.7 MB / 1.167 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.0824/13.55, allocations: 45.02 MB / 4.701 GB, free: 139.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009999/13.56, allocations: 5.994 MB / 4.707 GB, free: 133.6 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007391/13.57, allocations: 4.643 MB / 4.711 GB, free: 129 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001331/13.57, allocations: 0.8272 MB / 4.712 GB, free: 128 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00692/13.58, allocations: 3.168 MB / 4.715 GB, free: 124.8 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005889/13.58, allocations: 407 kB / 4.716 GB, free: 124.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=449): time 3.049e-05/13.58, allocations: 0 / 4.716 GB, free: 124.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=449): time 0.01632/13.6, allocations: 6.125 MB / 4.722 GB, free: 118.3 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/13.6, allocations: 154.2 kB / 4.722 GB, free: 118.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01386/13.61, allocations: 5.931 MB / 4.728 GB, free: 112.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001541/13.61, allocations: 33.7 kB / 4.728 GB, free: 112.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.005624/13.62, allocations: 4.3 MB / 4.732 GB, free: 107.8 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.003022/13.62, allocations: 1.504 MB / 4.733 GB, free: 106.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001372/13.63, allocations: 0 / 4.733 GB, free: 106.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0007244/13.63, allocations: 0.542 MB / 4.734 GB, free: 105.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005667/13.63, allocations: 2.783 MB / 4.737 GB, free: 102.9 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006692/13.64, allocations: 4.615 MB / 4.741 GB, free: 97.47 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009026/13.65, allocations: 4.071 MB / 4.745 GB, free: 93.39 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001447/13.65, allocations: 16 kB / 4.745 GB, free: 93.38 MB / 1.167 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02227/13.67, allocations: 8.239 MB / 4.753 GB, free: 85.12 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.006705/13.68, allocations: 28.13 MB / 4.781 GB, free: 55.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001704/13.68, allocations: 60 kB / 4.781 GB, free: 55.04 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001508/13.68, allocations: 99.95 kB / 4.781 GB, free: 54.94 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007072/13.68, allocations: 1.443 MB / 4.782 GB, free: 53.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001703/13.68, allocations: 123.6 kB / 4.782 GB, free: 53.38 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01157/13.7, allocations: 0.5131 MB / 4.783 GB, free: 52.86 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002047/13.7, allocations: 280 kB / 4.783 GB, free: 52.59 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/13.7, allocations: 4 kB / 4.783 GB, free: 52.59 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01756/13.72, allocations: 7.604 MB / 4.791 GB, free: 44.98 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000214/13.72, allocations: 56 kB / 4.791 GB, free: 44.93 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001392/13.72, allocations: 100.9 kB / 4.791 GB, free: 44.83 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006804/13.72, allocations: 1.439 MB / 4.792 GB, free: 43.39 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001963/13.72, allocations: 131.6 kB / 4.792 GB, free: 43.26 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009453/13.73, allocations: 490.5 kB / 4.793 GB, free: 42.78 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002123/13.73, allocations: 282.1 kB / 4.793 GB, free: 42.5 MB / 1.167 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.003616/13.74, allocations: 363.4 kB / 4.793 GB, free: 42.13 MB / 1.167 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01536/13.75, allocations: 6.153 MB / 4.799 GB, free: 35.96 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003232/13.76, allocations: 0.6407 MB / 4.8 GB, free: 35.31 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01633/13.77, allocations: 6.771 MB / 4.807 GB, free: 28.52 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-05/13.77, allocations: 44 kB / 4.807 GB, free: 28.48 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-05/13.77, allocations: 0 / 4.807 GB, free: 28.48 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009814/13.78, allocations: 5.637 MB / 4.812 GB, free: 22.82 MB / 1.167 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.04129/13.82, allocations: 15.42 MB / 4.827 GB, free: 7.395 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/13.82, allocations: 0 / 4.827 GB, free: 7.395 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004738/13.83, allocations: 0.9129 MB / 4.828 GB, free: 6.48 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.852e-05/13.83, allocations: 19.75 kB / 4.828 GB, free: 6.465 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001051/13.83, allocations: 63.94 kB / 4.828 GB, free: 6.402 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.273e-05/13.83, allocations: 16 kB / 4.828 GB, free: 6.387 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/13.83, allocations: 0 / 4.828 GB, free: 6.387 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01931/13.85, allocations: 10.33 MB / 4.838 GB, free: 11.98 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009154/13.86, allocations: 1.672 MB / 4.84 GB, free: 10.28 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003934/13.86, allocations: 27.98 kB / 4.84 GB, free: 10.25 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008775/13.87, allocations: 498.8 kB / 4.84 GB, free: 9.766 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001369/13.87, allocations: 255 kB / 4.841 GB, free: 9.516 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001455/13.87, allocations: 207.8 kB / 4.841 GB, free: 9.312 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01188/13.89, allocations: 4.514 MB / 4.845 GB, free: 4.809 MB / 1.182 GB Notification: Performance of sort global known variables: time 6.01e-07/13.89, allocations: 3.828 kB / 4.845 GB, free: 4.809 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02522/13.91, allocations: 4.773 MB / 4.85 GB, free: 24 kB / 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 1.082/14.99, allocations: 11.73 MB / 4.861 GB, free: 219.5 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.02141/15.02, allocations: 10.87 MB / 4.872 GB, free: 219.2 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.75e-05/15.02, allocations: 7 kB / 4.872 GB, free: 219.2 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.004429/15.02, allocations: 3.029 MB / 4.875 GB, free: 219 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02148/15.04, allocations: 3.48 MB / 4.878 GB, free: 219 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06136/15.1, allocations: 18.88 MB / 4.897 GB, free: 216 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01274/15.12, allocations: 6.3 MB / 4.903 GB, free: 215.1 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.02488/15.14, allocations: 5.988 MB / 4.909 GB, free: 215.1 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01167/15.15, allocations: 3.616 MB / 4.912 GB, free: 215.1 MB / 1.182 GB Notification: Performance of SimCode: time 2.394e-06/15.15, allocations: 0 / 4.912 GB, free: 215.1 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3615/15.51, allocations: 201.2 MB / 5.109 GB, free: 146.4 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002369/15.51, allocations: 171.9 kB / 5.109 GB, free: 146.2 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.504/25.02, allocations: 0 / 5.109 GB, free: 146.2 MB / 1.182 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Examples.Stratified_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Examples.Stratified_res.mat does not exist to compare? outputFormat=mat