Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.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.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conBoiRet.TSet|conBoiRet.TRet|conBoiRet.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn") translateModel(Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conBoiRet.TSet|conBoiRet.TRet|conBoiRet.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn") [: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 10.0.0-master/package.mo): time 1.703/1.703, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009126/0.0009126, allocations: 181.3 kB / 490.8 MB, free: 1.98 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.053/1.053, allocations: 221.3 MB / 0.7863 GB, free: 13.68 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.0008148/0.0008148, allocations: 91.42 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.25e-06/5.28e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1642, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4413/0.6056, allocations: 151.1 MB / 1.359 GB, free: 17.17 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.6058, allocations: 83.64 kB / 1.359 GB, free: 17.17 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.00706/0.6129, allocations: 3.247 MB / 1.362 GB, free: 16.97 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.148e-05/0.6129, allocations: 7.969 kB / 1.362 GB, free: 16.96 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0004915/0.6134, allocations: 490.8 kB / 1.363 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/0.6134, allocations: 9.062 kB / 1.363 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.351e-05/0.6135, allocations: 27.88 kB / 1.363 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.6137, allocations: 261.7 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.6137, allocations: 7.859 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.6138, allocations: 17.67 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002055/0.614, allocations: 117.6 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.6143, allocations: 182.5 kB / 1.363 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.567e-06/0.6143, allocations: 5.219 kB / 1.363 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.6143, allocations: 0 / 1.363 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.6143, allocations: 4.281 kB / 1.363 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008114/0.6151, allocations: 0.7473 MB / 1.364 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.6154, allocations: 145.2 kB / 1.364 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.812e-05/0.6155, allocations: 79.62 kB / 1.364 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.6155, allocations: 5.625 kB / 1.364 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.877e-05/0.6156, allocations: 93.31 kB / 1.364 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.6156, allocations: 0 / 1.364 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0002075/0.6159, allocations: 125.4 kB / 1.365 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.854e-05/0.6159, allocations: 83.39 kB / 1.365 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.616, allocations: 172.7 kB / 1.365 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.616, allocations: 25.7 kB / 1.365 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.676e-05/0.6161, allocations: 142.4 kB / 1.365 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.6161, allocations: 49.52 kB / 1.365 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.6161, allocations: 0 / 1.365 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.6162, allocations: 329.7 kB / 1.365 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.189e-05/0.6163, allocations: 39.19 kB / 1.365 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.232e-05/0.6164, allocations: 74.23 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.589e-05/0.6165, allocations: 44.2 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.6165, allocations: 1.438 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001845/0.6167, allocations: 152 kB / 1.366 GB, free: 31 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.393e-05/0.6167, allocations: 184.5 kB / 1.366 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.6167, allocations: 0 / 1.366 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.936e-06/0.6167, allocations: 1.188 kB / 1.366 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.6169, allocations: 41.3 kB / 1.366 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.6169, allocations: 1.969 kB / 1.366 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.6171, allocations: 30.42 kB / 1.366 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.6171, allocations: 5.016 kB / 1.366 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.699e-06/0.6171, allocations: 4.344 kB / 1.366 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000134/0.6172, allocations: 99.91 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-06/0.6172, allocations: 0 / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-06/0.6173, allocations: 1.281 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.6174, allocations: 38.11 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.663e-06/0.6174, allocations: 1.25 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.6175, allocations: 25.42 kB / 1.366 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-06/0.6175, allocations: 4.188 kB / 1.366 GB, free: 30.78 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 5.783e-05/0.6176, allocations: 109.4 kB / 1.366 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.234e-05/0.6176, allocations: 16.16 kB / 1.366 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.078e-05/0.6176, allocations: 19.2 kB / 1.366 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.6177, allocations: 1.344 kB / 1.366 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.6177, allocations: 7.906 kB / 1.366 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.6177, allocations: 2.641 kB / 1.366 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003429/0.618, allocations: 477 kB / 1.367 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.618, allocations: 0 / 1.367 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.6182, allocations: 38.44 kB / 1.367 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.6182, allocations: 1.688 kB / 1.367 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.6182, allocations: 1.125 kB / 1.367 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.6182, allocations: 0.9375 kB / 1.367 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6182, allocations: 0 / 1.367 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002773/0.6185, allocations: 299.5 kB / 1.367 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.031e-05/0.6186, allocations: 99.31 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.6186, allocations: 0 / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.6188, allocations: 23.53 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.819e-05/0.6188, allocations: 10.05 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.6188, allocations: 9.172 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001034/0.6189, allocations: 146.3 kB / 1.367 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003001/0.6192, allocations: 70.23 kB / 1.367 GB, free: 30 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (conBoiRet.conPID.I.y) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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 Backend phase and start with SimCode phase: time 9.314e-05/0.6193, allocations: 103.9 kB / 1.367 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002352/0.6196, allocations: 162.7 kB / 1.368 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.6196, allocations: 1.312 kB / 1.368 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.761e-05/0.6196, allocations: 60.72 kB / 1.368 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.6199, allocations: 23.25 kB / 1.368 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000522/0.6204, allocations: 279.3 kB / 1.368 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000354/0.6208, allocations: 0.768 MB / 1.369 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/0.6208, allocations: 0 / 1.369 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of Templates: time 0.004602/0.6254, allocations: 2.415 MB / 1.371 GB, free: 28.89 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.makefile (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.sim & ./Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_BoilerReturn.csv","../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches