Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Sources.Examples.DayType.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.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayTypMon.y.1.|dayTypSat.y.1.|dayTypTwoWeeks.y.1.|dayTypMonThr.y.1.|dayTypMonThr.y.2.|dayTypMonThr.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dayTypMon.y.1.|dayTypSat.y.1.|dayTypTwoWeeks.y.1.|dayTypMonThr.y.1.|dayTypMonThr.y.2.|dayTypMonThr.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.Sources.Examples.DayType") [: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.702/1.702, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0008997/0.0008998, allocations: 185.2 kB / 490.8 MB, free: 1.953 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.4 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.0007932/0.0007932, allocations: 87.59 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.769e-06/4.779e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1665, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4447/0.6113, allocations: 149.9 MB / 1.358 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001657/0.6115, allocations: 79.2 kB / 1.358 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.04025/0.6518, allocations: 18.27 MB / 1.376 GB, free: 16.1 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.545e-05/0.6518, allocations: 8.875 kB / 1.376 GB, free: 16.1 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0007582/0.6526, allocations: 0.5914 MB / 1.376 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.6526, allocations: 9.25 kB / 1.376 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.527e-05/0.6527, allocations: 32.52 kB / 1.376 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.653, allocations: 246.5 kB / 1.377 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.653, allocations: 6.906 kB / 1.377 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.547e-05/0.6531, allocations: 12.89 kB / 1.377 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003616/0.6534, allocations: 323.5 kB / 1.377 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.6539, allocations: 446.5 kB / 1.377 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.6539, allocations: 0 / 1.377 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.654, allocations: 4.891 kB / 1.377 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.654, allocations: 4.125 kB / 1.377 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005305/0.6545, allocations: 0.519 MB / 1.378 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.6555, allocations: 1.024 MB / 1.379 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000619/0.6561, allocations: 0.6546 MB / 1.38 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.6562, allocations: 5.031 kB / 1.38 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000469/0.6566, allocations: 470.9 kB / 1.38 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 2.655e-06/0.6567, allocations: 0 / 1.38 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0008569/0.6575, allocations: 0.7622 MB / 1.381 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.6576, allocations: 146.2 kB / 1.381 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.6577, allocations: 222.5 kB / 1.381 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.6578, allocations: 27.52 kB / 1.381 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.822e-05/0.6578, allocations: 102.9 kB / 1.381 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.421e-05/0.6579, allocations: 63.8 kB / 1.381 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.6579, allocations: 0.75 kB / 1.381 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.658, allocations: 349.3 kB / 1.382 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003283/0.6583, allocations: 324.1 kB / 1.382 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.6587, allocations: 424.1 kB / 1.382 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003386/0.659, allocations: 359.4 kB / 1.383 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.659, allocations: 0 / 1.383 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008106/0.6599, allocations: 0.7988 MB / 1.384 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.6599, allocations: 9.219 kB / 1.384 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.6599, allocations: 2.75 kB / 1.384 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.6599, allocations: 5.281 kB / 1.384 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.66, allocations: 44.03 kB / 1.384 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.66, allocations: 5.125 kB / 1.384 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.6603, allocations: 20.86 kB / 1.384 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002063/0.6605, allocations: 202.8 kB / 1.384 GB, free: 29.35 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0001093/0.6606, allocations: 142.6 kB / 1.384 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.13e-05/0.6606, allocations: 28.44 kB / 1.384 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.876e-05/0.6607, allocations: 38.45 kB / 1.384 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.6607, allocations: 4.75 kB / 1.384 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.6607, allocations: 2.406 kB / 1.384 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.6607, allocations: 5.266 kB / 1.384 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.6622, allocations: 1.63 MB / 1.386 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.6622, allocations: 1.312 kB / 1.386 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.76e-05/0.6623, allocations: 20.27 kB / 1.386 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.6623, allocations: 6.531 kB / 1.386 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.6623, allocations: 20.34 kB / 1.386 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.6623, allocations: 2.719 kB / 1.386 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.6623, allocations: 1.25 kB / 1.386 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008443/0.6632, allocations: 1.113 MB / 1.387 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.866e-05/0.6632, allocations: 109.5 kB / 1.387 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.303e-05/0.6633, allocations: 2.531 kB / 1.387 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.6635, allocations: 2.5 kB / 1.387 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.268e-05/0.6636, allocations: 49.27 kB / 1.387 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001878/0.6638, allocations: 224 kB / 1.387 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001288/0.6639, allocations: 160 kB / 1.387 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004376/0.6644, allocations: 53.56 kB / 1.387 GB, free: 27.57 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001334/0.6645, allocations: 129.3 kB / 1.387 GB, free: 27.47 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007366/0.6652, allocations: 0.7259 MB / 1.388 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.6652, allocations: 0 / 1.388 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004056/0.6657, allocations: 409.4 kB / 1.389 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.6669, allocations: 291.5 kB / 1.389 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.6679, allocations: 0.8622 MB / 1.39 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003909/0.6683, allocations: 0.8278 MB / 1.39 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.6683, allocations: 1.375 kB / 1.39 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of Templates: time 0.01046/0.6788, allocations: 7.806 MB / 1.398 GB, free: 22.33 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_latest_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Sources.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Sources_Examples_DayType.csv","../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches