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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.296/2.296, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001067/0.001067, allocations: 183 kB / 498.1 MB, free: 5.742 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.614/1.614, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0009634/0.0009634, allocations: 99.83 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004035/0.000404, allocations: 12.06 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2914, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1798/0.4713, allocations: 149.5 MB / 1.369 GB, free: 12.62 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.4715, allocations: 79.89 kB / 1.369 GB, free: 12.54 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.05794/0.5295, allocations: 24.29 MB / 1.393 GB, free: 4.207 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.425e-06/0.5295, allocations: 0 / 1.393 GB, free: 4.207 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.006e-05/0.5296, allocations: 4 kB / 1.393 GB, free: 4.203 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.001067/0.5306, allocations: 0.6488 MB / 1.393 GB, free: 3.48 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.5307, allocations: 12.03 kB / 1.393 GB, free: 3.469 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.341e-05/0.5308, allocations: 27.67 kB / 1.393 GB, free: 3.441 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.5312, allocations: 253.7 kB / 1.394 GB, free: 3.156 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.719e-05/0.5312, allocations: 16.28 kB / 1.394 GB, free: 3.141 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.069e-05/0.5312, allocations: 16 kB / 1.394 GB, free: 3.125 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005903/0.5318, allocations: 454.7 kB / 1.394 GB, free: 2.664 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.5319, allocations: 0 / 1.394 GB, free: 2.664 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.5319, allocations: 11.98 kB / 1.394 GB, free: 2.652 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.5319, allocations: 0 / 1.394 GB, free: 2.652 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003566/0.5323, allocations: 323.8 kB / 1.394 GB, free: 2.336 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.5329, allocations: 0.5624 MB / 1.395 GB, free: 1.715 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.534, allocations: 1.033 MB / 1.396 GB, free: 0.6484 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.534, allocations: 7.938 kB / 1.396 GB, free: 0.6406 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005159/0.5346, allocations: 462.7 kB / 1.396 GB, free: 168 kB / 0.8855 GB Notification: Performance of pre-optimization done (n=37): time 1.583e-06/0.5346, allocations: 0 / 1.396 GB, free: 168 kB / 0.8855 GB Notification: Performance of matching and sorting (n=37): time 0.001368/0.5359, allocations: 1.107 MB / 1.397 GB, free: 15.05 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/0.536, allocations: 148.5 kB / 1.398 GB, free: 14.88 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.5363, allocations: 228 kB / 1.398 GB, free: 14.65 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/0.5363, allocations: 33.7 kB / 1.398 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.871e-05/0.5364, allocations: 137 kB / 1.398 GB, free: 14.47 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 7.04e-05/0.5365, allocations: 71.06 kB / 1.398 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/0.5365, allocations: 8 kB / 1.398 GB, free: 14.39 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.5367, allocations: 346.8 kB / 1.398 GB, free: 14.04 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003671/0.537, allocations: 324.7 kB / 1.399 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.5375, allocations: 422.5 kB / 1.399 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004572/0.5379, allocations: 368.2 kB / 1.399 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5379, allocations: 0 / 1.399 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009946/0.5389, allocations: 0.8289 MB / 1.4 GB, free: 12.08 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.539, allocations: 4 kB / 1.4 GB, free: 12.07 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.539, allocations: 4 kB / 1.4 GB, free: 12.07 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.539, allocations: 4.094 kB / 1.4 GB, free: 12.07 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.5392, allocations: 47.89 kB / 1.4 GB, free: 12.02 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.5392, allocations: 7.938 kB / 1.4 GB, free: 12.01 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.5394, allocations: 19.91 kB / 1.4 GB, free: 11.99 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002447/0.5397, allocations: 207.8 kB / 1.401 GB, free: 11.79 MB / 0.9011 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.0001957/0.5399, allocations: 197.6 kB / 1.401 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/0.5399, allocations: 35.64 kB / 1.401 GB, free: 11.55 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.528e-05/0.54, allocations: 34.19 kB / 1.401 GB, free: 11.52 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.54, allocations: 4 kB / 1.401 GB, free: 11.51 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.54, allocations: 4 kB / 1.401 GB, free: 11.51 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.54, allocations: 3.984 kB / 1.401 GB, free: 11.5 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.5419, allocations: 1.708 MB / 1.402 GB, free: 9.738 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.5419, allocations: 4 kB / 1.402 GB, free: 9.734 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.949e-05/0.542, allocations: 19.92 kB / 1.402 GB, free: 9.715 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.542, allocations: 4 kB / 1.402 GB, free: 9.711 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.542, allocations: 23.97 kB / 1.403 GB, free: 9.688 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.542, allocations: 4 kB / 1.403 GB, free: 9.684 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.542, allocations: 0 / 1.403 GB, free: 9.684 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.5431, allocations: 1.153 MB / 1.404 GB, free: 8.492 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 7.159e-05/0.5432, allocations: 104.7 kB / 1.404 GB, free: 8.371 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.192e-05/0.5432, allocations: 8 kB / 1.404 GB, free: 8.363 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.5435, allocations: 8 kB / 1.404 GB, free: 8.355 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.962e-05/0.5436, allocations: 59.86 kB / 1.404 GB, free: 8.297 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002294/0.5438, allocations: 223.7 kB / 1.404 GB, free: 8.078 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001499/0.544, allocations: 172.5 kB / 1.404 GB, free: 7.914 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.5e-07/0.544, allocations: 0 / 1.404 GB, free: 7.914 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004514/0.5444, allocations: 64 kB / 1.404 GB, free: 7.852 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.0001864/0.5446, allocations: 149 kB / 1.404 GB, free: 7.699 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0009703/0.5456, allocations: 0.7305 MB / 1.405 GB, free: 6.973 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.5456, allocations: 0 / 1.405 GB, free: 6.973 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005086/0.5461, allocations: 403.8 kB / 1.406 GB, free: 6.578 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001437/0.5476, allocations: 406.9 kB / 1.406 GB, free: 6.191 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.5489, allocations: 1.025 MB / 1.407 GB, free: 5.129 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.5493, allocations: 0.7647 MB / 1.408 GB, free: 4.336 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002933/0.5496, allocations: 106.9 kB / 1.408 GB, free: 4.23 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.5497, allocations: 71.38 kB / 1.408 GB, free: 4.16 MB / 0.9011 GB Notification: Performance of SimCode: time 6.91e-07/0.5497, allocations: 0 / 1.408 GB, free: 4.16 MB / 0.9011 GB Notification: Performance of Templates: time 0.01222/0.5619, allocations: 8.34 MB / 1.416 GB, free: 11.93 MB / 0.9167 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