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.037/2.037, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001163/0.001163, allocations: 180.8 kB / 487.4 MB, free: 5.035 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.324/1.324, allocations: 221.5 MB / 0.7824 GB, free: 0.9492 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007952/0.0007953, allocations: 95.84 kB / 0.9219 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.217e-05/1.218e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2219, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7898/1.012, allocations: 148.7 MB / 1.351 GB, free: 18.57 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/1.012, allocations: 72.45 kB / 1.351 GB, free: 18.57 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05019/1.062, allocations: 24.11 MB / 1.375 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.392e-06/1.062, allocations: 4 kB / 1.375 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.587e-05/1.062, allocations: 3.906 kB / 1.375 GB, free: 32.54 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.0008024/1.063, allocations: 0.6129 MB / 1.375 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/1.063, allocations: 7.844 kB / 1.375 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.355e-05/1.063, allocations: 27.25 kB / 1.375 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/1.064, allocations: 250.5 kB / 1.376 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/1.064, allocations: 3.844 kB / 1.376 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/1.064, allocations: 23.62 kB / 1.376 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003122/1.064, allocations: 306.3 kB / 1.376 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000402/1.064, allocations: 443.5 kB / 1.376 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/1.064, allocations: 0 / 1.376 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/1.064, allocations: 4 kB / 1.376 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/1.064, allocations: 3.844 kB / 1.376 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000445/1.065, allocations: 0.5165 MB / 1.377 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007924/1.066, allocations: 1.004 MB / 1.378 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004795/1.066, allocations: 0.6406 MB / 1.379 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/1.066, allocations: 7.766 kB / 1.379 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003952/1.067, allocations: 454.9 kB / 1.379 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 1.332e-06/1.067, allocations: 7.781 kB / 1.379 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0007201/1.067, allocations: 0.7622 MB / 1.38 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/1.067, allocations: 136.2 kB / 1.38 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/1.068, allocations: 219.4 kB / 1.38 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/1.068, allocations: 25.7 kB / 1.38 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.216e-05/1.068, allocations: 131 kB / 1.38 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.27e-05/1.068, allocations: 73.08 kB / 1.38 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.541e-05/1.068, allocations: 0 / 1.38 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.068, allocations: 343.2 kB / 1.381 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002558/1.068, allocations: 323.5 kB / 1.381 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/1.068, allocations: 407.2 kB / 1.381 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/1.069, allocations: 354.4 kB / 1.382 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/1.069, allocations: 0 / 1.382 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006578/1.069, allocations: 0.7939 MB / 1.382 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/1.069, allocations: 7.844 kB / 1.382 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/1.069, allocations: 3.875 kB / 1.382 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/1.069, allocations: 3.875 kB / 1.382 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/1.07, allocations: 45.09 kB / 1.383 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/1.07, allocations: 3.969 kB / 1.383 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001926/1.07, allocations: 15.83 kB / 1.383 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/1.07, allocations: 213.7 kB / 1.383 GB, free: 29.18 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.0001082/1.07, allocations: 144.9 kB / 1.383 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.411e-05/1.07, allocations: 27.16 kB / 1.383 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.222e-05/1.07, allocations: 33.14 kB / 1.383 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/1.07, allocations: 3.844 kB / 1.383 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/1.07, allocations: 3.844 kB / 1.383 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/1.07, allocations: 0 / 1.383 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/1.072, allocations: 1.63 MB / 1.385 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/1.072, allocations: 3.812 kB / 1.385 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.999e-05/1.072, allocations: 26.66 kB / 1.385 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/1.072, allocations: 3.688 kB / 1.385 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/1.072, allocations: 19.66 kB / 1.385 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/1.072, allocations: 11.84 kB / 1.385 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/1.072, allocations: 0 / 1.385 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007168/1.072, allocations: 1.134 MB / 1.386 GB, free: 27.72 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.473e-05/1.072, allocations: 104.4 kB / 1.386 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.519e-05/1.072, allocations: 7.188 kB / 1.386 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/1.073, allocations: 7.766 kB / 1.386 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.088e-05/1.073, allocations: 52.05 kB / 1.386 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/1.073, allocations: 219 kB / 1.386 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001167/1.073, allocations: 157.5 kB / 1.386 GB, free: 27.39 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.1e-07/1.073, allocations: 4 kB / 1.386 GB, free: 27.39 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004047/1.073, allocations: 57.39 kB / 1.386 GB, free: 27.38 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.0001419/1.074, allocations: 125.5 kB / 1.386 GB, free: 27.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006059/1.074, allocations: 0.7068 MB / 1.387 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/1.074, allocations: 0 / 1.387 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003368/1.075, allocations: 399.7 kB / 1.387 GB, free: 27.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/1.076, allocations: 402.9 kB / 1.388 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008673/1.077, allocations: 0.848 MB / 1.389 GB, free: 26.71 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/1.077, allocations: 0.7653 MB / 1.389 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002576/1.078, allocations: 123.9 kB / 1.39 GB, free: 25.92 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.217e-05/1.078, allocations: 68.84 kB / 1.39 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of SimCode: time 3.41e-07/1.078, allocations: 0 / 1.39 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of Templates: time 0.009063/1.087, allocations: 7.977 MB / 1.397 GB, free: 21.89 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