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.001726/0.001726, allocations: 115.8 kB / 16.42 MB, free: 6.516 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.001952/0.001952, allocations: 190.6 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.581/1.581, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3/3, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 63.91 kB / 1.055 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.273/1.274, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003938/1.278, allocations: 1.418 MB / 1.21 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007369/1.279, allocations: 279.1 kB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.071e-05/1.279, allocations: 0 / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001899/1.279, allocations: 23.8 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001161/1.28, allocations: 19.84 kB / 1.21 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005401/1.28, allocations: 87.8 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004275/1.281, allocations: 232 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 7.7e-05/1.281, allocations: 13.05 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/1.281, allocations: 91.81 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/1.281, allocations: 103.7 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001095/1.281, allocations: 16 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/1.281, allocations: 16 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001608/1.281, allocations: 83.72 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001788/1.282, allocations: 111.3 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003493/1.282, allocations: 255.1 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/1.282, allocations: 0 / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.214e-06/1.282, allocations: 0 / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.07e-05/1.282, allocations: 0 / 1.211 GB, free: 10.88 MB / 0.9356 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.001223/1.283, allocations: 0.6879 MB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/1.283, allocations: 8.031 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/1.283, allocations: 32.56 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/1.284, allocations: 266.8 kB / 1.212 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/1.284, allocations: 12.66 kB / 1.212 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.781e-05/1.284, allocations: 20.38 kB / 1.212 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006824/1.285, allocations: 463.2 kB / 1.212 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/1.285, allocations: 8.188 kB / 1.212 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.804e-05/1.285, allocations: 7.938 kB / 1.213 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/1.285, allocations: 4 kB / 1.213 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004323/1.285, allocations: 319.8 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007718/1.286, allocations: 0.5625 MB / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/1.287, allocations: 1.025 MB / 1.214 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007953/1.288, allocations: 0.6672 MB / 1.215 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.755e-05/1.288, allocations: 8 kB / 1.215 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006628/1.289, allocations: 484 kB / 1.215 GB, free: 6.078 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=37): time 2.675e-06/1.289, allocations: 0 / 1.215 GB, free: 6.078 MB / 0.9356 GB Notification: Performance of matching and sorting (n=37): time 0.001589/1.29, allocations: 1.123 MB / 1.217 GB, free: 4.949 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/1.29, allocations: 132.5 kB / 1.217 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/1.291, allocations: 260.9 kB / 1.217 GB, free: 4.527 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/1.291, allocations: 37.7 kB / 1.217 GB, free: 4.484 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.073e-05/1.291, allocations: 121.1 kB / 1.217 GB, free: 4.363 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 9.993e-05/1.291, allocations: 79 kB / 1.217 GB, free: 4.285 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/1.291, allocations: 122 kB / 1.217 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001719/1.291, allocations: 342.8 kB / 1.218 GB, free: 3.816 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004373/1.292, allocations: 332.7 kB / 1.218 GB, free: 3.488 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004759/1.292, allocations: 418.5 kB / 1.218 GB, free: 3.047 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009912/1.293, allocations: 0.7596 MB / 1.219 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.293, allocations: 0 / 1.219 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001242/1.295, allocations: 0.8454 MB / 1.22 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/1.295, allocations: 4 kB / 1.22 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/1.295, allocations: 11.88 kB / 1.22 GB, free: 1.383 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/1.295, allocations: 4 kB / 1.22 GB, free: 1.379 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/1.295, allocations: 43.84 kB / 1.22 GB, free: 1.336 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/1.295, allocations: 4 kB / 1.22 GB, free: 1.332 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/1.295, allocations: 27.73 kB / 1.22 GB, free: 1.305 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000321/1.295, allocations: 268.1 kB / 1.22 GB, free: 1.043 MB / 0.9356 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.0002529/1.296, allocations: 189.7 kB / 1.22 GB, free: 0.8477 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/1.296, allocations: 31.72 kB / 1.22 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.359e-05/1.296, allocations: 42.11 kB / 1.221 GB, free: 0.7773 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.527e-06/1.296, allocations: 3.984 kB / 1.221 GB, free: 0.7734 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/1.296, allocations: 3.938 kB / 1.221 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.71e-05/1.296, allocations: 108.7 kB / 1.221 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.496e-05/1.296, allocations: 12 kB / 1.221 GB, free: 0.6328 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/1.296, allocations: 7.938 kB / 1.221 GB, free: 0.625 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/1.296, allocations: 47.94 kB / 1.221 GB, free: 0.5781 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001322/1.298, allocations: 1.137 MB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001271/1.299, allocations: 1.206 MB / 1.223 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005164/1.3, allocations: 384.3 kB / 1.223 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001769/1.3, allocations: 176.5 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of Backend: time 2.134e-06/1.3, allocations: 0 / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001231/1.301, allocations: 0.4953 MB / 1.224 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of SimCode: time 0.00182/1.303, allocations: 1.057 MB / 1.225 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of Templates: time 0.01346/1.316, allocations: 7.095 MB / 1.232 GB, free: 5.039 MB / 0.9512 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