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.568/2.568, allocations: 387.1 MB / 399.7 MB, free: 9.5 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.001102/0.001102, allocations: 172.3 kB / 492.3 MB, free: 0.6055 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.711/1.711, allocations: 221.3 MB / 0.7872 GB, free: 12.93 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.0008789/0.0008787, allocations: 89.27 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.116e-05/3.118e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3238, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.052/1.376, allocations: 149.4 MB / 1.358 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/1.376, allocations: 76.33 kB / 1.358 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05184/1.428, allocations: 24.23 MB / 1.382 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.653e-06/1.428, allocations: 0 / 1.382 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.011e-05/1.428, allocations: 3.594 kB / 1.382 GB, free: 31.87 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.0007731/1.429, allocations: 0.6153 MB / 1.383 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/1.429, allocations: 7.625 kB / 1.383 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.484e-05/1.429, allocations: 31.05 kB / 1.383 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002808/1.429, allocations: 246.3 kB / 1.383 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/1.429, allocations: 15.91 kB / 1.383 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.599e-05/1.429, allocations: 19.03 kB / 1.383 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004548/1.43, allocations: 449.8 kB / 1.383 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/1.43, allocations: 7.938 kB / 1.383 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/1.43, allocations: 3.812 kB / 1.383 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/1.43, allocations: 3.844 kB / 1.383 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002853/1.43, allocations: 324.4 kB / 1.384 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004752/1.43, allocations: 0.5593 MB / 1.384 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008464/1.431, allocations: 1.015 MB / 1.385 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00054/1.432, allocations: 0.6535 MB / 1.386 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/1.432, allocations: 7.75 kB / 1.386 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004574/1.432, allocations: 475.1 kB / 1.386 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 1.412e-06/1.432, allocations: 0 / 1.386 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.000823/1.433, allocations: 0.7839 MB / 1.387 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/1.433, allocations: 147.4 kB / 1.387 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/1.433, allocations: 216.7 kB / 1.387 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/1.433, allocations: 44 kB / 1.388 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.241e-05/1.434, allocations: 119.2 kB / 1.388 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.956e-05/1.434, allocations: 82.7 kB / 1.388 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.48e-05/1.434, allocations: 7.75 kB / 1.388 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.789e-05/1.434, allocations: 344.2 kB / 1.388 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/1.434, allocations: 331.5 kB / 1.388 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003329/1.434, allocations: 420.1 kB / 1.389 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/1.435, allocations: 359.4 kB / 1.389 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.435, allocations: 3.844 kB / 1.389 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007633/1.435, allocations: 0.82 MB / 1.39 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/1.435, allocations: 7.688 kB / 1.39 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/1.436, allocations: 3.844 kB / 1.39 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/1.436, allocations: 3.844 kB / 1.39 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/1.436, allocations: 46.45 kB / 1.39 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/1.436, allocations: 3.844 kB / 1.39 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/1.436, allocations: 23.34 kB / 1.39 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001963/1.436, allocations: 210 kB / 1.39 GB, free: 28.46 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.0001246/1.436, allocations: 166.3 kB / 1.39 GB, free: 28.33 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/1.436, allocations: 27 kB / 1.39 GB, free: 28.32 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.382e-05/1.436, allocations: 36.33 kB / 1.39 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/1.436, allocations: 3.844 kB / 1.39 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/1.436, allocations: 0 / 1.39 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/1.436, allocations: 7.828 kB / 1.39 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/1.438, allocations: 1.693 MB / 1.392 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/1.438, allocations: 7.797 kB / 1.392 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.082e-05/1.438, allocations: 18.64 kB / 1.392 GB, free: 27.53 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/1.438, allocations: 7.781 kB / 1.392 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/1.438, allocations: 18.91 kB / 1.392 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/1.438, allocations: 7.844 kB / 1.392 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.438, allocations: 3.938 kB / 1.392 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009078/1.439, allocations: 1.142 MB / 1.393 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.199e-05/1.439, allocations: 108.4 kB / 1.393 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.581e-05/1.439, allocations: 10.56 kB / 1.393 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/1.439, allocations: 3.188 kB / 1.393 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.978e-05/1.439, allocations: 57.42 kB / 1.393 GB, free: 26.83 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/1.44, allocations: 218 kB / 1.394 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001211/1.44, allocations: 168.3 kB / 1.394 GB, free: 26.63 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.3e-07/1.44, allocations: 4 kB / 1.394 GB, free: 26.63 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004109/1.44, allocations: 68.55 kB / 1.394 GB, free: 26.62 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.0001728/1.44, allocations: 141.1 kB / 1.394 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000717/1.441, allocations: 0.7224 MB / 1.395 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.441, allocations: 0 / 1.395 GB, free: 26.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003784/1.441, allocations: 410.8 kB / 1.395 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/1.443, allocations: 410.4 kB / 1.395 GB, free: 26.2 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/1.444, allocations: 0.8638 MB / 1.396 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004741/1.444, allocations: 0.7675 MB / 1.397 GB, free: 25.21 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003153/1.445, allocations: 112.2 kB / 1.397 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/1.445, allocations: 67.69 kB / 1.397 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of SimCode: time 5.31e-07/1.445, allocations: 0 / 1.397 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of Templates: time 0.01167/1.457, allocations: 8.363 MB / 1.405 GB, free: 17.86 MB / 0.8386 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