Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Sources.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.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.422/1.422, allocations: 249.3 MB / 261.8 MB, free: 5.883 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.0009504/0.0009504, allocations: 176.9 kB / 321.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.622/1.622, allocations: 205.1 MB / 0.572 GB, free: 10.66 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.0009131/0.0009133, allocations: 78.55 kB / 0.6764 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.871e-05/2.873e-05, allocations: 4 kB / 0.7879 GB, free: 97.13 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2128, allocations: 106.3 MB / 0.8918 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6734/0.8862, allocations: 132.2 MB / 1.021 GB, free: 2.527 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.8865, allocations: 78.69 kB / 1.021 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.04674/0.9332, allocations: 18.83 MB / 1.039 GB, free: 2.992 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.487e-06/0.9333, allocations: 0 / 1.039 GB, free: 2.992 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.919e-05/0.9333, allocations: 7.938 kB / 1.039 GB, free: 2.984 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.0009197/0.9342, allocations: 0.5939 MB / 1.04 GB, free: 2.336 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.9343, allocations: 15.97 kB / 1.04 GB, free: 2.32 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.954e-05/0.9343, allocations: 27.62 kB / 1.04 GB, free: 2.293 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.9347, allocations: 243.6 kB / 1.04 GB, free: 2.027 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.9347, allocations: 22.88 kB / 1.04 GB, free: 2.012 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.9348, allocations: 22.81 kB / 1.04 GB, free: 1.996 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005773/0.9354, allocations: 446.5 kB / 1.041 GB, free: 1.617 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.9354, allocations: 8 kB / 1.041 GB, free: 1.609 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.9354, allocations: 7.125 kB / 1.041 GB, free: 1.605 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.9354, allocations: 4 kB / 1.041 GB, free: 1.602 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003635/0.9358, allocations: 314 kB / 1.041 GB, free: 1.352 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006064/0.9364, allocations: 0.5641 MB / 1.042 GB, free: 0.8047 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.9376, allocations: 1.016 MB / 1.043 GB, free: 15.92 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007319/0.9383, allocations: 0.6575 MB / 1.043 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 3.324e-05/0.9384, allocations: 7.938 kB / 1.043 GB, free: 15.36 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005908/0.939, allocations: 478.5 kB / 1.044 GB, free: 14.94 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 1.743e-06/0.939, allocations: 7.938 kB / 1.044 GB, free: 14.93 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.001018/0.94, allocations: 0.7865 MB / 1.044 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.018e-05/0.9401, allocations: 139 kB / 1.045 GB, free: 14.1 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.9404, allocations: 232 kB / 1.045 GB, free: 13.9 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.9404, allocations: 35.95 kB / 1.045 GB, free: 13.87 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.9405, allocations: 119.8 kB / 1.045 GB, free: 13.77 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 7.45e-05/0.9406, allocations: 77.19 kB / 1.045 GB, free: 13.71 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.9406, allocations: 11.12 kB / 1.045 GB, free: 13.71 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.9407, allocations: 345.4 kB / 1.045 GB, free: 13.37 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.9411, allocations: 327.8 kB / 1.046 GB, free: 13.11 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/0.9416, allocations: 419.3 kB / 1.046 GB, free: 12.73 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000439/0.942, allocations: 355.2 kB / 1.046 GB, free: 12.45 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.942, allocations: 0 / 1.046 GB, free: 12.45 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001062/0.9431, allocations: 0.8234 MB / 1.047 GB, free: 11.75 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.9431, allocations: 11.98 kB / 1.047 GB, free: 11.74 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.9431, allocations: 4 kB / 1.047 GB, free: 11.73 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.9432, allocations: 4 kB / 1.047 GB, free: 11.73 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.9433, allocations: 43.28 kB / 1.047 GB, free: 11.69 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.9433, allocations: 4 kB / 1.047 GB, free: 11.69 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.9436, allocations: 22.42 kB / 1.047 GB, free: 11.67 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002731/0.9439, allocations: 211.1 kB / 1.047 GB, free: 11.47 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.0001657/0.944, allocations: 161.9 kB / 1.048 GB, free: 11.32 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.115e-05/0.9441, allocations: 27.62 kB / 1.048 GB, free: 11.29 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.189e-05/0.9442, allocations: 37.64 kB / 1.048 GB, free: 11.27 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.9442, allocations: 8 kB / 1.048 GB, free: 11.27 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.9442, allocations: 0 / 1.048 GB, free: 11.27 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.9442, allocations: 0 / 1.048 GB, free: 11.27 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00197/0.9462, allocations: 1.699 MB / 1.049 GB, free: 9.723 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.9462, allocations: 0 / 1.049 GB, free: 9.723 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.588e-05/0.9463, allocations: 23.47 kB / 1.049 GB, free: 9.703 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.9463, allocations: 4 kB / 1.049 GB, free: 9.699 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.9463, allocations: 19.72 kB / 1.049 GB, free: 9.684 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.9463, allocations: 4 kB / 1.049 GB, free: 9.68 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.9463, allocations: 4 kB / 1.049 GB, free: 9.676 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.9474, allocations: 1.145 MB / 1.051 GB, free: 8.629 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 8.937e-05/0.9475, allocations: 104.7 kB / 1.051 GB, free: 8.508 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.22e-05/0.9476, allocations: 15.05 kB / 1.051 GB, free: 8.496 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.9478, allocations: 10.88 kB / 1.051 GB, free: 8.492 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.877e-05/0.9479, allocations: 46.94 kB / 1.051 GB, free: 8.457 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002565/0.9482, allocations: 227.6 kB / 1.051 GB, free: 8.238 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001611/0.9484, allocations: 169.5 kB / 1.051 GB, free: 8.094 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.81e-07/0.9484, allocations: 0 / 1.051 GB, free: 8.094 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004619/0.9489, allocations: 66.62 kB / 1.051 GB, free: 8.039 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.000187/0.949, allocations: 137.8 kB / 1.051 GB, free: 7.902 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0008927/0.9499, allocations: 0.7377 MB / 1.052 GB, free: 7.285 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.95, allocations: 0 / 1.052 GB, free: 7.285 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004833/0.9504, allocations: 405.5 kB / 1.052 GB, free: 6.953 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.9519, allocations: 326.1 kB / 1.053 GB, free: 6.676 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.9531, allocations: 0.8611 MB / 1.054 GB, free: 5.91 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.9535, allocations: 0.7641 MB / 1.054 GB, free: 5.125 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0003207/0.9538, allocations: 90.92 kB / 1.054 GB, free: 5.035 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.954, allocations: 70 kB / 1.054 GB, free: 4.977 MB / 0.6667 GB Notification: Performance of SimCode: time 1.072e-06/0.954, allocations: 0 / 1.054 GB, free: 4.977 MB / 0.6667 GB Notification: Performance of Templates: time 0.01213/0.9661, allocations: 7.858 MB / 1.062 GB, free: 13.21 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Sources_Examples_DayType.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches