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.007711/0.007711, allocations: 100.4 kB / 15.87 MB, free: 5.867 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.00186/0.001861, allocations: 192.2 kB / 16.79 MB, free: 5.809 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.398/1.398, allocations: 222.9 MB / 240.5 MB, free: 4.59 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.47/2.47, allocations: 390.2 MB / 0.6649 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 68.14 kB / 0.8126 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6194/0.621, allocations: 140.3 MB / 0.9496 GB, free: 9.289 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.002569/0.6236, allocations: 1.799 MB / 0.9514 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.6249, allocations: 0.691 MB / 0.952 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.165e-05/0.6249, allocations: 4 kB / 0.952 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.625, allocations: 3.938 kB / 0.9521 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.6252, allocations: 31.77 kB / 0.9521 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006521/0.6259, allocations: 336.9 kB / 0.9524 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003927/0.6263, allocations: 0.5272 MB / 0.9529 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.6264, allocations: 30.78 kB / 0.9529 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003766/0.6268, allocations: 323.6 kB / 0.9533 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.627, allocations: 168.3 kB / 0.9534 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.6271, allocations: 14.72 kB / 0.9534 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.945e-05/0.6272, allocations: 15.06 kB / 0.9534 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.6273, allocations: 121.1 kB / 0.9536 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002049/0.6276, allocations: 201.7 kB / 0.9538 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.6279, allocations: 489.2 kB / 0.9542 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.6279, allocations: 1.406 kB / 0.9542 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.91e-07/0.6279, allocations: 0 / 0.9542 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.6279, allocations: 0 / 0.9542 GB, free: 5.961 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.001179/0.6291, allocations: 0.9112 MB / 0.9551 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.6292, allocations: 9.375 kB / 0.9551 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.6293, allocations: 56.31 kB / 0.9552 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.6296, allocations: 340.2 kB / 0.9555 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.483e-05/0.6297, allocations: 20.27 kB / 0.9555 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.633e-05/0.6298, allocations: 28.75 kB / 0.9555 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.6308, allocations: 240.8 kB / 0.9558 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.6309, allocations: 3.938 kB / 0.9558 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.416e-05/0.6309, allocations: 5.984 kB / 0.9558 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.6309, allocations: 2.688 kB / 0.9558 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008375/0.6318, allocations: 109.7 kB / 0.9559 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.6329, allocations: 0.6852 MB / 0.9566 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.6341, allocations: 183.3 kB / 0.9567 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007739/0.6349, allocations: 113 kB / 0.9568 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.6349, allocations: 6.203 kB / 0.9568 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.6359, allocations: 234.6 kB / 0.9571 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.023e-06/0.6359, allocations: 0 / 0.9571 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.00271/0.6386, allocations: 497.5 kB / 0.9575 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.6387, allocations: 60.19 kB / 0.9576 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004694/0.6392, allocations: 444.1 kB / 0.958 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.565e-05/0.6393, allocations: 42.16 kB / 0.9581 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.472e-05/0.6393, allocations: 101 kB / 0.9582 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.422e-05/0.6394, allocations: 42.25 kB / 0.9582 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002262/0.6396, allocations: 137.2 kB / 0.9583 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.522e-05/0.6397, allocations: 325.1 kB / 0.9586 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003056/0.64, allocations: 140.5 kB / 0.9588 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003221/0.6403, allocations: 197.6 kB / 0.959 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.6407, allocations: 303 kB / 0.9593 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.6407, allocations: 1.062 kB / 0.9593 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008738/0.6416, allocations: 0.5235 MB / 0.9598 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.64e-05/0.6417, allocations: 102.3 kB / 0.9599 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.6417, allocations: 5.312 kB / 0.9599 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.6417, allocations: 2.594 kB / 0.9599 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.6419, allocations: 22.11 kB / 0.9599 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.6419, allocations: 3.812 kB / 0.9599 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005732/0.6425, allocations: 62.67 kB / 0.96 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.699e-05/0.6426, allocations: 72.06 kB / 0.96 GB, free: 1.715 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.0002659/0.6429, allocations: 216.7 kB / 0.9602 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.862e-05/0.6429, allocations: 40.78 kB / 0.9603 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.888e-05/0.643, allocations: 44.78 kB / 0.9603 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.643, allocations: 2.375 kB / 0.9603 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.643, allocations: 0 / 0.9603 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.643, allocations: 4 kB / 0.9603 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/0.6452, allocations: 0.7836 MB / 0.9611 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.6452, allocations: 0.75 kB / 0.9611 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.897e-05/0.6453, allocations: 7.625 kB / 0.9611 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.6453, allocations: 4.875 kB / 0.9611 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.87e-05/0.6453, allocations: 28.38 kB / 0.9611 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.6453, allocations: 0 / 0.9611 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.6453, allocations: 1.5 kB / 0.9611 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.6471, allocations: 480 kB / 0.9616 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002551/0.6474, allocations: 243.9 kB / 0.9618 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.328e-05/0.6475, allocations: 23.45 kB / 0.9618 GB, free: 428 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004968/0.648, allocations: 27.19 kB / 0.9619 GB, free: 420 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.648, allocations: 8.828 kB / 0.9619 GB, free: 416 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.452e-05/0.6481, allocations: 60.25 kB / 0.9619 GB, free: 404 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003145/0.6484, allocations: 326.2 kB / 0.9622 GB, free: 200 kB / 0.7169 GB Notification: Performance of sort global known variables: time 3.31e-07/0.6484, allocations: 0 / 0.9622 GB, free: 200 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004515/0.6489, allocations: 68.8 kB / 0.9623 GB, free: 192 kB / 0.7169 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.0001573/0.6491, allocations: 126.1 kB / 0.9624 GB, free: 88 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001386/0.6505, allocations: 477.5 kB / 0.9629 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6505, allocations: 0 / 0.9629 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008323/0.6513, allocations: 122.1 kB / 0.963 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.6517, allocations: 34.34 kB / 0.963 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.6535, allocations: 0.7744 MB / 0.9638 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.6539, allocations: 0.7873 MB / 0.9646 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.459e-05/0.654, allocations: 14.69 kB / 0.9646 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of SimCode: time 6.82e-07/0.654, allocations: 0 / 0.9646 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of Templates: time 0.006804/0.6608, allocations: 4.083 MB / 0.9686 GB, free: 12.2 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