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.213/2.213, allocations: 387.1 MB / 399.7 MB, free: 9.496 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.001081/0.001081, allocations: 180.9 kB / 492.3 MB, free: 0.6172 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.541/1.541, allocations: 221.3 MB / 0.7871 GB, free: 12.85 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.000909/0.000909, allocations: 105.5 kB / 0.9267 GB, free: 13.92 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.309e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2845, allocations: 142.4 MB / 1.212 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.3/1.585, allocations: 423.4 MB / 1.626 GB, free: 7.102 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/1.585, allocations: 88.83 kB / 1.626 GB, free: 7.059 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 11.49/13.07, allocations: 3.013 GB / 4.639 GB, free: 212.7 MB / 1.182 GB Notification: Performance of FrontEnd: time 2.805e-06/13.07, allocations: 0 / 4.639 GB, free: 212.7 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.001928/13.08, allocations: 267.7 kB / 4.64 GB, free: 212.6 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.03078/13.11, allocations: 8.329 MB / 4.648 GB, free: 207.6 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/13.11, allocations: 13.81 kB / 4.648 GB, free: 207.6 MB / 1.182 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005973/13.11, allocations: 1.135 MB / 4.649 GB, free: 206.8 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/13.12, allocations: 1.176 MB / 4.65 GB, free: 206.2 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03123/13.15, allocations: 11.05 MB / 4.661 GB, free: 199.6 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008214/13.15, allocations: 0.6133 MB / 4.661 GB, free: 199.4 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003891/13.16, allocations: 0.8247 MB / 4.662 GB, free: 199.1 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0355/13.19, allocations: 11.55 MB / 4.674 GB, free: 192.3 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000652/13.19, allocations: 27.47 kB / 4.674 GB, free: 192.2 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003472/13.2, allocations: 359 kB / 4.674 GB, free: 192 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002377/13.2, allocations: 249.4 kB / 4.674 GB, free: 192 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02188/13.22, allocations: 9.438 MB / 4.683 GB, free: 183.6 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.07567/13.3, allocations: 46.61 MB / 4.729 GB, free: 135.4 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008677/13.3, allocations: 6.243 MB / 4.735 GB, free: 129.2 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006569/13.31, allocations: 5.413 MB / 4.74 GB, free: 123.8 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001072/13.31, allocations: 0.8185 MB / 4.741 GB, free: 122.8 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005076/13.32, allocations: 3.323 MB / 4.744 GB, free: 119.4 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004885/13.32, allocations: 0.5551 MB / 4.745 GB, free: 118.9 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 1.437e-05/13.32, allocations: 0 / 4.745 GB, free: 118.9 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.009731/13.33, allocations: 6.203 MB / 4.751 GB, free: 112.6 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.554e-05/13.33, allocations: 158.2 kB / 4.751 GB, free: 112.5 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01148/13.34, allocations: 7.127 MB / 4.758 GB, free: 105.4 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001326/13.34, allocations: 113.7 kB / 4.758 GB, free: 105.2 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.004592/13.35, allocations: 4.32 MB / 4.762 GB, free: 100.9 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.002523/13.35, allocations: 1.561 MB / 4.764 GB, free: 99.36 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/13.35, allocations: 116 kB / 4.764 GB, free: 99.25 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0002889/13.35, allocations: 0.5498 MB / 4.764 GB, free: 98.69 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003731/13.36, allocations: 2.893 MB / 4.767 GB, free: 95.79 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004414/13.36, allocations: 4.771 MB / 4.772 GB, free: 90.18 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004785/13.37, allocations: 3.961 MB / 4.776 GB, free: 86.2 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.332e-05/13.37, allocations: 19.95 kB / 4.776 GB, free: 86.18 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01317/13.38, allocations: 8.682 MB / 4.784 GB, free: 77.47 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.0056/13.38, allocations: 29.27 MB / 4.813 GB, free: 45.39 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/13.38, allocations: 60 kB / 4.813 GB, free: 45.33 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001209/13.38, allocations: 96 kB / 4.813 GB, free: 45.23 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006443/13.39, allocations: 1.45 MB / 4.814 GB, free: 43.79 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000121/13.39, allocations: 123.6 kB / 4.815 GB, free: 43.66 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01044/13.4, allocations: 0.623 MB / 4.815 GB, free: 43.04 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001907/13.4, allocations: 280 kB / 4.815 GB, free: 42.77 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/13.4, allocations: 4.781 kB / 4.815 GB, free: 42.77 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01677/13.42, allocations: 8.083 MB / 4.823 GB, free: 34.67 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001812/13.42, allocations: 63.98 kB / 4.823 GB, free: 34.61 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001024/13.42, allocations: 96 kB / 4.824 GB, free: 34.51 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005852/13.43, allocations: 1.443 MB / 4.825 GB, free: 33.07 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001496/13.43, allocations: 123.6 kB / 4.825 GB, free: 32.95 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008504/13.44, allocations: 0.6077 MB / 4.826 GB, free: 32.34 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0012/13.44, allocations: 284 kB / 4.826 GB, free: 32.06 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.002389/13.44, allocations: 0.5335 MB / 4.826 GB, free: 31.5 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002998/13.44, allocations: 0.7209 MB / 4.827 GB, free: 30.78 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01466/13.46, allocations: 6.965 MB / 4.834 GB, free: 23.79 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.699e-05/13.46, allocations: 48 kB / 4.834 GB, free: 23.74 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.376e-05/13.46, allocations: 3.938 kB / 4.834 GB, free: 23.74 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008867/13.47, allocations: 5.664 MB / 4.84 GB, free: 18.04 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.04092/13.51, allocations: 16.48 MB / 4.856 GB, free: 1.508 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/13.51, allocations: 7.938 kB / 4.856 GB, free: 1.5 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004529/13.51, allocations: 0.9129 MB / 4.857 GB, free: 0.5859 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.107e-05/13.51, allocations: 12 kB / 4.857 GB, free: 0.5742 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009179/13.51, allocations: 119.9 kB / 4.857 GB, free: 468 kB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.221e-05/13.51, allocations: 16 kB / 4.857 GB, free: 452 kB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/13.51, allocations: 4 kB / 4.857 GB, free: 448 kB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.8603/14.37, allocations: 10.55 MB / 4.867 GB, free: 210.8 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007085/14.38, allocations: 1.759 MB / 4.869 GB, free: 210.6 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002722/14.38, allocations: 92.39 kB / 4.869 GB, free: 210.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007291/14.39, allocations: 0.5642 MB / 4.869 GB, free: 210.6 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006679/14.39, allocations: 256.3 kB / 4.87 GB, free: 210.6 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006349/14.39, allocations: 199.1 kB / 4.87 GB, free: 210.6 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01263/14.4, allocations: 5.561 MB / 4.875 GB, free: 210.3 MB / 1.182 GB Notification: Performance of sort global known variables: time 7.51e-07/14.4, allocations: 0 / 4.875 GB, free: 210.3 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02312/14.43, allocations: 4.915 MB / 4.88 GB, free: 210 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.01917/14.45, allocations: 12.01 MB / 4.892 GB, free: 208.4 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.01967/14.47, allocations: 11.42 MB / 4.903 GB, free: 208 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/14.47, allocations: 3.719 kB / 4.903 GB, free: 208 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.004428/14.47, allocations: 3.129 MB / 4.906 GB, free: 207.9 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0243/14.49, allocations: 4.388 MB / 4.91 GB, free: 207.9 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04913/14.54, allocations: 19.54 MB / 4.929 GB, free: 204.9 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006159/14.55, allocations: 6.313 MB / 4.935 GB, free: 204 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.01923/14.57, allocations: 6.666 MB / 4.942 GB, free: 203.9 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006898/14.58, allocations: 3.632 MB / 4.946 GB, free: 203.9 MB / 1.182 GB Notification: Performance of SimCode: time 1.072e-06/14.58, allocations: 0 / 4.946 GB, free: 203.9 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3497/14.93, allocations: 240.6 MB / 5.181 GB, free: 81.97 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/14.93, allocations: 187.7 kB / 5.181 GB, free: 81.75 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/25.18, allocations: 7.938 kB / 5.181 GB, free: 81.74 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