Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.001377/0.001377, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.821/2.821, allocations: 437.7 MB / 0.7117 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004055/0.0004055, allocations: 8 kB / 0.8722 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8814/0.8818, allocations: 153.8 MB / 1.022 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.002139/0.884, allocations: 1.421 MB / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.8854, allocations: 0.6145 MB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7e-05/0.8854, allocations: 4 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.8856, allocations: 7.922 kB / 1.024 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.8857, allocations: 27.86 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007588/0.8865, allocations: 267.4 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005331/0.887, allocations: 471.3 kB / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.8872, allocations: 25.09 kB / 1.025 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006013/0.8878, allocations: 331.3 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.8881, allocations: 187.6 kB / 1.026 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.31e-05/0.8882, allocations: 16 kB / 1.026 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.607e-05/0.8883, allocations: 12 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.8885, allocations: 123.7 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.8886, allocations: 101.5 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005487/0.8892, allocations: 476.8 kB / 1.026 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.301e-05/0.8892, allocations: 8 kB / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.016e-06/0.8892, allocations: 0 / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.8893, allocations: 0 / 1.026 GB, free: 11.96 MB / 0.7794 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.00145/0.8907, allocations: 0.7767 MB / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.645e-05/0.8908, allocations: 12.52 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.8909, allocations: 59.47 kB / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005412/0.8915, allocations: 325.2 kB / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.326e-05/0.8916, allocations: 23.94 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.294e-05/0.8917, allocations: 31.98 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.8927, allocations: 247.2 kB / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.8927, allocations: 0 / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.398e-05/0.8928, allocations: 8 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.8928, allocations: 0 / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007173/0.8935, allocations: 131.9 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.8949, allocations: 0.6684 MB / 1.029 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009622/0.8959, allocations: 202.4 kB / 1.029 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006831/0.8966, allocations: 124.8 kB / 1.029 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.8967, allocations: 7.984 kB / 1.029 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009053/0.8976, allocations: 243.1 kB / 1.029 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.674e-06/0.8976, allocations: 0 / 1.029 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002372/0.9, allocations: 0.5182 MB / 1.03 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.9, allocations: 67.33 kB / 1.03 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005506/0.9006, allocations: 445.8 kB / 1.03 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.9007, allocations: 41.7 kB / 1.03 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.9008, allocations: 101.3 kB / 1.03 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.9008, allocations: 31.61 kB / 1.03 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.9009, allocations: 11.98 kB / 1.03 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001655/0.9011, allocations: 322.8 kB / 1.031 GB, free: 7.363 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.9014, allocations: 135.9 kB / 1.031 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/0.9018, allocations: 201.9 kB / 1.031 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003518/0.9021, allocations: 209 kB / 1.031 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.9021, allocations: 4 kB / 1.031 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009158/0.903, allocations: 0.5278 MB / 1.032 GB, free: 6.246 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001178/0.9032, allocations: 103.3 kB / 1.032 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.9032, allocations: 0 / 1.032 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.9032, allocations: 4 kB / 1.032 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.9034, allocations: 23.91 kB / 1.032 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.9034, allocations: 4 kB / 1.032 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004787/0.9039, allocations: 75.92 kB / 1.032 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.124e-05/0.904, allocations: 59.98 kB / 1.032 GB, free: 5.969 MB / 0.7794 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 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002806/0.9043, allocations: 216.3 kB / 1.032 GB, free: 5.75 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-05/0.9044, allocations: 35.53 kB / 1.032 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.921e-05/0.9044, allocations: 47.75 kB / 1.032 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.9045, allocations: 4 kB / 1.032 GB, free: 5.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.9045, allocations: 4 kB / 1.032 GB, free: 5.656 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.9045, allocations: 3.984 kB / 1.032 GB, free: 5.652 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.9065, allocations: 0.8129 MB / 1.033 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.9066, allocations: 7.938 kB / 1.033 GB, free: 4.777 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.236e-05/0.9066, allocations: 4 kB / 1.033 GB, free: 4.773 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.9066, allocations: 0 / 1.033 GB, free: 4.773 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.951e-05/0.9067, allocations: 27.97 kB / 1.033 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.9067, allocations: 0 / 1.033 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.9067, allocations: 0 / 1.033 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.9083, allocations: 494.8 kB / 1.034 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003016/0.9086, allocations: 252.3 kB / 1.034 GB, free: 3.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.073e-05/0.9087, allocations: 16 kB / 1.034 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004225/0.9091, allocations: 39.95 kB / 1.034 GB, free: 3.926 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.254e-05/0.9092, allocations: 11.98 kB / 1.034 GB, free: 3.914 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.437e-05/0.9092, allocations: 51.98 kB / 1.034 GB, free: 3.863 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003579/0.9096, allocations: 323 kB / 1.034 GB, free: 3.551 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9096, allocations: 0 / 1.034 GB, free: 3.551 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003685/0.91, allocations: 64 kB / 1.034 GB, free: 3.488 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002423/0.9102, allocations: 131.2 kB / 1.034 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001285/0.9115, allocations: 490.8 kB / 1.035 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.9116, allocations: 0 / 1.035 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007082/0.9123, allocations: 133.8 kB / 1.035 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004455/0.9127, allocations: 41.58 kB / 1.035 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.9144, allocations: 0.7028 MB / 1.036 GB, free: 1.945 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006484/0.9151, allocations: 0.7867 MB / 1.036 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.882e-05/0.9152, allocations: 13.42 kB / 1.036 GB, free: 1.117 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.103e-05/0.9152, allocations: 19.44 kB / 1.036 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of SimCode: time 8.02e-07/0.9152, allocations: 0 / 1.036 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of Templates: time 0.0104/0.9256, allocations: 5.326 MB / 1.042 GB, free: 11.68 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches