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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009032/0.0009033, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 182.4 kB / 16.92 MB, free: 6.922 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.395/1.395, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.515/2.515, allocations: 390.9 MB / 0.667 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003696, allocations: 8 kB / 0.8167 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7421/0.7425, allocations: 142.4 MB / 0.9557 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.001682/0.7442, allocations: 1.448 MB / 0.9572 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.7455, allocations: 0.6898 MB / 0.9578 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.538e-05/0.7456, allocations: 0 / 0.9578 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.828e-05/0.7457, allocations: 8.797 kB / 0.9578 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.7458, allocations: 27.16 kB / 0.9579 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006519/0.7464, allocations: 340.2 kB / 0.9582 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000444/0.7469, allocations: 0.5243 MB / 0.9587 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.747, allocations: 34.36 kB / 0.9587 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004026/0.7474, allocations: 319.6 kB / 0.959 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.7477, allocations: 164 kB / 0.9592 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.375e-05/0.7477, allocations: 12.44 kB / 0.9592 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.165e-05/0.7478, allocations: 14.94 kB / 0.9592 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.7479, allocations: 124.8 kB / 0.9593 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.7481, allocations: 226.5 kB / 0.9596 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.7484, allocations: 476.9 kB / 0.96 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.7484, allocations: 0 / 0.96 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7485, allocations: 1.375 kB / 0.96 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.7485, allocations: 0 / 0.96 GB, free: 4.695 MB / 0.7169 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.0008853/0.7494, allocations: 0.7774 MB / 0.9608 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.7494, allocations: 8.25 kB / 0.9608 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.7495, allocations: 56.78 kB / 0.9608 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/0.7499, allocations: 335.6 kB / 0.9611 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.093e-05/0.7499, allocations: 21.84 kB / 0.9612 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.35e-05/0.75, allocations: 31.55 kB / 0.9612 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.7511, allocations: 250.6 kB / 0.9614 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.7511, allocations: 3.938 kB / 0.9614 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/0.7511, allocations: 1.938 kB / 0.9614 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.7511, allocations: 2 kB / 0.9614 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008102/0.7519, allocations: 128.1 kB / 0.9616 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.7531, allocations: 0.6768 MB / 0.9622 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.7542, allocations: 204.4 kB / 0.9624 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007874/0.755, allocations: 131.8 kB / 0.9625 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.755, allocations: 1.406 kB / 0.9626 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009656/0.756, allocations: 247.3 kB / 0.9628 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.034e-06/0.756, allocations: 5.312 kB / 0.9628 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002666/0.7587, allocations: 0.518 MB / 0.9633 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.7587, allocations: 60.78 kB / 0.9634 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004562/0.7592, allocations: 444 kB / 0.9638 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.375e-05/0.7593, allocations: 45.78 kB / 0.9638 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.471e-05/0.7594, allocations: 105.6 kB / 0.9639 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.599e-05/0.7594, allocations: 33.92 kB / 0.964 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.186e-05/0.7595, allocations: 35.64 kB / 0.964 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.267e-05/0.7596, allocations: 330.5 kB / 0.9643 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.7599, allocations: 136.2 kB / 0.9644 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003009/0.7602, allocations: 202 kB / 0.9646 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.7606, allocations: 297.8 kB / 0.9649 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.7606, allocations: 4.969 kB / 0.9649 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008362/0.7614, allocations: 0.5234 MB / 0.9654 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.367e-05/0.7615, allocations: 93.53 kB / 0.9655 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.7615, allocations: 6.016 kB / 0.9655 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.7615, allocations: 3.062 kB / 0.9655 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.7617, allocations: 25.45 kB / 0.9655 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.7617, allocations: 6.969 kB / 0.9656 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005252/0.7622, allocations: 66.05 kB / 0.9656 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.581e-05/0.7623, allocations: 64.97 kB / 0.9657 GB, free: 0.5625 MB / 0.7169 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.0002342/0.7626, allocations: 213.1 kB / 0.9659 GB, free: 400 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.62e-05/0.7626, allocations: 41.09 kB / 0.9659 GB, free: 376 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.428e-05/0.7627, allocations: 44.97 kB / 0.966 GB, free: 344 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.7627, allocations: 5.25 kB / 0.966 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.7627, allocations: 1.344 kB / 0.966 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.7627, allocations: 0 / 0.966 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.765, allocations: 0.8076 MB / 0.9668 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.7651, allocations: 5.219 kB / 0.9668 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.931e-05/0.7651, allocations: 6.844 kB / 0.9668 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.7651, allocations: 1 kB / 0.9668 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.7652, allocations: 24.47 kB / 0.9668 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.7652, allocations: 0 / 0.9668 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.7652, allocations: 4.797 kB / 0.9668 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.7671, allocations: 0.492 MB / 0.9673 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.7675, allocations: 238.8 kB / 0.9675 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.897e-05/0.7675, allocations: 23.52 kB / 0.9675 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004932/0.768, allocations: 45.22 kB / 0.9676 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.7681, allocations: 7.984 kB / 0.9676 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.685e-05/0.7682, allocations: 58.11 kB / 0.9676 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003905/0.7686, allocations: 317.8 kB / 0.9679 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7686, allocations: 4 kB / 0.9679 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004872/0.7691, allocations: 76.58 kB / 0.968 GB, free: 15.02 MB / 0.7325 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.0002017/0.7693, allocations: 121.7 kB / 0.9681 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001415/0.7707, allocations: 486.2 kB / 0.9686 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.7707, allocations: 0 / 0.9686 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008266/0.7716, allocations: 144.7 kB / 0.9687 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/0.772, allocations: 39.81 kB / 0.9688 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.7737, allocations: 0.7748 MB / 0.9695 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.7741, allocations: 0.7877 MB / 0.9703 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.097e-05/0.7742, allocations: 22.67 kB / 0.9703 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of SimCode: time 5.81e-07/0.7742, allocations: 0 / 0.9703 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of Templates: time 0.007379/0.7816, allocations: 4.071 MB / 0.9743 GB, free: 11.04 MB / 0.7325 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.weekDay,calTim.year,time