Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.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.Validation.FlatPlate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.30..T|datRea.y.2.",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate") translateModel(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.30..T|datRea.y.2.",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.415/2.415, allocations: 390.5 MB / 398 MB, free: 10.93 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.001345/0.001345, allocations: 180.9 kB / 491.2 MB, free: 1.594 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.552/1.552, allocations: 221.5 MB / 0.7868 GB, free: 13.37 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.001092/0.001092, allocations: 79.59 kB / 0.9269 GB, free: 13.88 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.573e-05/1.577e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2837, allocations: 143 MB / 1.212 GB, free: 39.58 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.678/5.962, allocations: 2.2 GB / 3.412 GB, free: 99.36 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/5.963, allocations: 91.95 kB / 3.413 GB, free: 99.27 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 9.462/15.42, allocations: 2.13 GB / 5.542 GB, free: 150.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.755e-06/15.42, allocations: 0 / 5.542 GB, free: 150.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.002743/15.43, allocations: 326.5 kB / 5.543 GB, free: 150.4 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2347 * Number of variables: 2347 Notification: Performance of Generate backend data structure: time 0.03619/15.46, allocations: 9.693 MB / 5.552 GB, free: 140.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/15.46, allocations: 8.031 kB / 5.552 GB, free: 140.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01548/15.48, allocations: 2.084 MB / 5.554 GB, free: 138.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0408/15.52, allocations: 15.21 MB / 5.569 GB, free: 123.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005983/15.52, allocations: 287.9 kB / 5.569 GB, free: 123.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004242/15.52, allocations: 0.5038 MB / 5.57 GB, free: 122.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02632/15.55, allocations: 10.31 MB / 5.58 GB, free: 112.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04194/15.59, allocations: 11.54 MB / 5.591 GB, free: 100.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005544/15.59, allocations: 31.72 kB / 5.591 GB, free: 100.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003726/15.6, allocations: 20 kB / 5.591 GB, free: 100.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003865/15.6, allocations: 469.1 kB / 5.591 GB, free: 99.92 MB / 1.151 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.0888/15.69, allocations: 49.15 MB / 5.639 GB, free: 49.24 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/15.7, allocations: 7.371 MB / 5.647 GB, free: 41.91 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004872/15.7, allocations: 3.909 MB / 5.65 GB, free: 37.98 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001751/15.7, allocations: 1.502 MB / 5.652 GB, free: 36.18 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006075/15.71, allocations: 3.747 MB / 5.656 GB, free: 32.37 MB / 1.151 GB Notification: Performance of pre-optimization done (n=554): time 7.494e-06/15.71, allocations: 0 / 5.656 GB, free: 32.37 MB / 1.151 GB Notification: Performance of matching and sorting (n=554): time 0.06883/15.78, allocations: 11.47 MB / 5.667 GB, free: 20.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001367/15.78, allocations: 351.1 kB / 5.667 GB, free: 20.39 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01545/15.79, allocations: 7.819 MB / 5.675 GB, free: 12.59 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.002169/15.8, allocations: 37.7 kB / 5.675 GB, free: 12.54 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.00581/15.8, allocations: 5.036 MB / 5.68 GB, free: 7.461 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0037/15.81, allocations: 1.852 MB / 5.682 GB, free: 5.582 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006533/15.81, allocations: 0 / 5.682 GB, free: 5.582 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0004866/15.81, allocations: 0.5753 MB / 5.682 GB, free: 5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004227/15.81, allocations: 3.137 MB / 5.685 GB, free: 1.859 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006258/15.82, allocations: 4.965 MB / 5.69 GB, free: 12.1 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.013/16.83, allocations: 16.15 MB / 5.706 GB, free: 219.5 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.825e-05/16.83, allocations: 14.78 kB / 5.706 GB, free: 219.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.1785/17.01, allocations: 20.84 MB / 5.726 GB, free: 219.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.005909/17.02, allocations: 27.74 MB / 5.753 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002125/17.02, allocations: 56.31 kB / 5.753 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002797/17.02, allocations: 96.03 kB / 5.753 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01032/17.03, allocations: 1.841 MB / 5.755 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002041/17.03, allocations: 121.3 kB / 5.755 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01261/17.04, allocations: 1.021 MB / 5.756 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002364/17.04, allocations: 332.9 kB / 5.757 GB, free: 190.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/17.04, allocations: 4.188 kB / 5.757 GB, free: 190.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1644/17.21, allocations: 20 MB / 5.776 GB, free: 190.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001228/17.21, allocations: 58.12 kB / 5.776 GB, free: 190.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.548e-05/17.21, allocations: 95.47 kB / 5.776 GB, free: 190.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007843/17.21, allocations: 1.838 MB / 5.778 GB, free: 190.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001376/17.21, allocations: 123.7 kB / 5.778 GB, free: 190.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01339/17.23, allocations: 0.8973 MB / 5.779 GB, free: 190.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003077/17.23, allocations: 338 kB / 5.779 GB, free: 190.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.datRea.nextTimeEvent,$whenCondition3,$whenCondition2,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,datRea.nextTimeEvent,$PRE.datRea.nextTimeEventScaled,datRea.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (867): * Single equations (assignments): 867 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004303/17.24, allocations: 297.6 kB / 5.78 GB, free: 190.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004875/17.24, allocations: 0.8236 MB / 5.78 GB, free: 189.7 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07109/17.31, allocations: 12.5 MB / 5.793 GB, free: 189 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.999e-05/17.31, allocations: 59.16 kB / 5.793 GB, free: 189 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/17.31, allocations: 3.812 kB / 5.793 GB, free: 189 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06327/17.37, allocations: 10.79 MB / 5.803 GB, free: 188.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09277/17.47, allocations: 22.93 MB / 5.826 GB, free: 187.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/17.47, allocations: 0 / 5.826 GB, free: 187.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006369/17.47, allocations: 1.329 MB / 5.827 GB, free: 187.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.588e-05/17.47, allocations: 22.69 kB / 5.827 GB, free: 187.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005407/17.47, allocations: 115.7 kB / 5.827 GB, free: 187.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.138e-05/17.47, allocations: 24.52 kB / 5.827 GB, free: 187.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/17.47, allocations: 0 / 5.827 GB, free: 187.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07233/17.55, allocations: 16.37 MB / 5.843 GB, free: 185.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007779/17.56, allocations: 2.373 MB / 5.845 GB, free: 185.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003255/17.56, allocations: 36.22 kB / 5.845 GB, free: 185.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009898/17.57, allocations: 0.6143 MB / 5.846 GB, free: 185.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000594/17.57, allocations: 333.6 kB / 5.846 GB, free: 185.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008392/17.57, allocations: 295.8 kB / 5.847 GB, free: 185.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.01222/17.58, allocations: 5.995 MB / 5.853 GB, free: 184.9 MB / 1.167 GB Notification: Performance of sort global known variables: time 7.71e-07/17.58, allocations: 0 / 5.853 GB, free: 184.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.02911/17.61, allocations: 5.44 MB / 5.858 GB, free: 184.4 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 30 (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,solCol.vol[10].dynBal.U,solCol.vol[11].dynBal.U,solCol.vol[12].dynBal.U,solCol.vol[13].dynBal.U,solCol.vol[14].dynBal.U,solCol.vol[15].dynBal.U,solCol.vol[16].dynBal.U,solCol.vol[17].dynBal.U,solCol.vol[18].dynBal.U,solCol.vol[19].dynBal.U,solCol.vol[20].dynBal.U,solCol.vol[21].dynBal.U,solCol.vol[22].dynBal.U,solCol.vol[23].dynBal.U,solCol.vol[24].dynBal.U,solCol.vol[25].dynBal.U,solCol.vol[26].dynBal.U,solCol.vol[27].dynBal.U,solCol.vol[28].dynBal.U,solCol.vol[29].dynBal.U,solCol.vol[30].dynBal.U) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,datRea.nextTimeEvent,datRea.nextTimeEventScaled) * Number of discrete states: 4 (datRea.nextTimeEvent,datRea.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (575): * Single equations (assignments): 569 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 4 * 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.006358/17.62, allocations: 1.268 MB / 5.859 GB, free: 184.2 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.03075/17.65, allocations: 12.02 MB / 5.871 GB, free: 184 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-05/17.65, allocations: 9.094 kB / 5.871 GB, free: 184 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.007622/17.66, allocations: 3.399 MB / 5.874 GB, free: 184 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03128/17.69, allocations: 4.783 MB / 5.879 GB, free: 183.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0482/17.74, allocations: 19.62 MB / 5.898 GB, free: 179.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009543/17.75, allocations: 7.193 MB / 5.905 GB, free: 178.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.03446/17.78, allocations: 8.814 MB / 5.914 GB, free: 176.6 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003744/17.78, allocations: 0.6519 MB / 5.914 GB, free: 176.6 MB / 1.167 GB Notification: Performance of SimCode: time 1.933e-06/17.78, allocations: 6.938 kB / 5.914 GB, free: 176.6 MB / 1.167 GB Notification: Performance of Templates: time 0.2627/18.05, allocations: 170.4 MB / 6.081 GB, free: 39.54 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Validation_FlatPlate.csv","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches