Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.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.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.00988/0.00988, allocations: 171.2 kB / 16.26 MB, free: 6.613 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.552/1.552, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.02/3.02, allocations: 462.7 MB / 0.7364 GB, free: 256 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004753/0.0004754, allocations: 11.94 kB / 0.9028 GB, free: 36.76 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5072/0.5077, allocations: 159.6 MB / 1.059 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002167/0.5099, allocations: 1.131 MB / 1.06 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001255/0.5112, allocations: 0.5141 MB / 1.06 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.349e-05/0.5113, allocations: 0 / 1.06 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.798e-05/0.5114, allocations: 11.92 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.894e-05/0.5115, allocations: 7.922 kB / 1.06 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009666/0.5125, allocations: 198.9 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.5128, allocations: 135.7 kB / 1.061 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.846e-05/0.5129, allocations: 4 kB / 1.061 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.513, allocations: 51.84 kB / 1.061 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001262/0.5131, allocations: 47.81 kB / 1.061 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.5132, allocations: 8 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003697/0.5136, allocations: 159.8 kB / 1.061 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.505e-05/0.5137, allocations: 31.91 kB / 1.061 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.5138, allocations: 77.47 kB / 1.061 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004886/0.5143, allocations: 227.7 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.5143, allocations: 0 / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.085e-06/0.5143, allocations: 0 / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.418e-06/0.5143, allocations: 0 / 1.061 GB, free: 2.867 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007407/0.5151, allocations: 427 kB / 1.062 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.5151, allocations: 12.03 kB / 1.062 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.582e-05/0.5152, allocations: 12.84 kB / 1.062 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003163/0.5156, allocations: 209.2 kB / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.138e-05/0.5156, allocations: 12.38 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.5156, allocations: 12.36 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.5159, allocations: 79.95 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.5159, allocations: 192 / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.5159, allocations: 7.938 kB / 1.062 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.5159, allocations: 0 / 1.062 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001034/0.516, allocations: 47.91 kB / 1.062 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003477/0.5164, allocations: 226.5 kB / 1.062 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.5165, allocations: 77.23 kB / 1.062 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.785e-05/0.5166, allocations: 57.75 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.5167, allocations: 4 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.5169, allocations: 113.1 kB / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.5169, allocations: 0 / 1.062 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0004443/0.5174, allocations: 189.3 kB / 1.063 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.94e-05/0.5175, allocations: 89.09 kB / 1.063 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.5177, allocations: 151 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.931e-05/0.5177, allocations: 37.7 kB / 1.063 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.116e-05/0.5178, allocations: 100.5 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.335e-05/0.5179, allocations: 43.47 kB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.816e-05/0.518, allocations: 25.7 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002054/0.5182, allocations: 326.8 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.492e-05/0.5183, allocations: 39.98 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.5185, allocations: 199.3 kB / 1.064 GB, free: 112 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.5187, allocations: 93.64 kB / 1.064 GB, free: 12 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.5187, allocations: 0 / 1.064 GB, free: 12 kB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002901/0.519, allocations: 161.4 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.519, allocations: 12 kB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.773e-05/0.5191, allocations: 4 kB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.5191, allocations: 4 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-05/0.5192, allocations: 11.88 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.5192, allocations: 4 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003242/0.5195, allocations: 90.42 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.5196, allocations: 11.98 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (occSchWee.tNext,$PRE.occSchWee.tNext,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,occSchDay.tNext,$PRE.occSchDay.tNext,occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001396/0.5197, allocations: 133.8 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.5197, allocations: 11.84 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.554e-05/0.5198, allocations: 16.7 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.5198, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.5198, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.5198, allocations: 96 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001988/0.52, allocations: 201.4 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.52, allocations: 7.922 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.851e-05/0.5201, allocations: 7.938 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.5201, allocations: 4 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.5201, allocations: 4 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5201, allocations: 0 / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.5201, allocations: 4 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002527/0.5204, allocations: 169.9 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.5205, allocations: 96.88 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.309e-05/0.5205, allocations: 0 / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.833e-05/0.5206, allocations: 8 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.252e-05/0.5206, allocations: 11.98 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.5206, allocations: 4 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.288e-05/0.5207, allocations: 116.7 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.31e-07/0.5207, allocations: 0 / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003732/0.5211, allocations: 72 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,occSchWee.occupied,occSchWee.tOcc,occSchWee.tNonOcc,occSchWee.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext) * Number of discrete states: 2 (occSchDay.tNext,occSchWee.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0003501/0.5215, allocations: 161.2 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002965/0.5218, allocations: 171.3 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5218, allocations: 4 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.336e-05/0.5219, allocations: 39.98 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.5221, allocations: 21.06 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005476/0.5226, allocations: 254.5 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.523, allocations: 0.7043 MB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.499e-05/0.523, allocations: 4.672 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.933e-05/0.5231, allocations: 19.44 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.5231, allocations: 0 / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of Templates: time 0.007025/0.5301, allocations: 2.382 MB / 1.068 GB, free: 10.96 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches