Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_10_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_10_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.001447/0.001447, allocations: 114.5 kB / 16.37 MB, free: 6.016 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.001624/0.001624, allocations: 194.5 kB / 17.31 MB, free: 5.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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.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.549/2.549, allocations: 437.1 MB / 0.7112 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.28 kB / 0.8707 GB, free: 1.473 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4017, allocations: 151.6 MB / 1.019 GB, free: 9.891 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003222/0.405, allocations: 1.417 MB / 1.02 GB, free: 8.457 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.4061, allocations: 499.8 kB / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.102e-05/0.4062, allocations: 0 / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.471e-05/0.4063, allocations: 11.86 kB / 1.021 GB, free: 7.957 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.871e-05/0.4064, allocations: 19.8 kB / 1.021 GB, free: 7.938 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00081/0.4072, allocations: 238.2 kB / 1.021 GB, free: 7.707 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.4074, allocations: 143.8 kB / 1.021 GB, free: 7.566 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.225e-05/0.4075, allocations: 4 kB / 1.021 GB, free: 7.562 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.989e-05/0.4075, allocations: 55.89 kB / 1.021 GB, free: 7.508 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.046e-05/0.4076, allocations: 43.83 kB / 1.021 GB, free: 7.465 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.4077, allocations: 8 kB / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002633/0.4079, allocations: 163.8 kB / 1.021 GB, free: 7.297 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.148e-05/0.408, allocations: 43.89 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.492e-05/0.4081, allocations: 59.72 kB / 1.021 GB, free: 7.195 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.4085, allocations: 231.4 kB / 1.022 GB, free: 6.969 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.4085, allocations: 4 kB / 1.022 GB, free: 6.965 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.397e-06/0.4085, allocations: 0 / 1.022 GB, free: 6.965 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.827e-06/0.4085, allocations: 0 / 1.022 GB, free: 6.965 MB / 0.795 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.0006618/0.4092, allocations: 446.9 kB / 1.022 GB, free: 6.477 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4092, allocations: 8.625 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.076e-05/0.4093, allocations: 16.84 kB / 1.022 GB, free: 6.453 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.4096, allocations: 200.2 kB / 1.022 GB, free: 6.219 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.4096, allocations: 8.375 kB / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.519e-05/0.4097, allocations: 12.38 kB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001729/0.4098, allocations: 91.81 kB / 1.022 GB, free: 6.098 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.4099, allocations: 192 / 1.022 GB, free: 6.098 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.4099, allocations: 3.938 kB / 1.022 GB, free: 6.094 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.4099, allocations: 0 / 1.022 GB, free: 6.094 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.558e-05/0.41, allocations: 39.97 kB / 1.022 GB, free: 6.055 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002744/0.4103, allocations: 242.4 kB / 1.023 GB, free: 5.766 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.4104, allocations: 77.14 kB / 1.023 GB, free: 5.672 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.53e-05/0.4105, allocations: 57.84 kB / 1.023 GB, free: 5.609 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.4105, allocations: 4 kB / 1.023 GB, free: 5.605 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002275/0.4107, allocations: 109 kB / 1.023 GB, free: 5.48 MB / 0.795 GB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.4107, allocations: 0 / 1.023 GB, free: 5.48 MB / 0.795 GB Notification: Performance of matching and sorting (n=14): time 0.0003559/0.4111, allocations: 185.4 kB / 1.023 GB, free: 5.293 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.828e-05/0.4112, allocations: 93.09 kB / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.4113, allocations: 147.4 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.4114, allocations: 33.7 kB / 1.023 GB, free: 4.992 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.721e-05/0.4115, allocations: 108.5 kB / 1.023 GB, free: 4.879 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.103e-05/0.4115, allocations: 35.55 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-05/0.4116, allocations: 49.7 kB / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4117, allocations: 330.8 kB / 1.024 GB, free: 4.457 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.658e-05/0.4118, allocations: 35.98 kB / 1.024 GB, free: 4.422 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.412, allocations: 203.2 kB / 1.024 GB, free: 4.172 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.4121, allocations: 97.58 kB / 1.024 GB, free: 4.07 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4122, allocations: 3.938 kB / 1.024 GB, free: 4.066 MB / 0.795 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002242/0.4124, allocations: 173.8 kB / 1.024 GB, free: 3.891 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.4124, allocations: 12 kB / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.169e-05/0.4124, allocations: 0 / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.4125, allocations: 4 kB / 1.024 GB, free: 3.875 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.94e-05/0.4125, allocations: 8 kB / 1.024 GB, free: 3.867 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.4126, allocations: 7.984 kB / 1.024 GB, free: 3.859 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002596/0.4128, allocations: 69.67 kB / 1.024 GB, free: 3.793 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.4128, allocations: 8 kB / 1.024 GB, free: 3.785 MB / 0.795 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.0001287/0.413, allocations: 137.7 kB / 1.025 GB, free: 3.641 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.215e-05/0.413, allocations: 19.75 kB / 1.025 GB, free: 3.621 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.413, allocations: 8.719 kB / 1.025 GB, free: 3.613 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.413, allocations: 4 kB / 1.025 GB, free: 3.609 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.4131, allocations: 4 kB / 1.025 GB, free: 3.605 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4131, allocations: 0 / 1.025 GB, free: 3.605 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.4132, allocations: 189.6 kB / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4133, allocations: 7.938 kB / 1.025 GB, free: 3.363 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.099e-05/0.4133, allocations: 4 kB / 1.025 GB, free: 3.359 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4133, allocations: 0 / 1.025 GB, free: 3.359 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.4133, allocations: 8 kB / 1.025 GB, free: 3.352 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.4133, allocations: 0 / 1.025 GB, free: 3.352 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4133, allocations: 4.062 kB / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.4136, allocations: 200.6 kB / 1.025 GB, free: 3.133 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.325e-05/0.4136, allocations: 92.98 kB / 1.025 GB, free: 3.023 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.4137, allocations: 3.984 kB / 1.025 GB, free: 3.02 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.962e-05/0.4137, allocations: 4 kB / 1.025 GB, free: 3.016 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.4138, allocations: 7.984 kB / 1.025 GB, free: 3.008 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-06/0.4138, allocations: 4 kB / 1.025 GB, free: 3.004 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.135e-05/0.4139, allocations: 113.1 kB / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4139, allocations: 0 / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003144/0.4142, allocations: 75.98 kB / 1.025 GB, free: 2.82 MB / 0.795 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.0002529/0.4145, allocations: 163.2 kB / 1.025 GB, free: 2.652 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002732/0.4147, allocations: 163.3 kB / 1.026 GB, free: 2.48 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4147, allocations: 0 / 1.026 GB, free: 2.48 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.694e-05/0.4148, allocations: 43.92 kB / 1.026 GB, free: 2.438 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001735/0.415, allocations: 11.94 kB / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000441/0.4154, allocations: 231.5 kB / 1.026 GB, free: 2.168 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.4157, allocations: 0.7002 MB / 1.027 GB, free: 1.441 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.164e-05/0.4158, allocations: 8.656 kB / 1.027 GB, free: 1.43 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.447e-05/0.4158, allocations: 19.44 kB / 1.027 GB, free: 1.41 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.4158, allocations: 0 / 1.027 GB, free: 1.41 MB / 0.795 GB Notification: Performance of Templates: time 0.005655/0.4215, allocations: 2.52 MB / 1.029 GB, free: 14.92 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches