Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.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.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Utilities.Time.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.Utilities.Time.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 106 kB / 16.27 MB, free: 6.41 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.00187/0.00187, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.401/1.401, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.284/2.284, allocations: 390.3 MB / 0.6653 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 64.48 kB / 0.8132 GB, free: 33.04 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2619, allocations: 140.4 MB / 0.9503 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus): time 0.003275/0.2652, allocations: 1.515 MB / 0.9517 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001387/0.2666, allocations: 0.5494 MB / 0.9523 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.201e-05/0.2667, allocations: 4 kB / 0.9523 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.2668, allocations: 11.86 kB / 0.9523 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.267, allocations: 23.86 kB / 0.9523 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009685/0.268, allocations: 311.3 kB / 0.9526 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0006654/0.2687, allocations: 0.4916 MB / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.674e-05/0.2687, allocations: 11.98 kB / 0.9531 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000492/0.2692, allocations: 279.6 kB / 0.9534 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000351/0.2696, allocations: 131.7 kB / 0.9535 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001363/0.2697, allocations: 28 kB / 0.9535 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.2698, allocations: 28 kB / 0.9535 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.27, allocations: 119.6 kB / 0.9537 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002351/0.2702, allocations: 187 kB / 0.9538 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005022/0.2708, allocations: 426.9 kB / 0.9542 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2708, allocations: 0 / 0.9542 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.974e-06/0.2708, allocations: 0 / 0.9542 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.268e-05/0.2708, allocations: 0 / 0.9542 GB, free: 4.762 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.00148/0.2723, allocations: 0.8704 MB / 0.9551 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.2723, allocations: 8.031 kB / 0.9551 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.2725, allocations: 52.47 kB / 0.9552 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.2729, allocations: 322 kB / 0.9555 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.115e-05/0.273, allocations: 16.36 kB / 0.9555 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.279e-05/0.2731, allocations: 32.36 kB / 0.9555 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.2742, allocations: 210 kB / 0.9557 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.2742, allocations: 4.172 kB / 0.9557 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.2742, allocations: 3.938 kB / 0.9557 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.2742, allocations: 4 kB / 0.9557 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008259/0.2751, allocations: 99.91 kB / 0.9558 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005369/0.2756, allocations: 389.2 kB / 0.9562 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.2767, allocations: 178.2 kB / 0.9564 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008186/0.2776, allocations: 116.8 kB / 0.9565 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/0.2776, allocations: 3.984 kB / 0.9565 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001035/0.2786, allocations: 219.1 kB / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 1.984e-06/0.2787, allocations: 0 / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002726/0.2814, allocations: 491.6 kB / 0.9571 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.2815, allocations: 63.41 kB / 0.9572 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004734/0.2819, allocations: 409.8 kB / 0.9576 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.167e-05/0.282, allocations: 41.69 kB / 0.9576 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.824e-05/0.2821, allocations: 93.44 kB / 0.9577 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.346e-05/0.2822, allocations: 47.47 kB / 0.9578 GB, free: 0.9141 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.2824, allocations: 129.3 kB / 0.9579 GB, free: 0.7812 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.2826, allocations: 318.8 kB / 0.9582 GB, free: 472 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002898/0.2829, allocations: 123.9 kB / 0.9583 GB, free: 348 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.2832, allocations: 169.9 kB / 0.9585 GB, free: 156 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000431/0.2836, allocations: 282.8 kB / 0.9588 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2836, allocations: 0 / 0.9588 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008619/0.2845, allocations: 492.6 kB / 0.9592 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.396e-05/0.2846, allocations: 87.31 kB / 0.9593 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.2846, allocations: 4 kB / 0.9593 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.2847, allocations: 0 / 0.9593 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.2848, allocations: 36.09 kB / 0.9593 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.2849, allocations: 4 kB / 0.9593 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005224/0.2854, allocations: 55.8 kB / 0.9594 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.45e-05/0.2855, allocations: 63.91 kB / 0.9595 GB, free: 15.09 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.firstHourSampling,$PRE.calTim.firstHourSampling,calTim.firstDaySampling,$PRE.calTim.firstDaySampling,calTim.daySampleTrigger,$whenCondition1,calTim.hourSampleTrigger,$whenCondition2,calTim.epochLastMonth,$PRE.calTim.epochLastMonth,calTim.yearIndex,$PRE.calTim.yearIndex,calTim.daysSinceEpoch,$PRE.calTim.daysSinceEpoch,calTim.weekDay,$PRE.calTim.weekDay,calTim.hour,$PRE.calTim.hour,calTim.day,$PRE.calTim.day,calTim.month,$PRE.calTim.month,calTim.year,$PRE.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.0002312/0.2857, allocations: 198.4 kB / 0.9596 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.148e-05/0.2858, allocations: 43.47 kB / 0.9597 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.771e-05/0.2859, allocations: 35.75 kB / 0.9597 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2859, allocations: 4 kB / 0.9597 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.2859, allocations: 3.984 kB / 0.9597 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.2859, allocations: 0 / 0.9597 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002306/0.2882, allocations: 0.748 MB / 0.9605 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.2882, allocations: 0 / 0.9605 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.978e-05/0.2883, allocations: 4 kB / 0.9605 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.2883, allocations: 3.984 kB / 0.9605 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.714e-05/0.2883, allocations: 23.97 kB / 0.9605 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2884, allocations: 0 / 0.9605 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2884, allocations: 0 / 0.9605 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.2902, allocations: 482.7 kB / 0.961 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002409/0.2904, allocations: 196.5 kB / 0.9611 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.414e-05/0.2905, allocations: 15.98 kB / 0.9612 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004999/0.291, allocations: 35.97 kB / 0.9612 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.295e-05/0.2911, allocations: 7.984 kB / 0.9612 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.383e-05/0.2911, allocations: 55.98 kB / 0.9613 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002897/0.2914, allocations: 295.1 kB / 0.9615 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2914, allocations: 0 / 0.9615 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003988/0.2918, allocations: 67.98 kB / 0.9616 GB, free: 12.79 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.hourSampleTrigger,calTim.daySampleTrigger,$whenCondition2,$whenCondition1,calTim.year,calTim.month,calTim.day,calTim.hour,calTim.weekDay,calTim.daysSinceEpoch,calTim.yearIndex,calTim.epochLastMonth,calTim.firstHourSampling,calTim.firstDaySampling) * Number of discrete states: 9 (calTim.firstDaySampling,calTim.daysSinceEpoch,calTim.weekDay,calTim.yearIndex,calTim.year,calTim.epochLastMonth,calTim.month,calTim.firstHourSampling,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.0001578/0.292, allocations: 123.6 kB / 0.9617 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001416/0.2934, allocations: 450.1 kB / 0.9621 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2934, allocations: 0 / 0.9621 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008162/0.2943, allocations: 120.3 kB / 0.9623 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.2947, allocations: 31.72 kB / 0.9623 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.2963, allocations: 0.5882 MB / 0.9629 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.2967, allocations: 0.7746 MB / 0.9636 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.924e-05/0.2967, allocations: 15.44 kB / 0.9636 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of SimCode: time 7.41e-07/0.2967, allocations: 0 / 0.9636 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of Templates: time 0.00638/0.3031, allocations: 3.67 MB / 0.9672 GB, free: 6.895 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.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