Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.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.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",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.258/2.258, allocations: 387.1 MB / 399.7 MB, free: 9.383 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.001177/0.001177, allocations: 187.9 kB / 492.3 MB, free: 0.5859 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.5/1.5, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.0008922/0.0008923, allocations: 93.81 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.686e-05/2.7e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2647, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.57/5.835, allocations: 2.24 GB / 3.453 GB, free: 47.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/5.835, allocations: 92.02 kB / 3.453 GB, free: 47.16 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 9.802/15.64, allocations: 2.549 GB / 6.002 GB, free: 134.2 MB / 1.198 GB Notification: Performance of FrontEnd: time 1.382e-06/15.64, allocations: 0 / 6.002 GB, free: 134.2 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.00192/15.64, allocations: 275.5 kB / 6.002 GB, free: 134.1 MB / 1.198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2053 * Number of variables: 2053 Notification: Performance of Generate backend data structure: time 0.03086/15.67, allocations: 8.947 MB / 6.011 GB, free: 130.5 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/15.67, allocations: 7.906 kB / 6.011 GB, free: 130.5 MB / 1.198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004832/15.68, allocations: 1.067 MB / 6.012 GB, free: 130.4 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01458/15.69, allocations: 2.168 MB / 6.014 GB, free: 129.7 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03515/15.73, allocations: 12.07 MB / 6.026 GB, free: 128.3 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006903/15.73, allocations: 0.6015 MB / 6.026 GB, free: 128.2 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003667/15.73, allocations: 0.799 MB / 6.027 GB, free: 128.2 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02787/15.76, allocations: 10.84 MB / 6.038 GB, free: 124.6 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002245/15.76, allocations: 26.47 kB / 6.038 GB, free: 124.6 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001271/15.76, allocations: 339.9 kB / 6.038 GB, free: 124.3 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002447/15.76, allocations: 340.5 kB / 6.038 GB, free: 124.3 MB / 1.198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01957/15.78, allocations: 9.674 MB / 6.048 GB, free: 120.8 MB / 1.198 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.07168/15.85, allocations: 45.48 MB / 6.092 GB, free: 81.16 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01215/15.86, allocations: 7.453 MB / 6.1 GB, free: 73.75 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006023/15.87, allocations: 3.743 MB / 6.103 GB, free: 69.99 MB / 1.198 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 evalFunc (simulation): time 0.03755/15.91, allocations: 18.44 MB / 6.121 GB, free: 50.75 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006305/15.91, allocations: 3.402 MB / 6.125 GB, free: 47.28 MB / 1.198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005296/15.92, allocations: 0.7713 MB / 6.125 GB, free: 46.5 MB / 1.198 GB Notification: Performance of pre-optimization done (n=511): time 1.387e-05/15.92, allocations: 4 kB / 6.125 GB, free: 46.5 MB / 1.198 GB Notification: Performance of matching and sorting (n=511): time 0.01413/15.93, allocations: 6.234 MB / 6.131 GB, free: 40.15 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.154e-05/15.93, allocations: 313 kB / 6.132 GB, free: 39.78 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01387/15.95, allocations: 7.161 MB / 6.139 GB, free: 32.62 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001431/15.95, allocations: 133.7 kB / 6.139 GB, free: 32.49 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.004933/15.95, allocations: 4.376 MB / 6.143 GB, free: 28.07 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.002804/15.96, allocations: 1.764 MB / 6.145 GB, free: 26.29 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00156/15.96, allocations: 128 kB / 6.145 GB, free: 26.16 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0007543/15.96, allocations: 0.5589 MB / 6.145 GB, free: 25.59 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00599/15.96, allocations: 3.066 MB / 6.148 GB, free: 22.52 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006542/15.97, allocations: 4.787 MB / 6.153 GB, free: 17.02 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006445/15.98, allocations: 3.953 MB / 6.157 GB, free: 13.03 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.779e-05/15.98, allocations: 16 kB / 6.157 GB, free: 13.01 MB / 1.198 GB Notification: Performance of matching and sorting (n=824) (initialization): time 0.01971/16, allocations: 8.958 MB / 6.166 GB, free: 3.969 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.008687/16.01, allocations: 23.89 MB / 6.189 GB, free: 10.43 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001078/16.01, allocations: 48 kB / 6.189 GB, free: 10.38 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005059/16.01, allocations: 164.7 kB / 6.189 GB, free: 10.22 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008763/16.01, allocations: 1.701 MB / 6.191 GB, free: 8.52 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007638/16.02, allocations: 0.7122 MB / 6.192 GB, free: 7.781 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01042/16.03, allocations: 0.7092 MB / 6.192 GB, free: 7.07 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001954/16.03, allocations: 319.8 kB / 6.193 GB, free: 6.758 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/16.03, allocations: 4 kB / 6.193 GB, free: 6.754 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.7738/16.8, allocations: 8.247 MB / 6.201 GB, free: 158.9 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/16.8, allocations: 45.91 kB / 6.201 GB, free: 158.9 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004812/16.8, allocations: 168.1 kB / 6.201 GB, free: 158.9 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01048/16.81, allocations: 1.697 MB / 6.203 GB, free: 158.9 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/16.81, allocations: 0.7101 MB / 6.203 GB, free: 158.4 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01047/16.82, allocations: 0.6818 MB / 6.204 GB, free: 158.4 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00193/16.83, allocations: 307 kB / 6.204 GB, free: 158.4 MB / 1.229 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (819): * Single equations (assignments): 817 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001834/16.83, allocations: 500 kB / 6.205 GB, free: 158.3 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002665/16.83, allocations: 0.7726 MB / 6.205 GB, free: 158.3 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01678/16.85, allocations: 7.452 MB / 6.213 GB, free: 158 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-05/16.85, allocations: 53.25 kB / 6.213 GB, free: 158 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/16.85, allocations: 1.25 kB / 6.213 GB, free: 158 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01022/16.86, allocations: 5.782 MB / 6.218 GB, free: 157.5 MB / 1.229 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.04656/16.9, allocations: 16.87 MB / 6.235 GB, free: 156.7 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.218e-05/16.9, allocations: 3.953 kB / 6.235 GB, free: 156.7 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006261/16.91, allocations: 1.171 MB / 6.236 GB, free: 156.7 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003524/16.91, allocations: 90.03 kB / 6.236 GB, free: 156.6 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001143/16.91, allocations: 153.6 kB / 6.236 GB, free: 156.6 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004621/16.91, allocations: 0.6213 MB / 6.237 GB, free: 156.1 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/16.91, allocations: 3.625 kB / 6.237 GB, free: 156.1 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02085/16.93, allocations: 10.82 MB / 6.247 GB, free: 155.3 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007562/16.94, allocations: 1.952 MB / 6.249 GB, free: 154.7 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003409/16.95, allocations: 115 kB / 6.249 GB, free: 154.7 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008871/16.95, allocations: 0.6021 MB / 6.25 GB, free: 154.7 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001136/16.96, allocations: 310.8 kB / 6.25 GB, free: 154.7 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001291/16.96, allocations: 231.1 kB / 6.251 GB, free: 154.7 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.01585/16.97, allocations: 5.633 MB / 6.256 GB, free: 154.4 MB / 1.229 GB Notification: Performance of sort global known variables: time 4.01e-07/16.97, allocations: 2.938 kB / 6.256 GB, free: 154.4 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.02801/17, allocations: 5.265 MB / 6.261 GB, free: 154.1 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 27 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.indTanHex.vol[1].dynBal.U,tan.indTanHex.vol[2].dynBal.U,tan.indTanHex.vol[3].dynBal.U,tan.indTanHex.vol[4].dynBal.U,tan.indTanHex.cap[1].T,tan.indTanHex.cap[2].T,tan.indTanHex.cap[3].T,tan.indTanHex.cap[4].T,pum.filter.s[1],pum.filter.s[2],exp.m,exp.H) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (537): * Single equations (assignments): 526 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.02562/17.03, allocations: 13.83 MB / 6.275 GB, free: 152.1 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01902/17.05, allocations: 11.7 MB / 6.286 GB, free: 151.9 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/17.05, allocations: 9.25 kB / 6.286 GB, free: 151.9 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.005228/17.05, allocations: 3.166 MB / 6.289 GB, free: 151.9 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02195/17.07, allocations: 4.113 MB / 6.293 GB, free: 151.8 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04262/17.12, allocations: 19.84 MB / 6.313 GB, free: 148.6 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005137/17.12, allocations: 6.235 MB / 6.319 GB, free: 147.6 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.0218/17.14, allocations: 6.021 MB / 6.325 GB, free: 147.6 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007999/17.15, allocations: 4.117 MB / 6.329 GB, free: 147.5 MB / 1.229 GB Notification: Performance of SimCode: time 1.132e-06/17.15, allocations: 0 / 6.329 GB, free: 147.5 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3605/17.51, allocations: 260.9 MB / 6.583 GB, free: 33.61 MB / 1.229 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/17.51, allocations: 240.5 kB / 6.584 GB, free: 33.29 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/28.99, allocations: 0 / 6.584 GB, free: 33.29 MB / 1.229 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank_res.mat does not exist to compare? outputFormat=mat