Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Controls.OBC.CDL.Discrete.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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.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 7.0.3-maint.7.0.x/package.mo): time 1.308/1.308, allocations: 249.4 MB / 256.7 MB, free: 7.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001052/0.001052, allocations: 188.5 kB / 316 MB, free: 3.516 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.2 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000993/0.0009935, allocations: 85.64 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.253e-06/7.283e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2111, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6635/0.8747, allocations: 131.9 MB / 1.013 GB, free: 6.781 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.8751, allocations: 73.42 kB / 1.013 GB, free: 6.742 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.05492/0.93, allocations: 21.5 MB / 1.034 GB, free: 5.574 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.133e-05/0.9302, allocations: 4 kB / 1.034 GB, free: 5.57 MB / 0.6511 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.001222/0.9314, allocations: 0.6094 MB / 1.035 GB, free: 4.906 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.941e-05/0.9315, allocations: 13.16 kB / 1.035 GB, free: 4.895 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.21e-05/0.9316, allocations: 27.62 kB / 1.035 GB, free: 4.867 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004517/0.932, allocations: 243.2 kB / 1.035 GB, free: 4.602 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.693e-05/0.9321, allocations: 10.86 kB / 1.035 GB, free: 4.594 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.67e-05/0.9321, allocations: 12 kB / 1.035 GB, free: 4.582 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005152/0.9327, allocations: 319.7 kB / 1.036 GB, free: 4.324 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005414/0.9332, allocations: 445.7 kB / 1.036 GB, free: 3.941 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.9332, allocations: 0 / 1.036 GB, free: 3.941 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.9333, allocations: 7.891 kB / 1.036 GB, free: 3.934 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.9333, allocations: 4 kB / 1.036 GB, free: 3.93 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000636/0.9339, allocations: 0.5245 MB / 1.037 GB, free: 3.422 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.9351, allocations: 1.024 MB / 1.038 GB, free: 2.523 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000729/0.9359, allocations: 0.6597 MB / 1.038 GB, free: 1.965 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.9359, allocations: 7.906 kB / 1.038 GB, free: 1.957 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005376/0.9364, allocations: 470.8 kB / 1.039 GB, free: 1.547 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 1.463e-06/0.9365, allocations: 0 / 1.039 GB, free: 1.547 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001046/0.9375, allocations: 0.7618 MB / 1.039 GB, free: 0.8984 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.488e-05/0.9376, allocations: 136.4 kB / 1.04 GB, free: 0.7344 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.9378, allocations: 219.5 kB / 1.04 GB, free: 0.5469 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.9379, allocations: 25.7 kB / 1.04 GB, free: 0.5156 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.41e-05/0.9379, allocations: 99.97 kB / 1.04 GB, free: 432 kB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.36e-05/0.938, allocations: 81.05 kB / 1.04 GB, free: 364 kB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.412e-05/0.9381, allocations: 0 / 1.04 GB, free: 364 kB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.9382, allocations: 337.7 kB / 1.04 GB, free: 28 kB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/0.9386, allocations: 323.7 kB / 1.041 GB, free: 15.77 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004516/0.9391, allocations: 421.5 kB / 1.041 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004122/0.9395, allocations: 354.8 kB / 1.041 GB, free: 15.11 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.9395, allocations: 0 / 1.041 GB, free: 15.11 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009959/0.9405, allocations: 0.8031 MB / 1.042 GB, free: 14.42 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.9405, allocations: 12.06 kB / 1.042 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.9405, allocations: 4 kB / 1.042 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.9405, allocations: 7.906 kB / 1.042 GB, free: 14.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.9407, allocations: 43.7 kB / 1.042 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.9408, allocations: 7.938 kB / 1.042 GB, free: 14.35 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.941, allocations: 4 kB / 1.042 GB, free: 14.35 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002865/0.9413, allocations: 209.3 kB / 1.042 GB, free: 14.15 MB / 0.6667 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.0001615/0.9414, allocations: 148.1 kB / 1.043 GB, free: 14 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.586e-05/0.9415, allocations: 27.22 kB / 1.043 GB, free: 13.98 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.494e-05/0.9416, allocations: 41.36 kB / 1.043 GB, free: 13.96 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.9416, allocations: 8 kB / 1.043 GB, free: 13.95 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.9416, allocations: 0 / 1.043 GB, free: 13.95 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.9416, allocations: 0 / 1.043 GB, free: 13.95 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.9435, allocations: 1.632 MB / 1.044 GB, free: 12.47 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.9435, allocations: 4 kB / 1.044 GB, free: 12.46 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.206e-05/0.9436, allocations: 22.78 kB / 1.044 GB, free: 12.45 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.9436, allocations: 4 kB / 1.044 GB, free: 12.44 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.9436, allocations: 19.59 kB / 1.044 GB, free: 12.43 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.9436, allocations: 0 / 1.044 GB, free: 12.43 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.9436, allocations: 4.156 kB / 1.044 GB, free: 12.42 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001068/0.9447, allocations: 1.116 MB / 1.045 GB, free: 11.39 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.108e-05/0.9448, allocations: 100.7 kB / 1.045 GB, free: 11.28 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.196e-05/0.9449, allocations: 15.42 kB / 1.045 GB, free: 11.27 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.9451, allocations: 7.938 kB / 1.045 GB, free: 11.26 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.727e-05/0.9452, allocations: 42.25 kB / 1.045 GB, free: 11.23 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002527/0.9455, allocations: 227 kB / 1.046 GB, free: 11.01 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0001382/0.9456, allocations: 161.2 kB / 1.046 GB, free: 10.88 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004555/0.9461, allocations: 55.98 kB / 1.046 GB, free: 10.82 MB / 0.6667 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.0001955/0.9463, allocations: 126.2 kB / 1.046 GB, free: 10.69 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0009325/0.9472, allocations: 0.7224 MB / 1.047 GB, free: 10.09 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.9472, allocations: 0 / 1.047 GB, free: 10.09 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004829/0.9477, allocations: 406.1 kB / 1.047 GB, free: 9.754 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.9492, allocations: 356.2 kB / 1.047 GB, free: 9.441 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.9504, allocations: 0.862 MB / 1.048 GB, free: 8.66 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005117/0.951, allocations: 0.8259 MB / 1.049 GB, free: 7.82 MB / 0.6667 GB Notification: Performance of SimCode: time 2.3e-07/0.951, allocations: 0 / 1.049 GB, free: 7.82 MB / 0.6667 GB Notification: Performance of Templates: time 0.01275/0.9637, allocations: 8.009 MB / 1.057 GB, free: 15.91 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches