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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001471/0.001471, allocations: 103.5 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.001751/0.001751, allocations: 193.4 kB / 17.29 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.551/2.551, allocations: 442.5 MB / 0.7165 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001329, allocations: 69.88 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4156, allocations: 153 MB / 1.027 GB, free: 2.078 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.0031/0.4188, allocations: 1.422 MB / 1.028 GB, free: 0.6523 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009636/0.4198, allocations: 0.4982 MB / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.113e-05/0.4198, allocations: 0 / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 8.678e-05/0.4199, allocations: 7.938 kB / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.129e-05/0.42, allocations: 15.91 kB / 1.029 GB, free: 132 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008086/0.4208, allocations: 236 kB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002293/0.421, allocations: 147.7 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.117e-05/0.4211, allocations: 4 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.866e-05/0.4212, allocations: 55.89 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.954e-05/0.4213, allocations: 47.83 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.4213, allocations: 8 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.4216, allocations: 167.8 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.516e-05/0.4217, allocations: 35.89 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.761e-05/0.4218, allocations: 51.78 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000314/0.4221, allocations: 235.4 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4221, allocations: 0 / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4221, allocations: 0 / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.4221, allocations: 3.984 kB / 1.03 GB, free: 15.16 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.0006253/0.4227, allocations: 447 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.4228, allocations: 8.031 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.025e-05/0.4228, allocations: 12.84 kB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.4231, allocations: 204.1 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.4231, allocations: 12.38 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.4232, allocations: 8.375 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.4233, allocations: 83.94 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.4234, allocations: 4.172 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.4234, allocations: 7.938 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.4234, allocations: 0 / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.511e-05/0.4235, allocations: 39.92 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002752/0.4238, allocations: 242.4 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.4239, allocations: 77.19 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.707e-05/0.424, allocations: 61.75 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.014e-05/0.424, allocations: 3.984 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.4242, allocations: 105.1 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.4243, allocations: 0 / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.000363/0.4246, allocations: 185.4 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.4247, allocations: 85.09 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.4248, allocations: 163.3 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.4249, allocations: 37.64 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.313e-05/0.4249, allocations: 104.5 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.754e-05/0.425, allocations: 31.55 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-05/0.4251, allocations: 53.7 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.4252, allocations: 326.8 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.548e-05/0.4253, allocations: 43.92 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.4255, allocations: 195.4 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.4256, allocations: 101.5 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.4256, allocations: 4 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002209/0.4259, allocations: 169.3 kB / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.4259, allocations: 4 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.4259, allocations: 4 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.4259, allocations: 0 / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.125e-05/0.426, allocations: 11.94 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.426, allocations: 0.625 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002607/0.4263, allocations: 83.73 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.4263, allocations: 4 kB / 1.032 GB, free: 11.97 MB / 0.8106 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.0001212/0.4265, allocations: 125.8 kB / 1.032 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.982e-05/0.4265, allocations: 11.84 kB / 1.032 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.531e-05/0.4265, allocations: 24.7 kB / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.4265, allocations: 4 kB / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.4265, allocations: 0 / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.4266, allocations: 0 / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.4267, allocations: 185.6 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.4267, allocations: 3.938 kB / 1.033 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.608e-05/0.4268, allocations: 15.94 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.4268, allocations: 96 / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.4268, allocations: 7.984 kB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4268, allocations: 0 / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4268, allocations: 0 / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.427, allocations: 189.8 kB / 1.033 GB, free: 11.33 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.927e-05/0.4271, allocations: 96.88 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.4271, allocations: 4 kB / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.941e-05/0.4272, allocations: 4 kB / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.4272, allocations: 7.922 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.4272, allocations: 4 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.664e-05/0.4273, allocations: 121.1 kB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4273, allocations: 3.938 kB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003481/0.4277, allocations: 64 kB / 1.033 GB, free: 11.02 MB / 0.8106 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.0002513/0.428, allocations: 169.1 kB / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000274/0.4282, allocations: 163.3 kB / 1.033 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4283, allocations: 0 / 1.033 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.763e-05/0.4283, allocations: 47.92 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.4285, allocations: 14.12 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004429/0.429, allocations: 231.4 kB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.4293, allocations: 0.7041 MB / 1.034 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.574e-05/0.4293, allocations: 8.656 kB / 1.034 GB, free: 9.613 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.559e-05/0.4294, allocations: 11.44 kB / 1.034 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of SimCode: time 7.21e-07/0.4294, allocations: 4 kB / 1.034 GB, free: 9.598 MB / 0.8106 GB Notification: Performance of Templates: time 0.005787/0.4352, allocations: 2.511 MB / 1.037 GB, free: 7.121 MB / 0.8106 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches