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.406/2.406, allocations: 393.5 MB / 408.4 MB, free: 11.05 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: 183.4 kB / 0.4901 GB, free: 2.238 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.699/1.699, allocations: 223.1 MB / 0.7992 GB, free: 15.54 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.0009327/0.0009327, allocations: 106.9 kB / 0.9396 GB, free: 2.75 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003706, allocations: 9 kB / 1.09 GB, free: 213 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2857, allocations: 143 MB / 1.229 GB, free: 85.35 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.057/1.342, allocations: 424.2 MB / 1.644 GB, free: 6.547 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/1.343, allocations: 95.45 kB / 1.644 GB, free: 6.496 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 11.74/13.08, allocations: 3.02 GB / 4.664 GB, free: 211 MB / 1.182 GB Notification: Performance of FrontEnd: time 3.677e-06/13.08, allocations: 0 / 4.664 GB, free: 211 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.001998/13.08, allocations: 271 kB / 4.664 GB, free: 211 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.03901/13.12, allocations: 9.907 MB / 4.674 GB, free: 207.4 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/13.12, allocations: 12.34 kB / 4.674 GB, free: 207.4 MB / 1.182 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006479/13.13, allocations: 1.146 MB / 4.675 GB, free: 207.3 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008543/13.14, allocations: 1.179 MB / 4.676 GB, free: 206.8 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03197/13.17, allocations: 11.09 MB / 4.687 GB, free: 205.5 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009096/13.17, allocations: 0.6204 MB / 4.688 GB, free: 205.5 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004406/13.17, allocations: 0.8164 MB / 4.689 GB, free: 205.5 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03689/13.21, allocations: 11.7 MB / 4.7 GB, free: 204.2 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006713/13.21, allocations: 25.31 kB / 4.7 GB, free: 204.2 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003913/13.22, allocations: 355.2 kB / 4.7 GB, free: 204 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003591/13.22, allocations: 250.9 kB / 4.701 GB, free: 204 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02481/13.24, allocations: 9.632 MB / 4.71 GB, free: 200.5 MB / 1.182 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.08608/13.33, allocations: 46.64 MB / 4.756 GB, free: 166.3 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/13.34, allocations: 6.316 MB / 4.762 GB, free: 162.7 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/13.34, allocations: 0.8182 MB / 4.763 GB, free: 161.7 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007019/13.35, allocations: 3.411 MB / 4.766 GB, free: 158.3 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006186/13.35, allocations: 0.554 MB / 4.766 GB, free: 157.7 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 1.901e-05/13.35, allocations: 0 / 4.766 GB, free: 157.7 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.01873/13.37, allocations: 9.031 MB / 4.775 GB, free: 148.6 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.594e-05/13.37, allocations: 154.3 kB / 4.775 GB, free: 148.5 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01575/13.39, allocations: 7.198 MB / 4.782 GB, free: 141.3 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001587/13.39, allocations: 113.6 kB / 4.782 GB, free: 141.2 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.00486/13.39, allocations: 4.323 MB / 4.787 GB, free: 136.8 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.002608/13.4, allocations: 1.556 MB / 4.788 GB, free: 135.3 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004421/13.4, allocations: 122.9 kB / 4.788 GB, free: 135.2 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0003149/13.4, allocations: 0.542 MB / 4.789 GB, free: 134.6 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004061/13.4, allocations: 2.982 MB / 4.792 GB, free: 131.6 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005722/13.41, allocations: 4.853 MB / 4.797 GB, free: 126 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007402/13.41, allocations: 4.03 MB / 4.8 GB, free: 122 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.433e-05/13.41, allocations: 16 kB / 4.8 GB, free: 122 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02277/13.44, allocations: 8.864 MB / 4.809 GB, free: 113.1 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.009705/13.45, allocations: 29.27 MB / 4.838 GB, free: 81.05 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001906/13.45, allocations: 59.94 kB / 4.838 GB, free: 80.99 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001328/13.45, allocations: 100 kB / 4.838 GB, free: 80.89 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007119/13.45, allocations: 1.435 MB / 4.839 GB, free: 79.46 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001388/13.45, allocations: 123.6 kB / 4.839 GB, free: 79.34 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009635/13.46, allocations: 0.6271 MB / 4.84 GB, free: 78.71 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00161/13.47, allocations: 287.3 kB / 4.84 GB, free: 78.43 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/13.47, allocations: 4 kB / 4.84 GB, free: 78.43 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01297/13.48, allocations: 8.262 MB / 4.848 GB, free: 70.15 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/13.48, allocations: 60 kB / 4.848 GB, free: 70.09 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.029e-05/13.48, allocations: 96 kB / 4.848 GB, free: 70 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005745/13.48, allocations: 1.44 MB / 4.85 GB, free: 68.55 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001088/13.48, allocations: 134 kB / 4.85 GB, free: 68.43 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009014/13.49, allocations: 0.5962 MB / 4.851 GB, free: 67.83 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001672/13.5, allocations: 284 kB / 4.851 GB, free: 67.55 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 () * Number of clocked 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.009623/13.51, allocations: 3.598 MB / 4.854 GB, free: 63.93 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003225/13.51, allocations: 0.7257 MB / 4.855 GB, free: 63.2 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01297/13.52, allocations: 7.115 MB / 4.862 GB, free: 56.05 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.171e-05/13.52, allocations: 40 kB / 4.862 GB, free: 56.02 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/13.52, allocations: 4 kB / 4.862 GB, free: 56.01 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007575/13.53, allocations: 5.824 MB / 4.868 GB, free: 50.15 MB / 1.182 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.0335/13.56, allocations: 16.42 MB / 4.884 GB, free: 33.71 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/13.56, allocations: 3.984 kB / 4.884 GB, free: 33.71 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004153/13.57, allocations: 0.9051 MB / 4.885 GB, free: 32.8 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-05/13.57, allocations: 12 kB / 4.885 GB, free: 32.79 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003788/13.57, allocations: 123.9 kB / 4.885 GB, free: 32.67 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-05/13.57, allocations: 16 kB / 4.885 GB, free: 32.65 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/13.57, allocations: 0 / 4.885 GB, free: 32.65 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01543/13.58, allocations: 10.79 MB / 4.895 GB, free: 21.78 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007264/13.59, allocations: 1.757 MB / 4.897 GB, free: 20 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002795/13.59, allocations: 99.94 kB / 4.897 GB, free: 19.9 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007474/13.6, allocations: 0.569 MB / 4.898 GB, free: 19.33 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005115/13.6, allocations: 259 kB / 4.898 GB, free: 19.08 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000715/13.6, allocations: 199.8 kB / 4.898 GB, free: 18.88 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01295/13.61, allocations: 5.631 MB / 4.904 GB, free: 13.28 MB / 1.182 GB Notification: Performance of sort global known variables: time 3.9e-07/13.61, allocations: 0 / 4.904 GB, free: 13.28 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02524/13.64, allocations: 4.924 MB / 4.908 GB, free: 8.348 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) * Number of clocked states: 0 () * 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.02539/13.67, allocations: 12.24 MB / 4.92 GB, free: 12.15 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.02121/13.69, allocations: 11.46 MB / 4.932 GB, free: 0.668 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/13.69, allocations: 10.44 kB / 4.932 GB, free: 0.6641 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.8508/14.54, allocations: 3.198 MB / 4.935 GB, free: 226.2 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02181/14.56, allocations: 4.376 MB / 4.939 GB, free: 226.2 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.241/14.8, allocations: 115.6 MB / 5.052 GB, free: 154.2 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007825/14.81, allocations: 6.299 MB / 5.058 GB, free: 153.3 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.01597/14.82, allocations: 4.355 MB / 5.062 GB, free: 153.3 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009057/14.83, allocations: 3.76 MB / 5.066 GB, free: 153.3 MB / 1.198 GB Notification: Performance of SimCode: time 1.032e-06/14.83, allocations: 0 / 5.066 GB, free: 153.3 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3983/15.23, allocations: 238.1 MB / 5.299 GB, free: 40.02 MB / 1.198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/15.23, allocations: 214.7 kB / 5.299 GB, free: 39.79 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.963/24.19, allocations: 0 / 5.299 GB, free: 39.79 MB / 1.198 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