Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.IO.Files.Examples.WeeklySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weeSchFil.y.1.|weeSchFil.y.2.|weeSchFil.y.3.|weeSchFil.y.4.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule") translateModel(Buildings.Utilities.IO.Files.Examples.WeeklySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weeSchFil.y.1.|weeSchFil.y.2.|weeSchFil.y.3.|weeSchFil.y.4.",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001112/0.001112, allocations: 192.4 kB / 16.14 MB, free: 6.719 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.357/1.357, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.711/2.711, allocations: 461.9 MB / 0.7342 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 65.59 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4052, allocations: 157.4 MB / 1.052 GB, free: 8.793 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.WeeklySchedule): time 0.003762/0.409, allocations: 1.54 MB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001643/0.4107, allocations: 1.097 MB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.677e-05/0.4107, allocations: 0 / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.411, allocations: 11.94 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001975/0.4112, allocations: 39.83 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.4114, allocations: 59.42 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.4116, allocations: 147.5 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002221/0.4119, allocations: 61.09 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.412, allocations: 67.81 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.4122, allocations: 59.64 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.355e-05/0.4123, allocations: 8 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.346e-05/0.4124, allocations: 27.98 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.4125, allocations: 47.81 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.867e-05/0.4126, allocations: 63.59 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.4129, allocations: 199.6 kB / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4129, allocations: 0 / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.252e-06/0.413, allocations: 0 / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.413, allocations: 0 / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008822/0.4139, allocations: 496.2 kB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4139, allocations: 8.031 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.18e-05/0.414, allocations: 16.75 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003538/0.4144, allocations: 255.9 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001743/0.4145, allocations: 119.4 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.4146, allocations: 8.375 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003926/0.415, allocations: 157.7 kB / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.415, allocations: 0 / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.415, allocations: 4 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.965e-05/0.4151, allocations: 15.92 kB / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.817e-05/0.4151, allocations: 43.91 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.4164, allocations: 460.4 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.57e-05/0.4165, allocations: 30.58 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.722e-05/0.4165, allocations: 32.72 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.4165, allocations: 8.141 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.4166, allocations: 38.55 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.333e-06/0.4166, allocations: 0 / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0002821/0.4169, allocations: 101.5 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.4169, allocations: 55.41 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.4172, allocations: 219.8 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.4172, allocations: 33.69 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.4173, allocations: 123.9 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.4174, allocations: 19.64 kB / 1.058 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.177e-05/0.4174, allocations: 33.7 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001715/0.4176, allocations: 326.8 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.019e-05/0.4177, allocations: 31.91 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.4178, allocations: 102.2 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000184/0.418, allocations: 146.1 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.418, allocations: 3.938 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002408/0.4182, allocations: 149.2 kB / 1.058 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.4183, allocations: 8 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.4183, allocations: 8.359 kB / 1.058 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.4183, allocations: 4 kB / 1.058 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.4184, allocations: 23.98 kB / 1.058 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.4184, allocations: 11.88 kB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.884e-05/0.4185, allocations: 11.84 kB / 1.058 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.4185, allocations: 8 kB / 1.058 GB, free: 1.992 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001336/0.4186, allocations: 143.3 kB / 1.059 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.134e-05/0.4187, allocations: 15.81 kB / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.4189, allocations: 126.8 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.419, allocations: 0 / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.419, allocations: 3.938 kB / 1.059 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.419, allocations: 4 kB / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003089/0.4193, allocations: 225.6 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4193, allocations: 3.984 kB / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.661e-05/0.4194, allocations: 16 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.4194, allocations: 0 / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.4194, allocations: 0 / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4194, allocations: 0 / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4194, allocations: 7.938 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002188/0.4196, allocations: 195.3 kB / 1.059 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.387e-05/0.4197, allocations: 92.91 kB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.4197, allocations: 0 / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002589/0.42, allocations: 15.98 kB / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.932e-05/0.42, allocations: 11.92 kB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.42, allocations: 11.98 kB / 1.059 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001546/0.4202, allocations: 161.5 kB / 1.059 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4202, allocations: 0 / 1.059 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003048/0.4205, allocations: 28 kB / 1.059 GB, free: 0.8555 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002793/0.4208, allocations: 122.6 kB / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000167/0.421, allocations: 71.84 kB / 1.06 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.421, allocations: 0 / 1.06 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.277e-05/0.421, allocations: 35.84 kB / 1.06 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.4214, allocations: 15.98 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006747/0.422, allocations: 337.6 kB / 1.06 GB, free: 260 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/0.4226, allocations: 0.7317 MB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001288/0.4228, allocations: 53 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.4228, allocations: 19.38 kB / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.4228, allocations: 0 / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of Templates: time 0.005407/0.4282, allocations: 2.32 MB / 1.063 GB, free: 13.13 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_WeeklySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.WeeklySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches