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.306/2.306, allocations: 390.3 MB / 402.8 MB, free: 6.73 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.001124/0.001124, allocations: 180.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.645/1.645, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.001122/0.001121, allocations: 87.95 kB / 0.9317 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.574e-05/3.576e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3979/0.3979, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.168/1.566, allocations: 150.2 MB / 1.365 GB, free: 3.82 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003926/1.566, allocations: 68.39 kB / 1.366 GB, free: 3.781 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06513/1.631, allocations: 24.23 MB / 1.389 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.525e-06/1.632, allocations: 0 / 1.389 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.846e-05/1.632, allocations: 4 kB / 1.389 GB, free: 15.79 MB / 0.8542 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.001707/1.633, allocations: 0.6132 MB / 1.39 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 9.483e-05/1.633, allocations: 12.03 kB / 1.39 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/1.634, allocations: 31.58 kB / 1.39 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006813/1.634, allocations: 252 kB / 1.39 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.614e-05/1.634, allocations: 15.22 kB / 1.39 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/1.635, allocations: 19.44 kB / 1.39 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008694/1.635, allocations: 446.2 kB / 1.391 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/1.635, allocations: 4 kB / 1.391 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/1.635, allocations: 6.25 kB / 1.391 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/1.635, allocations: 4 kB / 1.391 GB, free: 14.39 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005167/1.636, allocations: 318.8 kB / 1.391 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/1.637, allocations: 0.5536 MB / 1.391 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/1.639, allocations: 1.024 MB / 1.392 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008655/1.639, allocations: 0.6579 MB / 1.393 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 6.478e-05/1.64, allocations: 7.984 kB / 1.393 GB, free: 12.14 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006929/1.64, allocations: 482.9 kB / 1.394 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=37): time 2.325e-06/1.64, allocations: 0 / 1.394 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37): time 0.001322/1.642, allocations: 0.7786 MB / 1.394 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001492/1.642, allocations: 144.4 kB / 1.394 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003861/1.642, allocations: 224.2 kB / 1.395 GB, free: 10.7 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 6.808e-05/1.642, allocations: 40.83 kB / 1.395 GB, free: 10.66 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.000118/1.642, allocations: 120.8 kB / 1.395 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/1.642, allocations: 84.84 kB / 1.395 GB, free: 10.5 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.256e-05/1.643, allocations: 10.44 kB / 1.395 GB, free: 10.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002449/1.643, allocations: 344 kB / 1.395 GB, free: 10.16 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004944/1.643, allocations: 328.3 kB / 1.396 GB, free: 9.902 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005378/1.644, allocations: 411 kB / 1.396 GB, free: 9.531 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005326/1.644, allocations: 359.3 kB / 1.396 GB, free: 9.242 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/1.644, allocations: 0 / 1.396 GB, free: 9.242 MB / 0.8542 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001234/1.646, allocations: 0.8286 MB / 1.397 GB, free: 8.543 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/1.646, allocations: 8 kB / 1.397 GB, free: 8.535 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/1.646, allocations: 4 kB / 1.397 GB, free: 8.531 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/1.646, allocations: 4 kB / 1.397 GB, free: 8.527 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/1.646, allocations: 43.16 kB / 1.397 GB, free: 8.488 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.374e-05/1.646, allocations: 4.062 kB / 1.397 GB, free: 8.484 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003177/1.646, allocations: 23.23 kB / 1.397 GB, free: 8.469 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/1.647, allocations: 211.2 kB / 1.397 GB, free: 8.266 MB / 0.8542 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.0002443/1.647, allocations: 156.8 kB / 1.397 GB, free: 8.121 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.933e-05/1.647, allocations: 27.62 kB / 1.398 GB, free: 8.094 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/1.647, allocations: 35.33 kB / 1.398 GB, free: 8.074 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/1.647, allocations: 8 kB / 1.398 GB, free: 8.066 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/1.647, allocations: 0 / 1.398 GB, free: 8.066 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/1.647, allocations: 4.219 kB / 1.398 GB, free: 8.062 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/1.65, allocations: 1.704 MB / 1.399 GB, free: 6.52 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/1.65, allocations: 0 / 1.399 GB, free: 6.52 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.969e-05/1.65, allocations: 23.91 kB / 1.399 GB, free: 6.496 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/1.65, allocations: 4 kB / 1.399 GB, free: 6.492 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.85e-05/1.65, allocations: 23.72 kB / 1.399 GB, free: 6.477 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/1.65, allocations: 4 kB / 1.399 GB, free: 6.473 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.65, allocations: 3.953 kB / 1.399 GB, free: 6.469 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/1.652, allocations: 1.138 MB / 1.4 GB, free: 5.422 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/1.652, allocations: 104.2 kB / 1.4 GB, free: 5.305 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.034e-05/1.652, allocations: 15.36 kB / 1.401 GB, free: 5.293 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/1.652, allocations: 3.25 kB / 1.401 GB, free: 5.293 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/1.652, allocations: 50.06 kB / 1.401 GB, free: 5.258 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003279/1.653, allocations: 226.9 kB / 1.401 GB, free: 5.039 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002284/1.653, allocations: 173 kB / 1.401 GB, free: 4.891 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.4e-07/1.653, allocations: 0 / 1.401 GB, free: 4.891 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005967/1.654, allocations: 62.44 kB / 1.401 GB, free: 4.84 MB / 0.8542 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.0003535/1.654, allocations: 132.9 kB / 1.401 GB, free: 4.703 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.00117/1.655, allocations: 0.7396 MB / 1.402 GB, free: 4.086 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/1.655, allocations: 4.25 kB / 1.402 GB, free: 4.082 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0005986/1.656, allocations: 403.2 kB / 1.402 GB, free: 3.754 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001793/1.658, allocations: 403.5 kB / 1.403 GB, free: 3.402 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/1.659, allocations: 0.8817 MB / 1.403 GB, free: 2.617 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006322/1.66, allocations: 0.76 MB / 1.404 GB, free: 1.836 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0005277/1.66, allocations: 114.8 kB / 1.404 GB, free: 1.723 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/1.661, allocations: 69.38 kB / 1.404 GB, free: 1.664 MB / 0.8542 GB Notification: Performance of SimCode: time 1.593e-06/1.661, allocations: 0 / 1.404 GB, free: 1.664 MB / 0.8542 GB Notification: Performance of Templates: time 0.0183/1.679, allocations: 8.351 MB / 1.413 GB, free: 9.398 MB / 0.8698 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