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.001066/0.001066, allocations: 98.95 kB / 16.35 MB, free: 6.289 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.001096/0.001096, allocations: 196.2 kB / 17.3 MB, free: 5.863 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.364/1.364, 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.536/2.536, allocations: 437.1 MB / 0.7112 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 64.23 kB / 0.8707 GB, free: 1.547 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.404/0.4056, allocations: 151.6 MB / 1.019 GB, free: 9.969 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002934/0.4085, allocations: 1.431 MB / 1.02 GB, free: 8.523 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009446/0.4095, allocations: 495.8 kB / 1.021 GB, free: 8.039 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.32e-05/0.4096, allocations: 0 / 1.021 GB, free: 8.039 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 8.305e-05/0.4097, allocations: 7.938 kB / 1.021 GB, free: 8.031 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.852e-05/0.4098, allocations: 15.84 kB / 1.021 GB, free: 8.016 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007764/0.4105, allocations: 237.1 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000238/0.4108, allocations: 151.6 kB / 1.021 GB, free: 7.641 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.136e-05/0.4108, allocations: 4 kB / 1.021 GB, free: 7.637 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.25e-05/0.4109, allocations: 59.89 kB / 1.021 GB, free: 7.578 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.416e-05/0.411, allocations: 43.83 kB / 1.021 GB, free: 7.535 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.411, allocations: 8 kB / 1.021 GB, free: 7.527 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002655/0.4113, allocations: 163.8 kB / 1.021 GB, free: 7.367 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.113e-05/0.4114, allocations: 43.89 kB / 1.021 GB, free: 7.324 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.297e-05/0.4115, allocations: 51.78 kB / 1.021 GB, free: 7.273 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003192/0.4118, allocations: 239.3 kB / 1.022 GB, free: 7.039 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4118, allocations: 0 / 1.022 GB, free: 7.039 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.372e-06/0.4118, allocations: 0 / 1.022 GB, free: 7.039 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.742e-06/0.4119, allocations: 0 / 1.022 GB, free: 7.039 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.000601/0.4125, allocations: 450.9 kB / 1.022 GB, free: 6.547 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.4125, allocations: 8.625 kB / 1.022 GB, free: 6.539 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.993e-05/0.4126, allocations: 16.84 kB / 1.022 GB, free: 6.523 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.4128, allocations: 204.2 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.4128, allocations: 8.375 kB / 1.022 GB, free: 6.277 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.4129, allocations: 8.375 kB / 1.022 GB, free: 6.27 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001551/0.413, allocations: 87.88 kB / 1.022 GB, free: 6.172 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.413, allocations: 192 / 1.022 GB, free: 6.172 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.4131, allocations: 3.938 kB / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.4131, allocations: 0 / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.337e-05/0.4131, allocations: 35.98 kB / 1.022 GB, free: 6.133 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002388/0.4134, allocations: 242.4 kB / 1.023 GB, free: 5.844 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001158/0.4135, allocations: 77.19 kB / 1.023 GB, free: 5.75 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.535e-05/0.4136, allocations: 57.8 kB / 1.023 GB, free: 5.688 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.4136, allocations: 0 / 1.023 GB, free: 5.688 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.4138, allocations: 117 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.4138, allocations: 0 / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of matching and sorting (n=14): time 0.0003352/0.4142, allocations: 189.4 kB / 1.023 GB, free: 5.363 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.4142, allocations: 85.11 kB / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.4144, allocations: 151.4 kB / 1.023 GB, free: 5.105 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.4144, allocations: 33.7 kB / 1.023 GB, free: 5.066 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.931e-05/0.4145, allocations: 108.5 kB / 1.023 GB, free: 4.953 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.882e-05/0.4145, allocations: 35.55 kB / 1.023 GB, free: 4.918 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.661e-05/0.4146, allocations: 49.7 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4147, allocations: 326.8 kB / 1.024 GB, free: 4.535 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.457e-05/0.4148, allocations: 39.98 kB / 1.024 GB, free: 4.496 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.415, allocations: 203.3 kB / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.4151, allocations: 93.64 kB / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4152, allocations: 0 / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002153/0.4154, allocations: 169.8 kB / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.4154, allocations: 15.94 kB / 1.024 GB, free: 3.957 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/0.4154, allocations: 3.938 kB / 1.024 GB, free: 3.953 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.4155, allocations: 7.984 kB / 1.024 GB, free: 3.945 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.45e-05/0.4155, allocations: 4 kB / 1.024 GB, free: 3.941 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.4155, allocations: 4 kB / 1.024 GB, free: 3.938 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.4158, allocations: 75.83 kB / 1.024 GB, free: 3.863 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.4158, allocations: 4.156 kB / 1.024 GB, free: 3.859 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.0001227/0.4159, allocations: 144.1 kB / 1.025 GB, free: 3.711 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.416, allocations: 19.73 kB / 1.025 GB, free: 3.691 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.053e-05/0.416, allocations: 12.72 kB / 1.025 GB, free: 3.68 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.416, allocations: 0 / 1.025 GB, free: 3.68 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.416, allocations: 0 / 1.025 GB, free: 3.68 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.416, allocations: 4 kB / 1.025 GB, free: 3.676 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.4162, allocations: 193.6 kB / 1.025 GB, free: 3.438 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.4162, allocations: 3.938 kB / 1.025 GB, free: 3.434 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.944e-05/0.4162, allocations: 4 kB / 1.025 GB, free: 3.43 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.4162, allocations: 0 / 1.025 GB, free: 3.43 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.4163, allocations: 8 kB / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4163, allocations: 0 / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4163, allocations: 3.984 kB / 1.025 GB, free: 3.418 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.4165, allocations: 193.7 kB / 1.025 GB, free: 3.207 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.988e-05/0.4166, allocations: 92.89 kB / 1.025 GB, free: 3.098 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.4166, allocations: 0 / 1.025 GB, free: 3.098 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.994e-05/0.4166, allocations: 4 kB / 1.025 GB, free: 3.094 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.695e-05/0.4167, allocations: 7.984 kB / 1.025 GB, free: 3.086 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.4167, allocations: 4 kB / 1.025 GB, free: 3.082 MB / 0.795 GB Notification: Performance of sorting global known variables: time 8.011e-05/0.4168, allocations: 112.8 kB / 1.025 GB, free: 2.973 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4168, allocations: 0 / 1.025 GB, free: 2.973 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002852/0.4171, allocations: 72 kB / 1.025 GB, free: 2.902 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.0002404/0.4173, allocations: 169 kB / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002606/0.4176, allocations: 163.3 kB / 1.026 GB, free: 2.559 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4176, allocations: 0 / 1.026 GB, free: 2.559 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.028e-05/0.4177, allocations: 47.92 kB / 1.026 GB, free: 2.512 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.4179, allocations: 11.94 kB / 1.026 GB, free: 2.5 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004069/0.4183, allocations: 231.5 kB / 1.026 GB, free: 2.242 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.4186, allocations: 0.7002 MB / 1.027 GB, free: 1.516 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.2e-05/0.4186, allocations: 12.84 kB / 1.027 GB, free: 1.5 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.615e-05/0.4187, allocations: 11.44 kB / 1.027 GB, free: 1.488 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.4187, allocations: 0 / 1.027 GB, free: 1.488 MB / 0.795 GB Notification: Performance of Templates: time 0.005508/0.4242, allocations: 2.521 MB / 1.029 GB, free: 15 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 cvode -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