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.001185/0.001185, allocations: 110.9 kB / 16.37 MB, free: 6.012 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.001135/0.001135, allocations: 191 kB / 17.3 MB, free: 5.613 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.377/1.377, 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 9.1.2-maint.9.1.x/package.mo): time 2.275/2.275, allocations: 390.3 MB / 0.6655 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 67.55 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2837, allocations: 140.4 MB / 0.9511 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.003046/0.2868, allocations: 1.741 MB / 0.9528 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001386/0.2882, allocations: 0.6285 MB / 0.9535 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.476e-05/0.2883, allocations: 4 kB / 0.9535 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.2885, allocations: 15.81 kB / 0.9535 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.2886, allocations: 31.78 kB / 0.9535 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008491/0.2895, allocations: 363.3 kB / 0.9539 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005996/0.2901, allocations: 0.6282 MB / 0.9545 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.2902, allocations: 29.09 kB / 0.9545 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000364/0.2906, allocations: 315.5 kB / 0.9548 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.2908, allocations: 161.1 kB / 0.955 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.402e-05/0.2909, allocations: 40 kB / 0.955 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.591e-05/0.291, allocations: 40 kB / 0.955 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.2912, allocations: 135.5 kB / 0.9552 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.2914, allocations: 215 kB / 0.9554 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005074/0.2919, allocations: 0.592 MB / 0.9559 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2919, allocations: 0 / 0.9559 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.913e-06/0.2919, allocations: 0 / 0.9559 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.2919, allocations: 0 / 0.9559 GB, free: 3.082 MB / 0.7325 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.001277/0.2932, allocations: 0.9093 MB / 0.9568 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.2933, allocations: 12.03 kB / 0.9568 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.2934, allocations: 52.38 kB / 0.9569 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004528/0.2938, allocations: 338.1 kB / 0.9572 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.275e-05/0.2939, allocations: 24.36 kB / 0.9572 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.488e-05/0.294, allocations: 28.36 kB / 0.9573 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009626/0.2949, allocations: 239.8 kB / 0.9575 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.295, allocations: 192 / 0.9575 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.295, allocations: 11.94 kB / 0.9575 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.295, allocations: 0 / 0.9575 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007302/0.2957, allocations: 115.9 kB / 0.9576 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.2971, allocations: 0.6681 MB / 0.9583 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009568/0.2981, allocations: 178.5 kB / 0.9584 GB, free: 340 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006987/0.2988, allocations: 120.8 kB / 0.9586 GB, free: 216 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.2988, allocations: 4 kB / 0.9586 GB, free: 212 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000889/0.2997, allocations: 237.7 kB / 0.9588 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 1.733e-06/0.2997, allocations: 0 / 0.9588 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of matching and sorting (n=16): time 0.002414/0.3021, allocations: 492.8 kB / 0.9593 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/0.3022, allocations: 63.41 kB / 0.9593 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000427/0.3026, allocations: 441.8 kB / 0.9597 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.884e-05/0.3027, allocations: 41.69 kB / 0.9598 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.181e-05/0.3028, allocations: 105.3 kB / 0.9599 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.944e-05/0.3028, allocations: 39.55 kB / 0.9599 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.303, allocations: 141.2 kB / 0.96 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3032, allocations: 330.8 kB / 0.9604 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.3035, allocations: 139.9 kB / 0.9605 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.3038, allocations: 197 kB / 0.9607 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004093/0.3042, allocations: 295.4 kB / 0.961 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3042, allocations: 3.938 kB / 0.961 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008373/0.305, allocations: 0.5202 MB / 0.9615 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.696e-05/0.3051, allocations: 99.56 kB / 0.9616 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.3052, allocations: 3.984 kB / 0.9616 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.3052, allocations: 4 kB / 0.9616 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.3053, allocations: 27.91 kB / 0.9616 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.3054, allocations: 4 kB / 0.9616 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004653/0.3058, allocations: 63.73 kB / 0.9617 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.514e-05/0.3059, allocations: 55.98 kB / 0.9617 GB, free: 12.82 MB / 0.7481 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.0002377/0.3062, allocations: 224.3 kB / 0.9619 GB, free: 12.6 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.343e-05/0.3062, allocations: 35.53 kB / 0.962 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.22e-05/0.3063, allocations: 39.8 kB / 0.962 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.3063, allocations: 4 kB / 0.962 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3063, allocations: 0 / 0.962 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.3063, allocations: 3.984 kB / 0.962 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.3085, allocations: 0.7903 MB / 0.9628 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3085, allocations: 0 / 0.9628 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.615e-05/0.3085, allocations: 7.984 kB / 0.9628 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.3086, allocations: 4 kB / 0.9628 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.161e-05/0.3086, allocations: 19.97 kB / 0.9628 GB, free: 11.63 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.098e-05/0.3086, allocations: 7.938 kB / 0.9628 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3086, allocations: 4 kB / 0.9628 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.3103, allocations: 471.3 kB / 0.9633 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003449/0.3106, allocations: 248.5 kB / 0.9635 GB, free: 10.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.221e-05/0.3107, allocations: 16 kB / 0.9635 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004633/0.3112, allocations: 35.89 kB / 0.9636 GB, free: 10.83 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.028e-05/0.3113, allocations: 11.92 kB / 0.9636 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.226e-05/0.3113, allocations: 63.92 kB / 0.9636 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003327/0.3117, allocations: 319.1 kB / 0.9639 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3117, allocations: 0 / 0.9639 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004052/0.3121, allocations: 68 kB / 0.964 GB, free: 10.38 MB / 0.7481 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.0002198/0.3123, allocations: 134.4 kB / 0.9641 GB, free: 10.24 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001278/0.3136, allocations: 478.4 kB / 0.9646 GB, free: 9.75 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3136, allocations: 0 / 0.9646 GB, free: 9.75 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0007191/0.3143, allocations: 120.3 kB / 0.9647 GB, free: 9.633 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.3148, allocations: 44.86 kB / 0.9648 GB, free: 9.594 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.3163, allocations: 0.5866 MB / 0.9653 GB, free: 8.984 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.3167, allocations: 0.794 MB / 0.9661 GB, free: 8.164 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.397e-05/0.3167, allocations: 13.42 kB / 0.9661 GB, free: 8.152 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.3168, allocations: 19.42 kB / 0.9661 GB, free: 8.133 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.3168, allocations: 0 / 0.9661 GB, free: 8.133 MB / 0.7481 GB Notification: Performance of Templates: time 0.01058/0.3274, allocations: 5.414 MB / 0.9714 GB, free: 2.633 MB / 0.7481 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 -s gbode -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) Reference file matches