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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.149/2.149, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001313/0.001313, allocations: 181.2 kB / 487 MB, free: 5.363 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.632/1.632, allocations: 221.3 MB / 0.7819 GB, free: 1.371 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 104.8 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.775e-06/7.815e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3161, allocations: 142.3 MB / 1.205 GB, free: 26.26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.841/5.157, allocations: 2.119 GB / 3.325 GB, free: 181.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/5.157, allocations: 95.77 kB / 3.325 GB, free: 181.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 5.594/10.75, allocations: 1.871 GB / 5.196 GB, free: 79.28 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0005383/10.75, allocations: 131.9 kB / 5.196 GB, free: 79.15 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: 993 * Number of variables: 993 Notification: Performance of Generate backend data structure: time 0.01387/10.77, allocations: 4.897 MB / 5.201 GB, free: 74.19 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/10.77, allocations: 9.031 kB / 5.201 GB, free: 74.18 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01262/10.78, allocations: 1.667 MB / 5.202 GB, free: 72.51 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03465/10.81, allocations: 16.97 MB / 5.219 GB, free: 55.45 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002146/10.81, allocations: 120 kB / 5.219 GB, free: 55.33 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001466/10.81, allocations: 223.9 kB / 5.219 GB, free: 55.11 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009703/10.82, allocations: 4.595 MB / 5.224 GB, free: 50.52 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01003/10.83, allocations: 4.756 MB / 5.228 GB, free: 45.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.597e-05/10.83, allocations: 3.938 kB / 5.228 GB, free: 45.59 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005618/10.83, allocations: 12 kB / 5.228 GB, free: 45.58 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001435/10.83, allocations: 167.4 kB / 5.229 GB, free: 45.42 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03224/10.87, allocations: 19.32 MB / 5.247 GB, free: 25.62 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004368/10.87, allocations: 3.186 MB / 5.25 GB, free: 22.44 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/10.87, allocations: 1.675 MB / 5.252 GB, free: 20.75 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002444/10.88, allocations: 3.354 MB / 5.255 GB, free: 16.68 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002501/10.88, allocations: 1.897 MB / 5.257 GB, free: 14.74 MB / 1.151 GB Notification: Performance of pre-optimization done (n=285): time 4.389e-06/10.88, allocations: 0 / 5.257 GB, free: 14.74 MB / 1.151 GB Notification: Performance of matching and sorting (n=285): time 0.01638/10.9, allocations: 4.609 MB / 5.262 GB, free: 10.05 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/10.9, allocations: 291.3 kB / 5.262 GB, free: 9.703 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005192/10.9, allocations: 2.966 MB / 5.265 GB, free: 6.738 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0009163/10.9, allocations: 29.7 kB / 5.265 GB, free: 6.703 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001512/10.9, allocations: 1.38 MB / 5.266 GB, free: 5.301 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.002107/10.9, allocations: 0.9353 MB / 5.267 GB, free: 4.352 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002086/10.91, allocations: 0 / 5.267 GB, free: 4.352 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001631/10.91, allocations: 428.1 kB / 5.268 GB, free: 3.926 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/10.91, allocations: 1.396 MB / 5.269 GB, free: 2.527 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002149/10.91, allocations: 2.017 MB / 5.271 GB, free: 276 kB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5135/11.42, allocations: 3.096 MB / 5.274 GB, free: 338.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.422e-05/11.42, allocations: 13.03 kB / 5.274 GB, free: 338.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=381) (initialization): time 0.02987/11.45, allocations: 5.386 MB / 5.279 GB, free: 338.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001202/11.45, allocations: 6.447 MB / 5.286 GB, free: 331.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/11.45, allocations: 20.64 kB / 5.286 GB, free: 331.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/11.46, allocations: 109.8 kB / 5.286 GB, free: 331.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008185/11.46, allocations: 0.8255 MB / 5.286 GB, free: 331.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003348/11.47, allocations: 2.101 MB / 5.289 GB, free: 329.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009056/11.48, allocations: 444.6 kB / 5.289 GB, free: 329.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/11.48, allocations: 203.9 kB / 5.289 GB, free: 329.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/11.48, allocations: 2.938 kB / 5.289 GB, free: 329.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03223/11.51, allocations: 4.918 MB / 5.294 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.6e-05/11.51, allocations: 15.53 kB / 5.294 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/11.51, allocations: 112.9 kB / 5.294 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007791/11.52, allocations: 0.8148 MB / 5.295 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0028/11.52, allocations: 1.499 MB / 5.296 GB, free: 328.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008665/11.53, allocations: 403 kB / 5.297 GB, free: 328.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/11.53, allocations: 204.8 kB / 5.297 GB, free: 328.4 MB / 1.151 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 () * 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.002107/11.53, allocations: 177 kB / 5.297 GB, free: 328.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003515/11.54, allocations: 439.8 kB / 5.298 GB, free: 328.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02381/11.56, allocations: 6.177 MB / 5.304 GB, free: 327.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.674e-05/11.56, allocations: 36.59 kB / 5.304 GB, free: 327.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-05/11.56, allocations: 0 / 5.304 GB, free: 327.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01662/11.58, allocations: 4.658 MB / 5.308 GB, free: 327.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02989/11.61, allocations: 10.01 MB / 5.318 GB, free: 326.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/11.61, allocations: 3.938 kB / 5.318 GB, free: 326.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003992/11.61, allocations: 0.6259 MB / 5.319 GB, free: 326.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/11.61, allocations: 490.4 kB / 5.319 GB, free: 326.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006836/11.61, allocations: 69.48 kB / 5.319 GB, free: 326.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005731/11.62, allocations: 7.683 MB / 5.327 GB, free: 320.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/11.62, allocations: 0 / 5.327 GB, free: 320.4 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02259/11.64, allocations: 7.448 MB / 5.334 GB, free: 319.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0036/11.65, allocations: 1.127 MB / 5.335 GB, free: 319.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001717/11.65, allocations: 12.94 kB / 5.335 GB, free: 319.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004811/11.65, allocations: 274.2 kB / 5.335 GB, free: 319.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005242/11.65, allocations: 168.4 kB / 5.335 GB, free: 319.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005962/11.65, allocations: 134.5 kB / 5.335 GB, free: 319.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.004935/11.66, allocations: 2.285 MB / 5.338 GB, free: 319.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01238/11.67, allocations: 2.69 MB / 5.34 GB, free: 319.1 MB / 1.151 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 259 * Array equations: 2 * 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.005512/11.68, allocations: 1.879 MB / 5.342 GB, free: 318.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01115/11.69, allocations: 5.863 MB / 5.348 GB, free: 318.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/11.69, allocations: 3.75 kB / 5.348 GB, free: 318.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003936/11.69, allocations: 2.022 MB / 5.35 GB, free: 318.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009376/11.7, allocations: 1.625 MB / 5.351 GB, free: 318.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04709/11.75, allocations: 22.17 MB / 5.373 GB, free: 317 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004858/11.75, allocations: 3.777 MB / 5.377 GB, free: 316.2 MB / 1.151 GB Notification: Performance of SimCode: time 1.593e-06/11.75, allocations: 0 / 5.377 GB, free: 316.2 MB / 1.151 GB Notification: Performance of Templates: time 0.1844/11.94, allocations: 111.4 MB / 5.486 GB, free: 304.1 MB / 1.151 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