Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 107.2 kB / 15.99 MB, free: 6.348 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.001619/0.00162, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.343/1.343, allocations: 222.9 MB / 240.6 MB, free: 13.71 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.23/2.23, allocations: 390.2 MB / 0.665 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 65.09 kB / 0.8127 GB, free: 32.52 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2627, allocations: 140.4 MB / 0.9498 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths): time 0.003178/0.2659, allocations: 1.795 MB / 0.9515 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001395/0.2673, allocations: 0.6239 MB / 0.9522 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.2674, allocations: 0 / 0.9522 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.2675, allocations: 3.938 kB / 0.9522 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.2677, allocations: 27.84 kB / 0.9522 GB, free: 6.738 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009705/0.2687, allocations: 339.5 kB / 0.9525 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007689/0.2695, allocations: 0.636 MB / 0.9531 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.2696, allocations: 37.09 kB / 0.9532 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005914/0.2702, allocations: 378.9 kB / 0.9535 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003895/0.2706, allocations: 175.3 kB / 0.9537 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001376/0.2707, allocations: 47.94 kB / 0.9537 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.2709, allocations: 40 kB / 0.9538 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.271, allocations: 131.4 kB / 0.9539 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.2713, allocations: 230.7 kB / 0.9541 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005046/0.2718, allocations: 487.2 kB / 0.9546 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2718, allocations: 0 / 0.9546 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.244e-06/0.2718, allocations: 4 kB / 0.9546 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.05e-05/0.2718, allocations: 0 / 0.9546 GB, free: 4.266 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.001561/0.2734, allocations: 0.9093 MB / 0.9555 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.2735, allocations: 8.031 kB / 0.9555 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.2736, allocations: 64.36 kB / 0.9556 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004131/0.274, allocations: 338.1 kB / 0.9559 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.311e-05/0.2741, allocations: 28.5 kB / 0.9559 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-05/0.2742, allocations: 24.38 kB / 0.9559 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.2753, allocations: 238 kB / 0.9562 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2753, allocations: 3.938 kB / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.604e-05/0.2754, allocations: 8 kB / 0.9562 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.2754, allocations: 0 / 0.9562 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008317/0.2762, allocations: 119.9 kB / 0.9563 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.2776, allocations: 0.672 MB / 0.9569 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.2787, allocations: 178.5 kB / 0.9571 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000824/0.2796, allocations: 128.6 kB / 0.9572 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.2796, allocations: 0 / 0.9572 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.2806, allocations: 230.1 kB / 0.9574 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 1.913e-06/0.2807, allocations: 0 / 0.9574 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002826/0.2835, allocations: 496.9 kB / 0.9579 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.2836, allocations: 59.41 kB / 0.958 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005296/0.2841, allocations: 441.8 kB / 0.9584 GB, free: 144 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.637e-05/0.2842, allocations: 45.62 kB / 0.9584 GB, free: 92 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2843, allocations: 109.3 kB / 0.9585 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.636e-05/0.2844, allocations: 39.53 kB / 0.9586 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.2846, allocations: 137.3 kB / 0.9587 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.2848, allocations: 326.8 kB / 0.959 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000311/0.2851, allocations: 139.9 kB / 0.9592 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003297/0.2854, allocations: 201.4 kB / 0.9593 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004191/0.2858, allocations: 303.4 kB / 0.9596 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.2859, allocations: 4 kB / 0.9596 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009304/0.2868, allocations: 0.526 MB / 0.9602 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.8e-05/0.2869, allocations: 95.38 kB / 0.9602 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.2869, allocations: 0 / 0.9602 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.2869, allocations: 4 kB / 0.9603 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.2871, allocations: 23.92 kB / 0.9603 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.2871, allocations: 7.922 kB / 0.9603 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005369/0.2877, allocations: 67.97 kB / 0.9603 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.316e-05/0.2878, allocations: 63.92 kB / 0.9604 GB, free: 13.98 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.0002502/0.2881, allocations: 216.3 kB / 0.9606 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-05/0.2881, allocations: 39.53 kB / 0.9607 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.28e-05/0.2882, allocations: 43.78 kB / 0.9607 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.2882, allocations: 4 kB / 0.9607 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.2882, allocations: 4 kB / 0.9607 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2882, allocations: 0 / 0.9607 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.2905, allocations: 0.7831 MB / 0.9615 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2905, allocations: 4 kB / 0.9615 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.2906, allocations: 8 kB / 0.9615 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.2906, allocations: 0 / 0.9615 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.463e-05/0.2906, allocations: 27.91 kB / 0.9615 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.2906, allocations: 0 / 0.9615 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2906, allocations: 0 / 0.9615 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.2924, allocations: 485.3 kB / 0.962 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/0.2927, allocations: 248.3 kB / 0.9622 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.376e-05/0.2928, allocations: 19.94 kB / 0.9622 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004848/0.2933, allocations: 31.97 kB / 0.9623 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.594e-05/0.2933, allocations: 7.984 kB / 0.9623 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.941e-05/0.2934, allocations: 63.97 kB / 0.9623 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003068/0.2937, allocations: 315.1 kB / 0.9626 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.21e-07/0.2937, allocations: 0 / 0.9626 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003797/0.2941, allocations: 67.98 kB / 0.9627 GB, free: 11.54 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.0001882/0.2943, allocations: 131.2 kB / 0.9628 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001345/0.2957, allocations: 478.4 kB / 0.9633 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2957, allocations: 0 / 0.9633 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0007768/0.2965, allocations: 127.8 kB / 0.9634 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.2969, allocations: 39.17 kB / 0.9634 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.2986, allocations: 0.7643 MB / 0.9642 GB, free: 9.957 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.299, allocations: 0.7977 MB / 0.965 GB, free: 9.133 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.648e-05/0.299, allocations: 19.42 kB / 0.965 GB, free: 9.113 MB / 0.7481 GB Notification: Performance of SimCode: time 2.61e-07/0.299, allocations: 0 / 0.965 GB, free: 9.113 MB / 0.7481 GB Notification: Performance of Templates: time 0.006662/0.3057, allocations: 4.08 MB / 0.969 GB, free: 4.977 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches