Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.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.Obsolete.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_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Obsolete.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_9_Buildings.Obsolete.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 9.1.1-maint.9.1.x/package.mo): time 1.96/1.96, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001119/0.001119, allocations: 185.2 kB / 487 MB, free: 5.379 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.262/1.262, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.0009835/0.0009835, allocations: 102.7 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.911e-06/5.931e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2031, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6383/0.8414, allocations: 148.7 MB / 1.35 GB, free: 16.1 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.8417, allocations: 71.14 kB / 1.35 GB, free: 16.1 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.05527/0.897, allocations: 23.46 MB / 1.373 GB, free: 6.16 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.296e-05/0.897, allocations: 4 kB / 1.373 GB, free: 6.156 MB / 0.8073 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.0007054/0.8977, allocations: 0.6153 MB / 1.374 GB, free: 5.484 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.8978, allocations: 8.031 kB / 1.374 GB, free: 5.477 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.52e-05/0.8978, allocations: 23.72 kB / 1.374 GB, free: 5.453 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.8981, allocations: 247.6 kB / 1.374 GB, free: 5.184 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.8981, allocations: 11.89 kB / 1.374 GB, free: 5.172 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.104e-05/0.8981, allocations: 19.38 kB / 1.374 GB, free: 5.156 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002869/0.8984, allocations: 314 kB / 1.375 GB, free: 4.902 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003769/0.8988, allocations: 444.7 kB / 1.375 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.8988, allocations: 7.969 kB / 1.375 GB, free: 4.512 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.8989, allocations: 0 / 1.375 GB, free: 4.512 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.8989, allocations: 7.938 kB / 1.375 GB, free: 4.504 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004122/0.8993, allocations: 0.5199 MB / 1.376 GB, free: 4.008 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007769/0.9001, allocations: 1.022 MB / 1.377 GB, free: 3.113 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005093/0.9006, allocations: 0.6492 MB / 1.377 GB, free: 2.562 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.9006, allocations: 7.312 kB / 1.377 GB, free: 2.559 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003871/0.901, allocations: 470.1 kB / 1.378 GB, free: 2.148 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=37): time 1.402e-06/0.901, allocations: 0 / 1.378 GB, free: 2.148 MB / 0.8073 GB Notification: Performance of matching and sorting (n=37): time 0.0007351/0.9018, allocations: 0.7567 MB / 1.378 GB, free: 1.508 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.9018, allocations: 140.5 kB / 1.378 GB, free: 1.34 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.902, allocations: 224.7 kB / 1.379 GB, free: 1.152 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.902, allocations: 25.7 kB / 1.379 GB, free: 1.121 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.136e-05/0.902, allocations: 100.6 kB / 1.379 GB, free: 1.027 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.437e-05/0.9021, allocations: 69.19 kB / 1.379 GB, free: 0.9688 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.376e-05/0.9021, allocations: 4 kB / 1.379 GB, free: 0.9648 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.686e-05/0.9022, allocations: 340.8 kB / 1.379 GB, free: 0.6367 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.9025, allocations: 321.7 kB / 1.38 GB, free: 388 kB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/0.9029, allocations: 420.6 kB / 1.38 GB, free: 16 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004096/0.9033, allocations: 357.8 kB / 1.38 GB, free: 15.71 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.9033, allocations: 4 kB / 1.38 GB, free: 15.7 MB / 0.823 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009258/0.9042, allocations: 0.8106 MB / 1.381 GB, free: 15.01 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.9042, allocations: 4 kB / 1.381 GB, free: 15.01 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.9043, allocations: 4 kB / 1.381 GB, free: 15 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.9043, allocations: 4 kB / 1.381 GB, free: 15 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.9044, allocations: 43.83 kB / 1.381 GB, free: 14.96 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.9045, allocations: 8 kB / 1.381 GB, free: 14.95 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.9047, allocations: 11.84 kB / 1.381 GB, free: 14.94 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002448/0.9049, allocations: 203.2 kB / 1.381 GB, free: 14.75 MB / 0.823 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.0001286/0.9051, allocations: 139.8 kB / 1.381 GB, free: 14.61 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.9051, allocations: 31 kB / 1.382 GB, free: 14.58 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.554e-05/0.9052, allocations: 31.55 kB / 1.382 GB, free: 14.56 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.9052, allocations: 4 kB / 1.382 GB, free: 14.56 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.9052, allocations: 4 kB / 1.382 GB, free: 14.55 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.9052, allocations: 7.984 kB / 1.382 GB, free: 14.55 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.9069, allocations: 1.632 MB / 1.383 GB, free: 13.08 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.9069, allocations: 7.906 kB / 1.383 GB, free: 13.07 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.265e-05/0.9069, allocations: 27.28 kB / 1.383 GB, free: 13.05 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.907, allocations: 4 kB / 1.383 GB, free: 13.05 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.907, allocations: 26.22 kB / 1.383 GB, free: 13.03 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.907, allocations: 0 / 1.383 GB, free: 13.03 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.907, allocations: 4 kB / 1.383 GB, free: 13.02 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001002/0.908, allocations: 1.112 MB / 1.384 GB, free: 12 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.755e-05/0.9081, allocations: 100.7 kB / 1.384 GB, free: 11.88 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.913e-05/0.9082, allocations: 14.92 kB / 1.384 GB, free: 11.87 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.9084, allocations: 4 kB / 1.384 GB, free: 11.86 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.663e-05/0.9085, allocations: 53.72 kB / 1.384 GB, free: 11.82 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002206/0.9087, allocations: 219.5 kB / 1.385 GB, free: 11.61 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0001281/0.9089, allocations: 169.2 kB / 1.385 GB, free: 11.47 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0004385/0.9093, allocations: 52 kB / 1.385 GB, free: 11.42 MB / 0.823 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.0001696/0.9095, allocations: 121.5 kB / 1.385 GB, free: 11.3 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0008113/0.9103, allocations: 0.7207 MB / 1.386 GB, free: 10.7 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.9103, allocations: 4.25 kB / 1.386 GB, free: 10.69 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004525/0.9108, allocations: 405.4 kB / 1.386 GB, free: 10.36 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/0.9123, allocations: 383.5 kB / 1.386 GB, free: 10.03 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.9134, allocations: 0.8661 MB / 1.387 GB, free: 9.242 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004817/0.9139, allocations: 0.8272 MB / 1.388 GB, free: 8.402 MB / 0.823 GB Notification: Performance of SimCode: time 2.6e-07/0.9139, allocations: 0 / 1.388 GB, free: 8.402 MB / 0.823 GB Notification: Performance of Templates: time 0.01199/0.9259, allocations: 8.299 MB / 1.396 GB, free: 200 kB / 0.823 GB make -j1 -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType.csv","../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches