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.211/2.211, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001737/0.001737, allocations: 184.9 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 221.3 MB / 0.7915 GB, free: 5.422 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.0009116/0.0009119, allocations: 99.88 kB / 0.9317 GB, free: 5.723 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.535e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2842, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.129/1.413, allocations: 424.2 MB / 1.633 GB, free: 10.2 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/1.414, allocations: 87.95 kB / 1.633 GB, free: 10.12 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 11.43/12.84, allocations: 3.013 GB / 4.647 GB, free: 168.1 MB / 1.182 GB Notification: Performance of FrontEnd: time 4.478e-06/12.84, allocations: 4 kB / 4.647 GB, free: 168.1 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.001825/12.84, allocations: 260.6 kB / 4.647 GB, free: 167.9 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.02756/12.87, allocations: 8.339 MB / 4.655 GB, free: 159.5 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/12.87, allocations: 8.031 kB / 4.655 GB, free: 159.5 MB / 1.182 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005486/12.87, allocations: 1.141 MB / 4.656 GB, free: 158.4 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008818/12.88, allocations: 1.174 MB / 4.657 GB, free: 157.2 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03369/12.92, allocations: 11.05 MB / 4.668 GB, free: 146.3 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009586/12.92, allocations: 0.6135 MB / 4.669 GB, free: 145.6 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004736/12.92, allocations: 0.8173 MB / 4.669 GB, free: 144.8 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03306/12.96, allocations: 11.54 MB / 4.681 GB, free: 132.9 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005531/12.96, allocations: 31.7 kB / 4.681 GB, free: 132.9 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003365/12.96, allocations: 359 kB / 4.681 GB, free: 132.5 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002376/12.96, allocations: 247.9 kB / 4.681 GB, free: 132.3 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02238/12.98, allocations: 9.432 MB / 4.69 GB, free: 122.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 preOpt removeSimpleEquations (simulation): time 0.07824/13.06, allocations: 46.63 MB / 4.736 GB, free: 74.43 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009761/13.07, allocations: 6.236 MB / 4.742 GB, free: 68.19 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007696/13.08, allocations: 5.412 MB / 4.747 GB, free: 62.77 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001305/13.08, allocations: 0.8204 MB / 4.748 GB, free: 61.8 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006257/13.09, allocations: 3.323 MB / 4.751 GB, free: 58.44 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005534/13.09, allocations: 0.5639 MB / 4.752 GB, free: 57.88 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 1.803e-05/13.09, allocations: 0 / 4.752 GB, free: 57.88 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.01209/13.1, allocations: 6.203 MB / 4.758 GB, free: 51.63 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/13.1, allocations: 150.3 kB / 4.758 GB, free: 51.46 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01571/13.12, allocations: 7.127 MB / 4.765 GB, free: 44.36 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001448/13.12, allocations: 113.7 kB / 4.765 GB, free: 44.25 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.005575/13.13, allocations: 4.33 MB / 4.769 GB, free: 39.88 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.00281/13.13, allocations: 1.56 MB / 4.771 GB, free: 38.29 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/13.13, allocations: 120 kB / 4.771 GB, free: 38.18 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0006021/13.13, allocations: 0.5459 MB / 4.772 GB, free: 37.62 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005119/13.14, allocations: 2.893 MB / 4.774 GB, free: 34.72 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005921/13.14, allocations: 4.778 MB / 4.779 GB, free: 29.1 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006075/13.15, allocations: 3.949 MB / 4.783 GB, free: 25.14 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-05/13.15, allocations: 20 kB / 4.783 GB, free: 25.12 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01692/13.17, allocations: 8.674 MB / 4.791 GB, free: 16.41 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.818/13.98, allocations: 29.27 MB / 4.82 GB, free: 178.6 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002157/13.98, allocations: 57.97 kB / 4.82 GB, free: 178.6 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002623/13.98, allocations: 97.53 kB / 4.82 GB, free: 178.6 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007739/13.99, allocations: 1.442 MB / 4.822 GB, free: 178.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003284/13.99, allocations: 129.3 kB / 4.822 GB, free: 178.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009552/14, allocations: 0.6187 MB / 4.822 GB, free: 178.6 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002047/14, allocations: 283.6 kB / 4.823 GB, free: 178.6 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/14, allocations: 6.469 kB / 4.823 GB, free: 178.6 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02196/14.03, allocations: 8.083 MB / 4.831 GB, free: 178.4 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003271/14.03, allocations: 57.81 kB / 4.831 GB, free: 178.4 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002427/14.03, allocations: 98.56 kB / 4.831 GB, free: 178.4 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007007/14.03, allocations: 1.447 MB / 4.832 GB, free: 178.4 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002943/14.03, allocations: 125.4 kB / 4.832 GB, free: 178.4 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009446/14.04, allocations: 0.5951 MB / 4.833 GB, free: 178.4 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001795/14.05, allocations: 290.2 kB / 4.833 GB, free: 178.4 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.003109/14.05, allocations: 0.5367 MB / 4.834 GB, free: 178.2 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00361/14.05, allocations: 0.7189 MB / 4.834 GB, free: 178.2 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01829/14.07, allocations: 6.968 MB / 4.841 GB, free: 178 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.766e-05/14.07, allocations: 42.53 kB / 4.841 GB, free: 178 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/14.07, allocations: 6.344 kB / 4.841 GB, free: 178 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01144/14.08, allocations: 5.664 MB / 4.847 GB, free: 177.7 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.04666/14.13, allocations: 16.48 MB / 4.863 GB, free: 176.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/14.13, allocations: 1.344 kB / 4.863 GB, free: 176.7 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004818/14.13, allocations: 0.9073 MB / 4.864 GB, free: 176.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.546e-05/14.13, allocations: 15.47 kB / 4.864 GB, free: 176.7 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008/14.13, allocations: 126.1 kB / 4.864 GB, free: 176.7 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.255e-05/14.13, allocations: 15.19 kB / 4.864 GB, free: 176.7 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/14.13, allocations: 0 / 4.864 GB, free: 176.7 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01737/14.15, allocations: 10.55 MB / 4.874 GB, free: 176 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007055/14.16, allocations: 1.752 MB / 4.876 GB, free: 175.5 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003041/14.16, allocations: 94.06 kB / 4.876 GB, free: 175.5 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007852/14.17, allocations: 0.5688 MB / 4.876 GB, free: 175.5 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008229/14.17, allocations: 257.2 kB / 4.877 GB, free: 175.5 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009462/14.17, allocations: 198.5 kB / 4.877 GB, free: 175.5 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01265/14.18, allocations: 5.559 MB / 4.882 GB, free: 175.2 MB / 1.182 GB Notification: Performance of sort global known variables: time 1.423e-06/14.18, allocations: 4.531 kB / 4.882 GB, free: 175.2 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02251/14.21, allocations: 4.923 MB / 4.887 GB, free: 174.9 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.0208/14.23, allocations: 11.99 MB / 4.899 GB, free: 173.3 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.01759/14.25, allocations: 11.43 MB / 4.91 GB, free: 172.9 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/14.25, allocations: 4.531 kB / 4.91 GB, free: 172.9 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.004343/14.25, allocations: 3.116 MB / 4.913 GB, free: 172.8 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02316/14.27, allocations: 4.388 MB / 4.917 GB, free: 172.8 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05741/14.33, allocations: 19.54 MB / 4.936 GB, free: 169.8 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01052/14.34, allocations: 6.309 MB / 4.943 GB, free: 168.9 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.02235/14.36, allocations: 6.683 MB / 4.949 GB, free: 168.8 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008781/14.37, allocations: 3.629 MB / 4.953 GB, free: 168.8 MB / 1.182 GB Notification: Performance of SimCode: time 1.383e-06/14.37, allocations: 3.172 kB / 4.953 GB, free: 168.8 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3416/14.71, allocations: 240.6 MB / 5.188 GB, free: 28.48 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002332/14.71, allocations: 188.9 kB / 5.188 GB, free: 28.27 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/24.99, allocations: 1.125 kB / 5.188 GB, free: 28.27 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