Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01444/0.01444, allocations: 99.05 kB / 15.73 MB, free: 6.008 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.002404/0.002405, allocations: 189.9 kB / 16.67 MB, free: 5.926 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.588/1.588, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.39/2.39, allocations: 390.2 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 59.91 kB / 0.9509 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.112/1.113, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.003936/1.117, allocations: 1.745 MB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001764/1.119, allocations: 0.6224 MB / 1.09 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/1.119, allocations: 4.812 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001419/1.119, allocations: 10.41 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001819/1.12, allocations: 33 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00109/1.121, allocations: 366.4 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008937/1.122, allocations: 0.6282 MB / 1.091 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/1.122, allocations: 39.95 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005695/1.122, allocations: 310.4 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003619/1.123, allocations: 151.3 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001143/1.123, allocations: 45.47 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/1.123, allocations: 40.94 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002173/1.123, allocations: 127.8 kB / 1.092 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002904/1.124, allocations: 221.1 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001055/1.125, allocations: 0.5922 MB / 1.093 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/1.125, allocations: 0 / 1.093 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.076e-06/1.125, allocations: 0 / 1.093 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.298e-05/1.125, allocations: 0.875 kB / 1.093 GB, free: 2.762 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001612/1.126, allocations: 0.9194 MB / 1.094 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/1.126, allocations: 14.58 kB / 1.094 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/1.126, allocations: 52.67 kB / 1.094 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005142/1.127, allocations: 337.7 kB / 1.094 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.389e-05/1.127, allocations: 18.73 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/1.127, allocations: 31.94 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/1.128, allocations: 235.6 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/1.128, allocations: 4.188 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/1.128, allocations: 7.141 kB / 1.094 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/1.128, allocations: 1.406 kB / 1.094 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008878/1.129, allocations: 113 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/1.131, allocations: 0.6803 MB / 1.095 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/1.132, allocations: 185.9 kB / 1.095 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008592/1.133, allocations: 121.9 kB / 1.095 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/1.133, allocations: 2.031 kB / 1.095 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/1.134, allocations: 227.6 kB / 1.096 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.174e-06/1.134, allocations: 0.5625 kB / 1.096 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.003111/1.138, allocations: 0.4923 MB / 1.096 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/1.138, allocations: 66.64 kB / 1.096 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006564/1.138, allocations: 440.1 kB / 1.097 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.441e-05/1.138, allocations: 44.86 kB / 1.097 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/1.138, allocations: 97.45 kB / 1.097 GB, free: 420 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.725e-05/1.138, allocations: 41.27 kB / 1.097 GB, free: 388 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003069/1.139, allocations: 137.8 kB / 1.097 GB, free: 324 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001214/1.139, allocations: 329.2 kB / 1.097 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/1.139, allocations: 134.9 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004192/1.14, allocations: 200.4 kB / 1.098 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005433/1.14, allocations: 304.1 kB / 1.098 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/1.14, allocations: 0.5625 kB / 1.098 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001189/1.142, allocations: 0.5128 MB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001549/1.142, allocations: 97.44 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/1.142, allocations: 6.734 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/1.142, allocations: 3.25 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/1.142, allocations: 23.7 kB / 1.098 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/1.142, allocations: 2.656 kB / 1.098 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000588/1.143, allocations: 58.97 kB / 1.099 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/1.143, allocations: 62.38 kB / 1.099 GB, free: 15.28 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 (calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstHourSampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.hourSampleTrigger,$whenCondition1,calTim.calTim.daySampleTrigger,$whenCondition2,calTim.calTim.epochLastMonth,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.yearIndex,$PRE.calTim.calTim.yearIndex,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,$PRE.calTim.calTim.weekDay,calTim.calTim.hour,$PRE.calTim.calTim.hour,calTim.calTim.day,$PRE.calTim.calTim.day,calTim.calTim.month,$PRE.calTim.calTim.month,calTim.calTim.year,$PRE.calTim.calTim.year) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * 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.0003771/1.143, allocations: 224.3 kB / 1.099 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/1.143, allocations: 45.8 kB / 1.099 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/1.143, allocations: 38 kB / 1.099 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/1.143, allocations: 2.75 kB / 1.099 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/1.143, allocations: 0 / 1.099 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/1.143, allocations: 2.281 kB / 1.099 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002813/1.146, allocations: 0.7859 MB / 1.1 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/1.146, allocations: 0.9688 kB / 1.1 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.728e-05/1.146, allocations: 4.984 kB / 1.1 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/1.146, allocations: 4.891 kB / 1.1 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.88e-05/1.146, allocations: 22.55 kB / 1.1 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/1.146, allocations: 8.719 kB / 1.1 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/1.146, allocations: 0.6875 kB / 1.1 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/1.149, allocations: 483.6 kB / 1.1 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004506/1.149, allocations: 254.1 kB / 1.1 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.756e-05/1.149, allocations: 16.14 kB / 1.1 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005275/1.15, allocations: 40.27 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/1.15, allocations: 11.62 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/1.15, allocations: 56.52 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0006215/1.15, allocations: 318.9 kB / 1.101 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/1.15, allocations: 0 / 1.101 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005864/1.151, allocations: 67.72 kB / 1.101 GB, free: 14.07 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.yearIndex,calTim.calTim.year,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.firstHourSampling,calTim.calTim.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002778/1.151, allocations: 136 kB / 1.101 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001602/1.153, allocations: 467 kB / 1.101 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.153, allocations: 1.094 kB / 1.101 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008629/1.154, allocations: 127.9 kB / 1.102 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000467/1.154, allocations: 34.34 kB / 1.102 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/1.156, allocations: 0.6058 MB / 1.102 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007225/1.157, allocations: 0.7832 MB / 1.103 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001072/1.157, allocations: 16.92 kB / 1.103 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.406e-05/1.157, allocations: 16.56 kB / 1.103 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of SimCode: time 6.42e-07/1.157, allocations: 0 / 1.103 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of Templates: time 0.01869/1.176, allocations: 5.436 MB / 1.108 GB, free: 11.71 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches