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.001439/0.001439, allocations: 104.6 kB / 16.27 MB, free: 5.977 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.001616/0.001616, allocations: 189.9 kB / 17.2 MB, free: 5.602 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.422/1.422, allocations: 222.9 MB / 240.9 MB, free: 15.2 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.268/2.268, allocations: 390.2 MB / 0.6653 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 69.94 kB / 0.8132 GB, free: 33 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2631, allocations: 140.4 MB / 0.9503 GB, free: 8.852 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.003372/0.2665, allocations: 1.738 MB / 0.952 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001488/0.268, allocations: 0.6205 MB / 0.9526 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.2682, allocations: 0 / 0.9526 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.2683, allocations: 11.86 kB / 0.9526 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.2686, allocations: 39.78 kB / 0.9527 GB, free: 6.422 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.2696, allocations: 355.3 kB / 0.953 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007868/0.2704, allocations: 0.6399 MB / 0.9536 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.2705, allocations: 29.09 kB / 0.9536 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000514/0.271, allocations: 311.6 kB / 0.9539 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003523/0.2714, allocations: 147.5 kB / 0.9541 GB, free: 4.957 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001564/0.2716, allocations: 44 kB / 0.9541 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.2717, allocations: 40 kB / 0.9542 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.2718, allocations: 123.7 kB / 0.9543 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003017/0.2722, allocations: 219 kB / 0.9545 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006434/0.2728, allocations: 0.6001 MB / 0.9551 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2728, allocations: 0 / 0.9551 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2728, allocations: 0 / 0.9551 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.491e-05/0.2729, allocations: 0 / 0.9551 GB, free: 3.938 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.001531/0.2744, allocations: 0.917 MB / 0.956 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.2744, allocations: 8.031 kB / 0.956 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.2746, allocations: 56.38 kB / 0.956 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000446/0.2751, allocations: 334.2 kB / 0.9564 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.218e-05/0.2751, allocations: 20.55 kB / 0.9564 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.78e-05/0.2752, allocations: 32.36 kB / 0.9564 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.2763, allocations: 243.8 kB / 0.9566 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2763, allocations: 3.938 kB / 0.9566 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/0.2763, allocations: 0 / 0.9566 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2764, allocations: 7.938 kB / 0.9566 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007981/0.2772, allocations: 115.9 kB / 0.9568 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.2785, allocations: 0.672 MB / 0.9574 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.2796, allocations: 190.3 kB / 0.9576 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007905/0.2804, allocations: 116.8 kB / 0.9577 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.2804, allocations: 4 kB / 0.9577 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009715/0.2814, allocations: 229.3 kB / 0.9579 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.605e-06/0.2814, allocations: 0 / 0.9579 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002707/0.2841, allocations: 496.8 kB / 0.9584 GB, free: 324 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.2842, allocations: 67.39 kB / 0.9585 GB, free: 244 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/0.2847, allocations: 445.8 kB / 0.9589 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 9.096e-05/0.2848, allocations: 37.7 kB / 0.9589 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2849, allocations: 101.3 kB / 0.959 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.301e-05/0.285, allocations: 39.55 kB / 0.9591 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.2852, allocations: 141.3 kB / 0.9592 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.2853, allocations: 334.8 kB / 0.9595 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.2856, allocations: 135.9 kB / 0.9596 GB, free: 15 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/0.286, allocations: 185.9 kB / 0.9598 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003934/0.2864, allocations: 307.2 kB / 0.9601 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.2864, allocations: 0 / 0.9601 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008882/0.2873, allocations: 0.5282 MB / 0.9606 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.729e-05/0.2874, allocations: 103.4 kB / 0.9607 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.2874, allocations: 0 / 0.9607 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.2874, allocations: 4 kB / 0.9607 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.2876, allocations: 23.92 kB / 0.9608 GB, free: 13.78 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/0.2876, allocations: 0 / 0.9608 GB, free: 13.78 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005459/0.2882, allocations: 63.78 kB / 0.9608 GB, free: 13.72 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.165e-05/0.2883, allocations: 59.92 kB / 0.9609 GB, free: 13.66 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.0002501/0.2885, allocations: 220.3 kB / 0.9611 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.412e-05/0.2886, allocations: 39.53 kB / 0.9611 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.384e-05/0.2887, allocations: 43.78 kB / 0.9612 GB, free: 13.35 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.2887, allocations: 3.984 kB / 0.9612 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2887, allocations: 4 kB / 0.9612 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2887, allocations: 0 / 0.9612 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/0.291, allocations: 0.7934 MB / 0.9619 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.291, allocations: 0 / 0.9619 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.785e-05/0.291, allocations: 4 kB / 0.962 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.291, allocations: 0 / 0.962 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.2911, allocations: 27.91 kB / 0.962 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2911, allocations: 4 kB / 0.962 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2911, allocations: 0 / 0.962 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00181/0.2929, allocations: 494.6 kB / 0.9625 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002865/0.2932, allocations: 240.5 kB / 0.9627 GB, free: 11.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.7e-05/0.2933, allocations: 19.94 kB / 0.9627 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004862/0.2938, allocations: 27.97 kB / 0.9627 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.2938, allocations: 7.984 kB / 0.9627 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.501e-05/0.2939, allocations: 59.97 kB / 0.9628 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003186/0.2942, allocations: 319.1 kB / 0.9631 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2942, allocations: 0 / 0.9631 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004069/0.2947, allocations: 71.98 kB / 0.9632 GB, free: 11.21 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.0001784/0.2948, allocations: 130.5 kB / 0.9633 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001427/0.2963, allocations: 478.7 kB / 0.9637 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2963, allocations: 384 / 0.9637 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008131/0.2971, allocations: 130.9 kB / 0.9639 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.2976, allocations: 42.58 kB / 0.9639 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.2992, allocations: 0.6352 MB / 0.9645 GB, free: 9.754 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/0.2996, allocations: 0.794 MB / 0.9653 GB, free: 8.934 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.994e-05/0.2997, allocations: 23.36 kB / 0.9653 GB, free: 8.91 MB / 0.7481 GB Notification: Performance of SimCode: time 1.022e-06/0.2997, allocations: 0 / 0.9653 GB, free: 8.91 MB / 0.7481 GB Notification: Performance of Templates: time 0.006828/0.3065, allocations: 4.1 MB / 0.9693 GB, free: 4.754 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 -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