Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Sources.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.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_9_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_9_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.216/2.216, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001118/0.001118, allocations: 181.1 kB / 498.1 MB, free: 5.734 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.641/1.641, allocations: 223.2 MB / 0.7949 GB, free: 17.91 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.001136/0.001135, allocations: 104 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004624/0.0004624, allocations: 10.44 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3658, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1981/0.564, allocations: 149.9 MB / 1.369 GB, free: 12.23 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.5643, allocations: 75.95 kB / 1.369 GB, free: 12.16 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.04829/0.6126, allocations: 18.99 MB / 1.388 GB, free: 9.137 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.984e-06/0.6126, allocations: 4 kB / 1.388 GB, free: 9.133 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.871e-05/0.6127, allocations: 8 kB / 1.388 GB, free: 9.125 MB / 0.8855 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.001254/0.6139, allocations: 0.6315 MB / 1.388 GB, free: 8.418 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.614, allocations: 12.03 kB / 1.388 GB, free: 8.406 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.6142, allocations: 31.67 kB / 1.389 GB, free: 8.375 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004956/0.6147, allocations: 253.7 kB / 1.389 GB, free: 8.09 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.741e-05/0.6147, allocations: 12.28 kB / 1.389 GB, free: 8.078 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.767e-05/0.6148, allocations: 16 kB / 1.389 GB, free: 8.062 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008079/0.6156, allocations: 454.7 kB / 1.389 GB, free: 7.602 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.6156, allocations: 3.984 kB / 1.389 GB, free: 7.598 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.6157, allocations: 4 kB / 1.389 GB, free: 7.594 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.6157, allocations: 4 kB / 1.389 GB, free: 7.59 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.6161, allocations: 321 kB / 1.39 GB, free: 7.277 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008061/0.6169, allocations: 0.5625 MB / 1.39 GB, free: 6.656 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.6182, allocations: 1.033 MB / 1.391 GB, free: 5.586 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.6183, allocations: 4.031 kB / 1.391 GB, free: 5.582 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006392/0.6189, allocations: 482.6 kB / 1.392 GB, free: 5.086 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=37): time 2.815e-06/0.6189, allocations: 4 kB / 1.392 GB, free: 5.082 MB / 0.8855 GB Notification: Performance of matching and sorting (n=37): time 0.0016/0.6205, allocations: 1.103 MB / 1.393 GB, free: 3.973 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.6207, allocations: 144.4 kB / 1.393 GB, free: 3.801 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.6209, allocations: 220.1 kB / 1.393 GB, free: 3.582 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.621, allocations: 37.7 kB / 1.393 GB, free: 3.539 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.477e-05/0.6211, allocations: 125.1 kB / 1.393 GB, free: 3.41 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.6212, allocations: 82.98 kB / 1.393 GB, free: 3.328 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.018e-05/0.6212, allocations: 8 kB / 1.393 GB, free: 3.32 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001994/0.6214, allocations: 346.8 kB / 1.394 GB, free: 2.973 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004557/0.6219, allocations: 328.7 kB / 1.394 GB, free: 2.648 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005056/0.6224, allocations: 426.5 kB / 1.394 GB, free: 2.195 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.6229, allocations: 358.4 kB / 1.395 GB, free: 1.848 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.6229, allocations: 0 / 1.395 GB, free: 1.848 MB / 0.8855 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001241/0.6242, allocations: 0.8289 MB / 1.395 GB, free: 1.012 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.6242, allocations: 5.562 kB / 1.395 GB, free: 1.008 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.6242, allocations: 4 kB / 1.395 GB, free: 1.004 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.888e-05/0.6243, allocations: 4 kB / 1.395 GB, free: 1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.6245, allocations: 51.83 kB / 1.396 GB, free: 0.9492 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.54e-05/0.6245, allocations: 4.312 kB / 1.396 GB, free: 0.9453 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/0.6249, allocations: 15.91 kB / 1.396 GB, free: 0.9297 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003775/0.6252, allocations: 216.5 kB / 1.396 GB, free: 0.7188 MB / 0.8855 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 () * Number of clocked 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.0003936/0.6256, allocations: 197.6 kB / 1.396 GB, free: 0.5156 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.926e-05/0.6257, allocations: 27.7 kB / 1.396 GB, free: 500 kB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.6258, allocations: 38.12 kB / 1.396 GB, free: 460 kB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.6259, allocations: 4 kB / 1.396 GB, free: 456 kB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.912e-05/0.6259, allocations: 4 kB / 1.396 GB, free: 452 kB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6259, allocations: 3.984 kB / 1.396 GB, free: 448 kB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002781/0.6287, allocations: 1.71 MB / 1.398 GB, free: 14.67 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/0.6287, allocations: 4 kB / 1.398 GB, free: 14.66 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.414e-05/0.6288, allocations: 19.92 kB / 1.398 GB, free: 14.64 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.6288, allocations: 4 kB / 1.398 GB, free: 14.64 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.231e-05/0.6288, allocations: 19.97 kB / 1.398 GB, free: 14.62 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.6289, allocations: 0 / 1.398 GB, free: 14.62 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.6289, allocations: 4 kB / 1.398 GB, free: 14.62 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.6304, allocations: 1.157 MB / 1.399 GB, free: 13.42 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.6306, allocations: 104.7 kB / 1.399 GB, free: 13.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.15e-05/0.6306, allocations: 12 kB / 1.399 GB, free: 13.29 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.6309, allocations: 8.125 kB / 1.399 GB, free: 13.28 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.6311, allocations: 55.92 kB / 1.399 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003053/0.6314, allocations: 215.5 kB / 1.399 GB, free: 13.02 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002036/0.6316, allocations: 168.5 kB / 1.399 GB, free: 12.86 MB / 0.9011 GB Notification: Performance of sort global known variables: time 5.81e-07/0.6316, allocations: 0 / 1.399 GB, free: 12.86 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0005839/0.6322, allocations: 68 kB / 1.399 GB, free: 12.79 MB / 0.9011 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) * Number of clocked states: 0 () * 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.0003121/0.6325, allocations: 148.3 kB / 1.4 GB, free: 12.64 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001162/0.6337, allocations: 0.7261 MB / 1.4 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.6337, allocations: 4 kB / 1.4 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0006225/0.6343, allocations: 408.9 kB / 1.401 GB, free: 11.51 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/0.6359, allocations: 311.4 kB / 1.401 GB, free: 11.21 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.6379, allocations: 1.029 MB / 1.402 GB, free: 10.15 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005368/0.6384, allocations: 0.7569 MB / 1.403 GB, free: 9.363 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003824/0.6388, allocations: 98.92 kB / 1.403 GB, free: 9.266 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.639, allocations: 67.38 kB / 1.403 GB, free: 9.199 MB / 0.9011 GB Notification: Performance of SimCode: time 1.322e-06/0.639, allocations: 0 / 1.403 GB, free: 9.199 MB / 0.9011 GB Notification: Performance of Templates: time 0.01524/0.6542, allocations: 7.834 MB / 1.411 GB, free: 1.461 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_9_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_9_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Sources.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Sources_Examples_DayType.csv","../files/Buildings_9_Buildings.Controls.Sources.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches