Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 80.81 kB / 19.94 MB, free: 4.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001768/0.001768, allocations: 173 kB / 23.36 MB, free: 1.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.03/1.03, allocations: 177.1 MB / 203.8 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.501/2.501, allocations: 438.8 MB / 0.6826 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.247e-05/1.358e-05, allocations: 6.312 kB / 0.8386 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.00199/0.002004, allocations: 1.766 MB / 0.8404 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.003034, allocations: 0.6283 MB / 0.841 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.199e-05/0.003086, allocations: 0 / 0.841 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 8.799e-05/0.003174, allocations: 11.86 kB / 0.841 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001072/0.003281, allocations: 35.78 kB / 0.841 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.003834, allocations: 383.1 kB / 0.8414 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0003948/0.004229, allocations: 0.6009 MB / 0.842 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 7.123e-05/0.0043, allocations: 17.95 kB / 0.842 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.004653, allocations: 427.5 kB / 0.8424 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.004842, allocations: 147.5 kB / 0.8425 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 5.094e-05/0.004893, allocations: 40 kB / 0.8426 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.122e-05/0.004944, allocations: 40 kB / 0.8426 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 9.206e-05/0.005036, allocations: 127.6 kB / 0.8427 GB, free: 9.969 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.005143, allocations: 151.7 kB / 0.8429 GB, free: 9.82 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002885/0.005431, allocations: 434.7 kB / 0.8433 GB, free: 9.395 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.005433, allocations: 4 kB / 0.8433 GB, free: 9.391 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.42e-07/0.005434, allocations: 4 kB / 0.8433 GB, free: 9.387 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.005437, allocations: 0 / 0.8433 GB, free: 9.387 MB / 0.8073 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.0007341/0.006171, allocations: 0.7778 MB / 0.8441 GB, free: 8.543 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.006202, allocations: 8.625 kB / 0.8441 GB, free: 8.535 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.633e-05/0.006278, allocations: 56.88 kB / 0.8441 GB, free: 8.48 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.006509, allocations: 243.9 kB / 0.8444 GB, free: 8.215 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.377e-05/0.006543, allocations: 24.36 kB / 0.8444 GB, free: 8.191 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.873e-05/0.006592, allocations: 32.36 kB / 0.8444 GB, free: 8.16 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.006887, allocations: 194.7 kB / 0.8446 GB, free: 7.961 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.006894, allocations: 192 / 0.8446 GB, free: 7.961 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.006912, allocations: 8.375 kB / 0.8446 GB, free: 7.953 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.006917, allocations: 384 / 0.8446 GB, free: 7.953 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.586e-05/0.006992, allocations: 49.97 kB / 0.8447 GB, free: 7.906 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005107/0.007503, allocations: 324 kB / 0.845 GB, free: 7.574 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.007649, allocations: 94.53 kB / 0.8451 GB, free: 7.473 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.901e-05/0.007718, allocations: 44.84 kB / 0.8451 GB, free: 7.426 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.007732, allocations: 4 kB / 0.8451 GB, free: 7.422 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.007883, allocations: 161.6 kB / 0.8453 GB, free: 7.254 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.163e-06/0.007884, allocations: 0 / 0.8453 GB, free: 7.254 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0002994/0.008184, allocations: 205.5 kB / 0.8455 GB, free: 7.047 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.008217, allocations: 67.28 kB / 0.8455 GB, free: 6.969 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.008407, allocations: 343.4 kB / 0.8458 GB, free: 6.621 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.008443, allocations: 41.7 kB / 0.8459 GB, free: 6.574 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.849e-05/0.008491, allocations: 101.4 kB / 0.846 GB, free: 6.473 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.755e-05/0.008519, allocations: 39.7 kB / 0.846 GB, free: 6.434 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.008626, allocations: 121.4 kB / 0.8461 GB, free: 6.309 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.161e-05/0.008698, allocations: 330.8 kB / 0.8465 GB, free: 5.977 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.008842, allocations: 159.3 kB / 0.8466 GB, free: 5.809 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.008991, allocations: 213.3 kB / 0.8468 GB, free: 5.566 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.009171, allocations: 262.9 kB / 0.8471 GB, free: 5.277 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.009173, allocations: 0 / 0.8471 GB, free: 5.277 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003461/0.009519, allocations: 452.2 kB / 0.8475 GB, free: 4.805 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 5.222e-05/0.009571, allocations: 87.38 kB / 0.8476 GB, free: 4.707 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.009576, allocations: 3.938 kB / 0.8476 GB, free: 4.703 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.009588, allocations: 4 kB / 0.8476 GB, free: 4.699 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.406e-05/0.009682, allocations: 39.91 kB / 0.8476 GB, free: 4.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.009687, allocations: 4 kB / 0.8476 GB, free: 4.656 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.00984, allocations: 43.86 kB / 0.8477 GB, free: 4.613 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.791e-05/0.009888, allocations: 47.98 kB / 0.8477 GB, free: 4.566 MB / 0.8073 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.0001151/0.01, allocations: 155.2 kB / 0.8479 GB, free: 4.402 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.621e-05/0.01004, allocations: 27.91 kB / 0.8479 GB, free: 4.375 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.01008, allocations: 39.72 kB / 0.8479 GB, free: 4.34 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.01008, allocations: 0 / 0.8479 GB, free: 4.34 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.01008, allocations: 0 / 0.8479 GB, free: 4.34 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.01008, allocations: 4 kB / 0.8479 GB, free: 4.336 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003826/0.01047, allocations: 398.1 kB / 0.8483 GB, free: 3.922 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01047, allocations: 0 / 0.8483 GB, free: 3.922 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.725e-05/0.01049, allocations: 8 kB / 0.8483 GB, free: 3.914 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.01049, allocations: 0 / 0.8483 GB, free: 3.914 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.0105, allocations: 15.97 kB / 0.8483 GB, free: 3.898 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.0105, allocations: 0 / 0.8483 GB, free: 3.898 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.0105, allocations: 0 / 0.8483 GB, free: 3.898 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001948/0.0107, allocations: 243.8 kB / 0.8486 GB, free: 3.645 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.01084, allocations: 139.4 kB / 0.8487 GB, free: 3.504 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.804e-05/0.01089, allocations: 20 kB / 0.8487 GB, free: 3.484 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.01105, allocations: 31.97 kB / 0.8487 GB, free: 3.453 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.01107, allocations: 7.984 kB / 0.8488 GB, free: 3.445 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-05/0.01111, allocations: 51.97 kB / 0.8488 GB, free: 3.395 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 9.574e-05/0.01121, allocations: 144.7 kB / 0.8489 GB, free: 3.25 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.01121, allocations: 0 / 0.8489 GB, free: 3.25 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001924/0.0114, allocations: 64 kB / 0.849 GB, free: 3.188 MB / 0.8073 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 9.888e-05/0.0115, allocations: 112.3 kB / 0.8491 GB, free: 3.07 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000375/0.01187, allocations: 410.8 kB / 0.8495 GB, free: 2.629 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.01188, allocations: 4 kB / 0.8495 GB, free: 2.625 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.303e-05/0.01196, allocations: 65.14 kB / 0.8496 GB, free: 2.559 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.01216, allocations: 60.67 kB / 0.8496 GB, free: 2.508 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004892/0.01264, allocations: 488 kB / 0.8501 GB, free: 2 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.504e-05/0.01269, allocations: 87.81 kB / 0.8502 GB, free: 1.895 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.549e-05/0.01273, allocations: 13.48 kB / 0.8502 GB, free: 1.883 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.01289, allocations: 123.3 kB / 0.8503 GB, free: 1.762 MB / 0.8073 GB Notification: Performance of SimCode: time 4.71e-07/0.01289, allocations: 0 / 0.8503 GB, free: 1.762 MB / 0.8073 GB Notification: Performance of Templates: time 0.006374/0.01926, allocations: 5.871 MB / 0.856 GB, free: 11.86 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.562311300076544]