Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.177/2.177, allocations: 390.5 MB / 398 MB, free: 10.95 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.001115/0.001115, allocations: 169 kB / 491.2 MB, free: 1.602 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.721/1.721, allocations: 221.5 MB / 0.7868 GB, free: 13.24 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.00105/0.00105, allocations: 98.69 kB / 0.9269 GB, free: 13.74 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.34e-05/2.343e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.4067, allocations: 143 MB / 1.212 GB, free: 39.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.227/1.633, allocations: 149.5 MB / 1.358 GB, free: 17.46 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/1.634, allocations: 76.67 kB / 1.358 GB, free: 17.46 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05444/1.688, allocations: 24.1 MB / 1.382 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.473e-06/1.688, allocations: 0 / 1.382 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.39e-05/1.688, allocations: 3.844 kB / 1.382 GB, free: 30.56 MB / 0.8386 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.001094/1.689, allocations: 0.6163 MB / 1.383 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/1.689, allocations: 11.53 kB / 1.383 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001327/1.69, allocations: 31.23 kB / 1.383 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003689/1.69, allocations: 246.3 kB / 1.383 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.213e-05/1.69, allocations: 3.875 kB / 1.383 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.346e-05/1.69, allocations: 15.52 kB / 1.383 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003852/1.69, allocations: 313.2 kB / 1.383 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004639/1.691, allocations: 438.3 kB / 1.384 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/1.691, allocations: 0 / 1.384 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/1.691, allocations: 3.875 kB / 1.384 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/1.691, allocations: 3.844 kB / 1.384 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005435/1.692, allocations: 0.5158 MB / 1.384 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008598/1.692, allocations: 1.003 MB / 1.385 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/1.693, allocations: 0.6445 MB / 1.386 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/1.693, allocations: 7.688 kB / 1.386 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004635/1.693, allocations: 470.9 kB / 1.386 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 2.044e-06/1.693, allocations: 0 / 1.386 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0009065/1.694, allocations: 0.7661 MB / 1.387 GB, free: 28.53 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/1.694, allocations: 136.2 kB / 1.387 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/1.695, allocations: 220.6 kB / 1.387 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/1.695, allocations: 29.55 kB / 1.387 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.18e-05/1.695, allocations: 120.6 kB / 1.387 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.296e-05/1.695, allocations: 76.56 kB / 1.387 GB, free: 28.09 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/1.695, allocations: 0 / 1.387 GB, free: 28.09 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001176/1.695, allocations: 347.2 kB / 1.388 GB, free: 27.76 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/1.695, allocations: 316.7 kB / 1.388 GB, free: 27.72 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/1.696, allocations: 420.4 kB / 1.389 GB, free: 27.56 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/1.696, allocations: 348.2 kB / 1.389 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/1.696, allocations: 0 / 1.389 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007723/1.697, allocations: 0.7898 MB / 1.39 GB, free: 27.33 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/1.697, allocations: 11.97 kB / 1.39 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/1.697, allocations: 7.625 kB / 1.39 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/1.697, allocations: 3.875 kB / 1.39 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/1.697, allocations: 41.64 kB / 1.39 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/1.697, allocations: 3.875 kB / 1.39 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/1.697, allocations: 7.5 kB / 1.39 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002182/1.698, allocations: 211.5 kB / 1.39 GB, free: 27.2 MB / 0.8386 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.0001434/1.698, allocations: 144.9 kB / 1.39 GB, free: 27.07 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.34e-05/1.698, allocations: 27.25 kB / 1.39 GB, free: 27.06 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.018e-05/1.698, allocations: 39.27 kB / 1.39 GB, free: 27.04 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/1.698, allocations: 7.812 kB / 1.39 GB, free: 27.04 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/1.698, allocations: 3.969 kB / 1.39 GB, free: 27.04 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/1.698, allocations: 8.203 kB / 1.39 GB, free: 27.03 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/1.699, allocations: 1.632 MB / 1.392 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/1.7, allocations: 3.844 kB / 1.392 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.842e-05/1.7, allocations: 23.09 kB / 1.392 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/1.7, allocations: 3.844 kB / 1.392 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/1.7, allocations: 19.22 kB / 1.392 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/1.7, allocations: 3.875 kB / 1.392 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/1.7, allocations: 0 / 1.392 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009234/1.701, allocations: 1.129 MB / 1.393 GB, free: 25.74 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.729e-05/1.701, allocations: 104.4 kB / 1.393 GB, free: 25.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.876e-05/1.701, allocations: 11.78 kB / 1.393 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/1.701, allocations: 3.375 kB / 1.393 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.53e-05/1.701, allocations: 48.25 kB / 1.393 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002005/1.701, allocations: 227.8 kB / 1.393 GB, free: 25.49 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.00015/1.701, allocations: 156.8 kB / 1.393 GB, free: 25.4 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.9e-07/1.701, allocations: 0 / 1.393 GB, free: 25.4 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004983/1.702, allocations: 49.97 kB / 1.393 GB, free: 25.4 MB / 0.8386 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.0002257/1.702, allocations: 136.1 kB / 1.394 GB, free: 25.3 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007372/1.703, allocations: 0.7083 MB / 1.394 GB, free: 25.2 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.703, allocations: 0 / 1.394 GB, free: 25.2 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003817/1.703, allocations: 393.9 kB / 1.395 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/1.705, allocations: 404.5 kB / 1.395 GB, free: 24.99 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/1.706, allocations: 0.8575 MB / 1.396 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/1.706, allocations: 0.7621 MB / 1.397 GB, free: 23.99 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003859/1.707, allocations: 117 kB / 1.397 GB, free: 23.94 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/1.707, allocations: 65.69 kB / 1.397 GB, free: 23.91 MB / 0.8386 GB Notification: Performance of SimCode: time 6.01e-07/1.707, allocations: 0 / 1.397 GB, free: 23.91 MB / 0.8386 GB Notification: Performance of Templates: time 0.01244/1.719, allocations: 7.992 MB / 1.405 GB, free: 18.39 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType.csv","../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches