Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.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.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_9_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_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue") [: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.113/2.113, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.001513/0.001513, allocations: 177.3 kB / 487 MB, free: 5.355 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.648/1.648, allocations: 221.3 MB / 0.7819 GB, free: 1.301 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.001005/0.001005, allocations: 107.8 kB / 0.9213 GB, free: 2.551 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.321e-06/6.351e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3546, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.954/5.309, allocations: 2.199 GB / 3.404 GB, free: 114.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/5.309, allocations: 91.77 kB / 3.404 GB, free: 114.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.137/8.446, allocations: 0.9438 GB / 4.348 GB, free: 60.94 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0007621/8.447, allocations: 131.9 kB / 4.348 GB, free: 60.81 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: 985 * Number of variables: 985 Notification: Performance of Generate backend data structure: time 0.01495/8.462, allocations: 4.387 MB / 4.353 GB, free: 56.36 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/8.462, allocations: 8.031 kB / 4.353 GB, free: 56.35 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00969/8.472, allocations: 1.402 MB / 4.354 GB, free: 54.94 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/8.488, allocations: 5.611 MB / 4.359 GB, free: 49.27 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003051/8.488, allocations: 120 kB / 4.359 GB, free: 49.15 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002312/8.49, allocations: 220 kB / 4.36 GB, free: 48.93 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01049/8.501, allocations: 4.481 MB / 4.364 GB, free: 44.45 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008647/8.509, allocations: 4.621 MB / 4.369 GB, free: 39.67 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.562e-05/8.51, allocations: 11.94 kB / 4.369 GB, free: 39.66 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004464/8.51, allocations: 7.984 kB / 4.369 GB, free: 39.65 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/8.51, allocations: 187.3 kB / 4.369 GB, free: 39.46 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02823/8.538, allocations: 19.38 MB / 4.388 GB, free: 19.42 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003801/8.542, allocations: 2.971 MB / 4.391 GB, free: 16.45 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001844/8.544, allocations: 1.628 MB / 4.392 GB, free: 14.82 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001683/8.546, allocations: 1.868 MB / 4.394 GB, free: 12.56 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002318/8.548, allocations: 1.796 MB / 4.396 GB, free: 10.71 MB / 1.151 GB Notification: Performance of pre-optimization done (n=265): time 4.067e-06/8.548, allocations: 0 / 4.396 GB, free: 10.71 MB / 1.151 GB Notification: Performance of matching and sorting (n=265): time 0.01097/8.559, allocations: 3.713 MB / 4.399 GB, free: 6.949 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/8.559, allocations: 291.1 kB / 4.4 GB, free: 6.602 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00602/8.565, allocations: 3.08 MB / 4.403 GB, free: 3.523 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001144/8.566, allocations: 29.7 kB / 4.403 GB, free: 3.488 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001973/8.568, allocations: 1.422 MB / 4.404 GB, free: 2.043 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001783/8.57, allocations: 0.8622 MB / 4.405 GB, free: 1.168 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/8.57, allocations: 0 / 4.405 GB, free: 1.168 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001672/8.571, allocations: 427.9 kB / 4.405 GB, free: 0.7422 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5717/9.142, allocations: 1.33 MB / 4.407 GB, free: 340.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003591/9.146, allocations: 2.013 MB / 4.409 GB, free: 340.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01364/9.16, allocations: 2.901 MB / 4.411 GB, free: 340.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-05/9.16, allocations: 3.938 kB / 4.411 GB, free: 340.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=374) (initialization): time 0.02003/9.18, allocations: 4.996 MB / 4.416 GB, free: 340 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001822/9.182, allocations: 7.295 MB / 4.423 GB, free: 332.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.785e-05/9.182, allocations: 17.19 kB / 4.423 GB, free: 332.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00072/9.182, allocations: 111.5 kB / 4.424 GB, free: 332.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004858/9.187, allocations: 0.8159 MB / 4.424 GB, free: 332.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001882/9.189, allocations: 1.501 MB / 4.426 GB, free: 331 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00621/9.195, allocations: 453.9 kB / 4.426 GB, free: 331 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/9.197, allocations: 143.5 kB / 4.426 GB, free: 331 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/9.197, allocations: 3.812 kB / 4.426 GB, free: 331 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01821/9.215, allocations: 4.627 MB / 4.431 GB, free: 330.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.078e-05/9.215, allocations: 15.28 kB / 4.431 GB, free: 330.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005923/9.215, allocations: 113.4 kB / 4.431 GB, free: 330.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004359/9.22, allocations: 0.8191 MB / 4.432 GB, free: 330.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/9.222, allocations: 1.511 MB / 4.433 GB, free: 329.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005596/9.227, allocations: 402.2 kB / 4.434 GB, free: 329.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009225/9.228, allocations: 145.3 kB / 4.434 GB, free: 329.7 MB / 1.151 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 () * 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.001042/9.229, allocations: 183.4 kB / 4.434 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001464/9.231, allocations: 360 kB / 4.434 GB, free: 329.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01346/9.244, allocations: 4.563 MB / 4.439 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-05/9.244, allocations: 35.98 kB / 4.439 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/9.244, allocations: 0 / 4.439 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009516/9.254, allocations: 3.658 MB / 4.442 GB, free: 328.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02196/9.276, allocations: 9.015 MB / 4.451 GB, free: 328.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/9.276, allocations: 3.719 kB / 4.451 GB, free: 328.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003586/9.279, allocations: 0.6425 MB / 4.452 GB, free: 328.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005648/9.28, allocations: 94.52 kB / 4.452 GB, free: 328.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002953/9.28, allocations: 63.64 kB / 4.452 GB, free: 328.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/9.282, allocations: 1.504 MB / 4.453 GB, free: 326.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/9.282, allocations: 7.312 kB / 4.454 GB, free: 326.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01486/9.297, allocations: 6.433 MB / 4.46 GB, free: 325.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003508/9.3, allocations: 1.059 MB / 4.461 GB, free: 325.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001178/9.302, allocations: 19.2 kB / 4.461 GB, free: 325.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003862/9.305, allocations: 268.3 kB / 4.461 GB, free: 325.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000283/9.306, allocations: 162.7 kB / 4.461 GB, free: 325.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003188/9.306, allocations: 134.5 kB / 4.461 GB, free: 325.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.003649/9.31, allocations: 2.379 MB / 4.464 GB, free: 325.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00788/9.318, allocations: 2.381 MB / 4.466 GB, free: 325.2 MB / 1.151 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) * 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.003054/9.321, allocations: 1.65 MB / 4.468 GB, free: 325 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.008768/9.329, allocations: 5.489 MB / 4.473 GB, free: 324.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.545e-05/9.33, allocations: 4.031 kB / 4.473 GB, free: 324.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.002691/9.332, allocations: 1.724 MB / 4.475 GB, free: 324.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008918/9.341, allocations: 1.661 MB / 4.476 GB, free: 324.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01817/9.359, allocations: 8.062 MB / 4.484 GB, free: 323 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004959/9.364, allocations: 3.604 MB / 4.488 GB, free: 322.3 MB / 1.151 GB Notification: Performance of SimCode: time 2.084e-06/9.364, allocations: 3.219 kB / 4.488 GB, free: 322.3 MB / 1.151 GB Notification: Performance of Templates: time 0.1688/9.533, allocations: 102.8 MB / 4.588 GB, free: 317.5 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.csv","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches