Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.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: translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|shaCoe.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|shaCoe.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.466/2.466, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.00109/0.00109, allocations: 180 kB / 0.4902 GB, free: 2.23 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.653/1.653, allocations: 223.2 MB / 0.7992 GB, free: 14.7 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.001071/0.001071, allocations: 96.31 kB / 0.9396 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004457/0.0004457, allocations: 6.844 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3644, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.927/7.291, allocations: 2.2 GB / 3.429 GB, free: 189 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/7.291, allocations: 92.44 kB / 3.429 GB, free: 188.9 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 3.75/11.04, allocations: 0.9454 GB / 4.375 GB, free: 157.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.843e-06/11.04, allocations: 0 / 4.375 GB, free: 157.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.001122/11.04, allocations: 135.8 kB / 4.375 GB, free: 156.9 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: 985 * Number of variables: 985 Notification: Performance of Generate backend data structure: time 0.02814/11.07, allocations: 5.186 MB / 4.38 GB, free: 151.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/11.07, allocations: 8.828 kB / 4.38 GB, free: 151.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01529/11.09, allocations: 1.289 MB / 4.381 GB, free: 150.4 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02621/11.11, allocations: 5.577 MB / 4.387 GB, free: 144.7 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004353/11.11, allocations: 287.5 kB / 4.387 GB, free: 144.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001861/11.12, allocations: 383.9 kB / 4.387 GB, free: 144.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02058/11.14, allocations: 5.429 MB / 4.392 GB, free: 138.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001646/11.14, allocations: 7.938 kB / 4.392 GB, free: 138.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008293/11.14, allocations: 160 kB / 4.393 GB, free: 138.3 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002197/11.14, allocations: 179.3 kB / 4.393 GB, free: 138.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01932/11.16, allocations: 5.314 MB / 4.398 GB, free: 132.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.03549/11.19, allocations: 19.47 MB / 4.417 GB, free: 112.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006938/11.2, allocations: 3.584 MB / 4.421 GB, free: 109.2 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001783/11.2, allocations: 1.868 MB / 4.422 GB, free: 106.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004299/11.2, allocations: 2.081 MB / 4.424 GB, free: 104.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=265): time 4.649e-06/11.21, allocations: 0 / 4.424 GB, free: 104.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=265): time 0.01217/11.22, allocations: 5.155 MB / 4.429 GB, free: 99.55 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.391e-05/11.22, allocations: 291.1 kB / 4.43 GB, free: 99.21 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00592/11.22, allocations: 3.555 MB / 4.433 GB, free: 95.67 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0009408/11.22, allocations: 81.7 kB / 4.433 GB, free: 95.59 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001829/11.23, allocations: 1.995 MB / 4.435 GB, free: 93.57 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001247/11.23, allocations: 0.9011 MB / 4.436 GB, free: 92.66 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/11.23, allocations: 56 kB / 4.436 GB, free: 92.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001469/11.23, allocations: 424 kB / 4.437 GB, free: 92.18 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003212/11.23, allocations: 1.583 MB / 4.438 GB, free: 90.59 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003594/11.23, allocations: 2.264 MB / 4.44 GB, free: 88.05 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003613/11.24, allocations: 1.924 MB / 4.442 GB, free: 86.11 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/11.24, allocations: 8 kB / 4.442 GB, free: 86.11 MB / 1.167 GB Notification: Performance of matching and sorting (n=374) (initialization): time 0.009794/11.25, allocations: 4.438 MB / 4.446 GB, free: 81.62 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001229/11.25, allocations: 7.446 MB / 4.454 GB, free: 73.57 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/11.25, allocations: 16 kB / 4.454 GB, free: 73.55 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006708/11.25, allocations: 124.7 kB / 4.454 GB, free: 73.43 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004277/11.25, allocations: 0.8151 MB / 4.455 GB, free: 72.61 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/11.26, allocations: 1.58 MB / 4.456 GB, free: 70.89 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005441/11.26, allocations: 0.547 MB / 4.457 GB, free: 70.34 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007078/11.26, allocations: 143.9 kB / 4.457 GB, free: 70.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/11.26, allocations: 4 kB / 4.457 GB, free: 70.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008437/11.27, allocations: 4.089 MB / 4.461 GB, free: 66.07 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.099e-05/11.27, allocations: 20.91 kB / 4.461 GB, free: 66.05 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005962/11.27, allocations: 120.8 kB / 4.461 GB, free: 65.93 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003875/11.28, allocations: 0.8074 MB / 4.462 GB, free: 65.12 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/11.28, allocations: 1.582 MB / 4.463 GB, free: 63.39 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005107/11.28, allocations: 0.4929 MB / 4.464 GB, free: 62.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000589/11.28, allocations: 147.9 kB / 4.464 GB, free: 62.75 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (372): * Single equations (assignments): 371 * Array equations: 0 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.003821/11.29, allocations: 1.525 MB / 4.465 GB, free: 61.22 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00171/11.29, allocations: 399.1 kB / 4.466 GB, free: 60.82 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01132/11.3, allocations: 4.424 MB / 4.47 GB, free: 56.34 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/11.3, allocations: 28 kB / 4.47 GB, free: 56.32 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/11.3, allocations: 0 / 4.47 GB, free: 56.32 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00793/11.31, allocations: 3.535 MB / 4.474 GB, free: 52.69 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02117/11.33, allocations: 9.383 MB / 4.483 GB, free: 43.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/11.33, allocations: 7.984 kB / 4.483 GB, free: 43.09 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003232/11.33, allocations: 0.6441 MB / 4.483 GB, free: 42.45 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005138/11.33, allocations: 92.78 kB / 4.484 GB, free: 42.36 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002615/11.33, allocations: 91.92 kB / 4.484 GB, free: 42.27 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00152/11.33, allocations: 1.575 MB / 4.485 GB, free: 40.55 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/11.33, allocations: 4 kB / 4.485 GB, free: 40.54 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/11.35, allocations: 6.557 MB / 4.492 GB, free: 33.77 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003381/11.35, allocations: 1.104 MB / 4.493 GB, free: 32.64 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001254/11.35, allocations: 64 kB / 4.493 GB, free: 32.57 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004451/11.36, allocations: 323.4 kB / 4.493 GB, free: 32.26 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003858/11.36, allocations: 185.8 kB / 4.493 GB, free: 32.07 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003358/11.36, allocations: 135.9 kB / 4.493 GB, free: 31.94 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.004359/11.36, allocations: 2.806 MB / 4.496 GB, free: 29.16 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.4e-07/11.36, allocations: 0 / 4.496 GB, free: 29.16 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.008626/11.37, allocations: 2.482 MB / 4.499 GB, free: 26.67 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (285): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003564/11.37, allocations: 1.688 MB / 4.5 GB, free: 25.17 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.01259/11.39, allocations: 6.178 MB / 4.506 GB, free: 18.94 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.317e-05/11.39, allocations: 5 kB / 4.506 GB, free: 18.94 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003858/11.39, allocations: 1.979 MB / 4.508 GB, free: 16.94 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01096/11.4, allocations: 2.028 MB / 4.51 GB, free: 14.95 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01933/11.42, allocations: 11.38 MB / 4.521 GB, free: 3.465 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002409/11.42, allocations: 3.156 MB / 4.524 GB, free: 284 kB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.7039/12.13, allocations: 2.069 MB / 4.526 GB, free: 238.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001641/12.13, allocations: 403.3 kB / 4.527 GB, free: 238.2 MB / 1.167 GB Notification: Performance of SimCode: time 1.232e-06/12.13, allocations: 0 / 4.527 GB, free: 238.2 MB / 1.167 GB Notification: Performance of Templates: time 0.1687/12.3, allocations: 91.43 MB / 4.616 GB, free: 234.5 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.csv","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches