Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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: translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|solCol.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|solCol.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.335/2.335, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001211/0.001211, allocations: 173.1 kB / 498.1 MB, free: 5.75 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.67/1.67, allocations: 223.2 MB / 0.7949 GB, free: 17.86 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.0009658/0.0009657, allocations: 88.33 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004354/0.0004356, allocations: 8.75 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.388, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.258/6.646, allocations: 2.12 GB / 3.343 GB, free: 367.2 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/6.646, allocations: 99.89 kB / 3.343 GB, free: 367.1 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 5.713/12.36, allocations: 1.391 GB / 4.735 GB, free: 227.5 MB / 1.167 GB Notification: Performance of FrontEnd: time 4.007e-06/12.36, allocations: 0 / 4.735 GB, free: 227.5 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.001016/12.36, allocations: 139 kB / 4.735 GB, free: 227.5 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: 993 * Number of variables: 993 Notification: Performance of Generate backend data structure: time 0.02801/12.39, allocations: 5.688 MB / 4.74 GB, free: 225.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 7.236e-05/12.39, allocations: 7.75 kB / 4.74 GB, free: 225.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01476/12.4, allocations: 1.64 MB / 4.742 GB, free: 225.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02099/12.42, allocations: 5.862 MB / 4.748 GB, free: 224.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005174/12.42, allocations: 287.1 kB / 4.748 GB, free: 224.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00262/12.43, allocations: 375.5 kB / 4.748 GB, free: 224.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01725/12.44, allocations: 5.52 MB / 4.754 GB, free: 223.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.579e-05/12.44, allocations: 9.562 kB / 4.754 GB, free: 223.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006638/12.45, allocations: 161.8 kB / 4.754 GB, free: 223.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/12.45, allocations: 159.4 kB / 4.754 GB, free: 223.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01521/12.46, allocations: 5.398 MB / 4.759 GB, free: 223.8 MB / 1.167 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.04925/12.51, allocations: 19.25 MB / 4.778 GB, free: 218.2 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009174/12.52, allocations: 3.796 MB / 4.782 GB, free: 218.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002742/12.52, allocations: 2.832 MB / 4.784 GB, free: 215.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005331/12.53, allocations: 2.144 MB / 4.787 GB, free: 214.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=285): time 6.843e-06/12.53, allocations: 0 / 4.787 GB, free: 214.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=285): time 0.01773/12.54, allocations: 6.875 MB / 4.793 GB, free: 213.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001865/12.55, allocations: 290.3 kB / 4.793 GB, free: 213.2 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008446/12.55, allocations: 3.361 MB / 4.797 GB, free: 212.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001309/12.56, allocations: 80.58 kB / 4.797 GB, free: 212.2 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.002473/12.56, allocations: 1.971 MB / 4.799 GB, free: 210.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.002323/12.56, allocations: 0.9729 MB / 4.8 GB, free: 210 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002494/12.56, allocations: 59.34 kB / 4.8 GB, free: 209.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0002638/12.56, allocations: 424.7 kB / 4.8 GB, free: 209.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003733/12.56, allocations: 1.617 MB / 4.802 GB, free: 209 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004246/12.57, allocations: 2.262 MB / 4.804 GB, free: 207.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004529/12.57, allocations: 1.956 MB / 4.806 GB, free: 207 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.196e-05/12.57, allocations: 7.75 kB / 4.806 GB, free: 207 MB / 1.167 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.01203/12.59, allocations: 4.518 MB / 4.81 GB, free: 205.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.00228/12.59, allocations: 6.576 MB / 4.817 GB, free: 198.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.785e-05/12.59, allocations: 14.94 kB / 4.817 GB, free: 198.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007606/12.59, allocations: 119.2 kB / 4.817 GB, free: 198.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005253/12.59, allocations: 0.8086 MB / 4.818 GB, free: 198.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002522/12.6, allocations: 2.164 MB / 4.82 GB, free: 196.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007486/12.6, allocations: 0.5171 MB / 4.82 GB, free: 196.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001441/12.61, allocations: 159 kB / 4.82 GB, free: 196 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/12.61, allocations: 7.75 kB / 4.82 GB, free: 196 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01484/12.62, allocations: 4.167 MB / 4.824 GB, free: 194.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.667e-05/12.62, allocations: 14.72 kB / 4.825 GB, free: 194.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007071/12.62, allocations: 119.5 kB / 4.825 GB, free: 194.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005154/12.63, allocations: 0.793 MB / 4.825 GB, free: 194.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/12.63, allocations: 1.582 MB / 4.827 GB, free: 193 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007706/12.64, allocations: 495.7 kB / 4.827 GB, free: 192.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001426/12.64, allocations: 160.9 kB / 4.828 GB, free: 192.8 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (379): * Single equations (assignments): 377 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.006358/12.64, allocations: 1.545 MB / 4.829 GB, free: 192 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002605/12.65, allocations: 400.9 kB / 4.829 GB, free: 191.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01818/12.66, allocations: 5.143 MB / 4.834 GB, free: 190 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.306e-05/12.66, allocations: 29.28 kB / 4.835 GB, free: 190 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.978e-05/12.66, allocations: 0 / 4.835 GB, free: 190 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01148/12.68, allocations: 4.094 MB / 4.839 GB, free: 186.8 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03258/12.71, allocations: 9.923 MB / 4.848 GB, free: 179.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.924e-05/12.71, allocations: 0 / 4.848 GB, free: 179.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004889/12.71, allocations: 0.6305 MB / 4.849 GB, free: 178.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003592/12.72, allocations: 0.6567 MB / 4.849 GB, free: 178.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001277/12.72, allocations: 94.22 kB / 4.85 GB, free: 178 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008222/12.73, allocations: 7.513 MB / 4.857 GB, free: 170.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/12.73, allocations: 7.969 kB / 4.857 GB, free: 170.3 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02532/12.75, allocations: 6.849 MB / 4.864 GB, free: 164.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005716/12.76, allocations: 1.096 MB / 4.865 GB, free: 163.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002548/12.76, allocations: 60 kB / 4.865 GB, free: 163.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006075/12.77, allocations: 332.5 kB / 4.865 GB, free: 163.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007162/12.77, allocations: 186.9 kB / 4.865 GB, free: 163 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007165/12.77, allocations: 133.2 kB / 4.865 GB, free: 162.9 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.006431/12.78, allocations: 2.661 MB / 4.868 GB, free: 160.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 4.31e-07/12.78, allocations: 0 / 4.868 GB, free: 160.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0139/12.79, allocations: 2.75 MB / 4.871 GB, free: 158 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (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) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (274): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.005425/12.79, allocations: 1.673 MB / 4.872 GB, free: 157 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.01705/12.81, allocations: 6.36 MB / 4.878 GB, free: 151.6 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.521e-05/12.81, allocations: 0.5625 kB / 4.878 GB, free: 151.6 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.005487/12.82, allocations: 2.157 MB / 4.881 GB, free: 149.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01013/12.83, allocations: 1.932 MB / 4.882 GB, free: 148.4 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02512/12.85, allocations: 11.53 MB / 4.894 GB, free: 138.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004299/12.86, allocations: 3.178 MB / 4.897 GB, free: 135.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.009262/12.87, allocations: 2.35 MB / 4.899 GB, free: 133.6 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/12.87, allocations: 427 kB / 4.9 GB, free: 133.1 MB / 1.167 GB Notification: Performance of SimCode: time 1.062e-06/12.87, allocations: 0 / 4.9 GB, free: 133.1 MB / 1.167 GB Notification: Performance of Templates: time 0.1423/13.01, allocations: 90.86 MB / 4.988 GB, free: 44.12 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Examples_FlatPlate.csv","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches