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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 110.7 kB / 16.42 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 189.5 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.87/2.87, allocations: 469.4 MB / 0.7428 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 60.11 kB / 1.065 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.289/1.291, allocations: 159.1 MB / 1.221 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003307/1.294, allocations: 1.424 MB / 1.222 GB, free: 1.129 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008156/1.295, allocations: 283.1 kB / 1.223 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.719e-05/1.295, allocations: 0 / 1.223 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001552/1.295, allocations: 15.86 kB / 1.223 GB, free: 0.8359 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.947e-05/1.295, allocations: 27.78 kB / 1.223 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004624/1.296, allocations: 83.11 kB / 1.223 GB, free: 0.7305 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000363/1.296, allocations: 235.9 kB / 1.223 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 7.207e-05/1.296, allocations: 13.11 kB / 1.223 GB, free: 500 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/1.296, allocations: 87.81 kB / 1.223 GB, free: 412 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/1.297, allocations: 103.7 kB / 1.223 GB, free: 308 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.625e-05/1.297, allocations: 16 kB / 1.223 GB, free: 292 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.604e-05/1.297, allocations: 16 kB / 1.223 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001362/1.297, allocations: 87.78 kB / 1.223 GB, free: 188 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001439/1.297, allocations: 107.3 kB / 1.223 GB, free: 80 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003443/1.297, allocations: 255.1 kB / 1.224 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/1.297, allocations: 0 / 1.224 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.844e-06/1.297, allocations: 0 / 1.224 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.265e-05/1.297, allocations: 0 / 1.224 GB, free: 15.83 MB / 0.9512 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.00126/1.299, allocations: 0.6996 MB / 1.224 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/1.299, allocations: 8.625 kB / 1.224 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/1.299, allocations: 28.66 kB / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004192/1.299, allocations: 270.7 kB / 1.224 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.765e-05/1.299, allocations: 12.66 kB / 1.224 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/1.299, allocations: 20.38 kB / 1.225 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006827/1.3, allocations: 463.2 kB / 1.225 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/1.3, allocations: 4.188 kB / 1.225 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/1.3, allocations: 7.938 kB / 1.225 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/1.3, allocations: 4 kB / 1.225 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004387/1.301, allocations: 323.8 kB / 1.225 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007285/1.301, allocations: 0.5624 MB / 1.226 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/1.303, allocations: 1.029 MB / 1.227 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007659/1.303, allocations: 0.654 MB / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.635e-05/1.303, allocations: 15.92 kB / 1.227 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006756/1.304, allocations: 476.1 kB / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=37): time 3.276e-06/1.304, allocations: 3.938 kB / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=37): time 0.001594/1.306, allocations: 1.116 MB / 1.229 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.623e-05/1.306, allocations: 140.5 kB / 1.229 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002754/1.306, allocations: 253 kB / 1.229 GB, free: 9.473 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.46e-05/1.306, allocations: 33.7 kB / 1.229 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.48e-05/1.306, allocations: 121.1 kB / 1.23 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 9.753e-05/1.306, allocations: 90.88 kB / 1.23 GB, free: 9.223 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/1.306, allocations: 114.1 kB / 1.23 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000152/1.307, allocations: 346.8 kB / 1.23 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/1.307, allocations: 336.6 kB / 1.23 GB, free: 8.43 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005026/1.308, allocations: 418.5 kB / 1.231 GB, free: 7.984 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009846/1.309, allocations: 0.7674 MB / 1.232 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/1.309, allocations: 4 kB / 1.232 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001156/1.31, allocations: 0.8326 MB / 1.232 GB, free: 6.336 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/1.31, allocations: 8 kB / 1.232 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/1.31, allocations: 3.938 kB / 1.232 GB, free: 6.324 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.671e-05/1.31, allocations: 8.281 kB / 1.232 GB, free: 6.316 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/1.31, allocations: 35.91 kB / 1.232 GB, free: 6.281 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.115e-05/1.31, allocations: 11.92 kB / 1.232 GB, free: 6.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/1.31, allocations: 31.75 kB / 1.232 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003162/1.311, allocations: 267.6 kB / 1.233 GB, free: 5.977 MB / 0.9512 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 (dayTypMonThr.skipIDayIncrement,$PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.iDay,$PRE.dayTypMonThr.iDay,dayTypMonThr.y[3],dayTypMonThr.y[2],dayTypMonThr.y[1],dayTypTwoWeeks.skipIDayIncrement,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.iDay,$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.y[14],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[1],dayTypSat.skipIDayIncrement,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.iDay,$PRE.dayTypSat.iDay,dayTypSat.y[2],dayTypSat.y[1],dayTypMon.skipIDayIncrement,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.iDay,$PRE.dayTypMon.iDay,dayTypMon.y[2],dayTypMon.y[1]) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002536/1.311, allocations: 190.2 kB / 1.233 GB, free: 5.785 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.473e-05/1.311, allocations: 31.62 kB / 1.233 GB, free: 5.754 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.666e-05/1.311, allocations: 42.11 kB / 1.233 GB, free: 5.711 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/1.311, allocations: 3.984 kB / 1.233 GB, free: 5.707 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/1.311, allocations: 4 kB / 1.233 GB, free: 5.703 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.854e-05/1.311, allocations: 104.7 kB / 1.233 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.224e-05/1.311, allocations: 8 kB / 1.233 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/1.312, allocations: 11.98 kB / 1.233 GB, free: 5.562 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/1.312, allocations: 43.95 kB / 1.233 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001677/1.313, allocations: 1.139 MB / 1.234 GB, free: 4.371 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001748/1.315, allocations: 1.216 MB / 1.235 GB, free: 3.137 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007677/1.316, allocations: 383.7 kB / 1.236 GB, free: 2.762 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002217/1.316, allocations: 172.5 kB / 1.236 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of Backend: time 1.102e-06/1.316, allocations: 0 / 1.236 GB, free: 2.594 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001611/1.318, allocations: 0.489 MB / 1.236 GB, free: 2.102 MB / 0.9512 GB Notification: Performance of SimCode: time 0.001808/1.32, allocations: 1.06 MB / 1.237 GB, free: 1.008 MB / 0.9512 GB Notification: Performance of Templates: time 0.01304/1.333, allocations: 6.952 MB / 1.244 GB, free: 10.12 MB / 0.9669 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches