Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Sources.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.Controls.Sources.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.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.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.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.341/2.341, allocations: 390.3 MB / 402.8 MB, free: 6.715 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.001042/0.001042, allocations: 176.8 kB / 496.1 MB, free: 12.86 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.411/1.411, 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.001053/0.001053, allocations: 99.88 kB / 0.9317 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.291e-05/3.291e-05, allocations: 5.719 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3099, allocations: 143 MB / 1.219 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.037/1.347, allocations: 150.6 MB / 1.366 GB, free: 3.398 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/1.348, allocations: 75.64 kB / 1.366 GB, free: 3.359 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04959/1.397, allocations: 18.94 MB / 1.384 GB, free: 3.758 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.753e-06/1.397, allocations: 0 / 1.384 GB, free: 3.758 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.065e-05/1.397, allocations: 11.94 kB / 1.384 GB, free: 3.746 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.001178/1.399, allocations: 0.5904 MB / 1.385 GB, free: 3.098 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/1.399, allocations: 8.031 kB / 1.385 GB, free: 3.09 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/1.399, allocations: 35.58 kB / 1.385 GB, free: 3.055 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004651/1.399, allocations: 247.7 kB / 1.385 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.479e-05/1.399, allocations: 16.09 kB / 1.385 GB, free: 2.773 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.671e-05/1.399, allocations: 15.56 kB / 1.385 GB, free: 2.762 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007033/1.4, allocations: 454.5 kB / 1.386 GB, free: 2.379 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/1.4, allocations: 0 / 1.386 GB, free: 2.379 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/1.4, allocations: 6.797 kB / 1.386 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/1.4, allocations: 7.984 kB / 1.386 GB, free: 2.367 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004142/1.401, allocations: 324.4 kB / 1.386 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007495/1.401, allocations: 0.5548 MB / 1.387 GB, free: 1.57 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/1.403, allocations: 1.031 MB / 1.388 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007219/1.403, allocations: 0.6443 MB / 1.388 GB, free: 128 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/1.403, allocations: 8 kB / 1.388 GB, free: 120 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005455/1.404, allocations: 476.5 kB / 1.389 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=37): time 2.334e-06/1.404, allocations: 0 / 1.389 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37): time 0.001109/1.405, allocations: 0.783 MB / 1.389 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/1.405, allocations: 147.1 kB / 1.39 GB, free: 14.87 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/1.405, allocations: 234.4 kB / 1.39 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.38e-05/1.405, allocations: 37.08 kB / 1.39 GB, free: 14.63 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 8.729e-05/1.406, allocations: 123 kB / 1.39 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.584e-05/1.406, allocations: 80.17 kB / 1.39 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.842e-05/1.406, allocations: 5.875 kB / 1.39 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001741/1.406, allocations: 342.1 kB / 1.39 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/1.406, allocations: 328.2 kB / 1.391 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/1.407, allocations: 419.4 kB / 1.391 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004651/1.407, allocations: 360.8 kB / 1.391 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.323e-06/1.407, allocations: 4 kB / 1.391 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001068/1.408, allocations: 0.8146 MB / 1.392 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/1.408, allocations: 8.062 kB / 1.392 GB, free: 12.51 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/1.408, allocations: 8 kB / 1.392 GB, free: 12.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/1.408, allocations: 4 kB / 1.392 GB, free: 12.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/1.409, allocations: 50.77 kB / 1.392 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/1.409, allocations: 4 kB / 1.392 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/1.409, allocations: 18.12 kB / 1.392 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000277/1.409, allocations: 215.2 kB / 1.393 GB, free: 12.23 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.0001704/1.409, allocations: 149.8 kB / 1.393 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.572e-05/1.409, allocations: 34.31 kB / 1.393 GB, free: 12.06 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.684e-05/1.41, allocations: 39.89 kB / 1.393 GB, free: 12.04 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/1.41, allocations: 7.938 kB / 1.393 GB, free: 12.03 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/1.41, allocations: 0 / 1.393 GB, free: 12.03 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/1.41, allocations: 7.984 kB / 1.393 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/1.412, allocations: 1.694 MB / 1.394 GB, free: 10.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/1.412, allocations: 0 / 1.394 GB, free: 10.48 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.198e-05/1.412, allocations: 23.23 kB / 1.394 GB, free: 10.46 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/1.412, allocations: 0 / 1.394 GB, free: 10.46 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/1.412, allocations: 23.28 kB / 1.394 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/1.412, allocations: 0 / 1.394 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.412, allocations: 3.953 kB / 1.394 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/1.413, allocations: 1.149 MB / 1.396 GB, free: 9.387 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/1.413, allocations: 100.7 kB / 1.396 GB, free: 9.27 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.937e-05/1.413, allocations: 15.25 kB / 1.396 GB, free: 9.262 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/1.414, allocations: 3.875 kB / 1.396 GB, free: 9.262 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/1.414, allocations: 54.42 kB / 1.396 GB, free: 9.219 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003061/1.414, allocations: 222.2 kB / 1.396 GB, free: 9.008 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001801/1.414, allocations: 166.9 kB / 1.396 GB, free: 8.863 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.5e-07/1.414, allocations: 0 / 1.396 GB, free: 8.863 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004802/1.415, allocations: 69.92 kB / 1.396 GB, free: 8.805 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.0002071/1.415, allocations: 132.6 kB / 1.396 GB, free: 8.672 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0009974/1.416, allocations: 0.7344 MB / 1.397 GB, free: 8.059 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/1.416, allocations: 0 / 1.397 GB, free: 8.059 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.00054/1.416, allocations: 406.5 kB / 1.397 GB, free: 7.727 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/1.418, allocations: 313.1 kB / 1.398 GB, free: 7.461 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/1.419, allocations: 0.8674 MB / 1.399 GB, free: 6.688 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004231/1.42, allocations: 0.7604 MB / 1.399 GB, free: 5.906 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003797/1.42, allocations: 111.4 kB / 1.399 GB, free: 5.797 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/1.42, allocations: 62.94 kB / 1.4 GB, free: 5.742 MB / 0.8542 GB Notification: Performance of SimCode: time 9.32e-07/1.42, allocations: 0 / 1.4 GB, free: 5.742 MB / 0.8542 GB Notification: Performance of Templates: time 0.01557/1.436, allocations: 7.833 MB / 1.407 GB, free: 14.02 MB / 0.8698 GB make -j1 -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_latest_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Sources.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Sources_Examples_DayType.csv","../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches