Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001464/0.001464, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001438/0.001438, allocations: 187 kB / 17.34 MB, free: 5.766 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.462/1.462, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.501/2.501, allocations: 390.2 MB / 0.6655 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 67.89 kB / 0.9515 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.18/1.181, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002822/1.184, allocations: 1.424 MB / 1.09 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009142/1.185, allocations: 0.4888 MB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.508e-05/1.185, allocations: 1.062 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.349e-05/1.185, allocations: 15.06 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.501e-05/1.185, allocations: 12.94 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008304/1.186, allocations: 230.9 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002739/1.186, allocations: 147.7 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.692e-05/1.186, allocations: 3.656 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.53e-05/1.186, allocations: 52.94 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.517e-05/1.187, allocations: 40.02 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.017e-05/1.187, allocations: 18.92 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003575/1.187, allocations: 168.6 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.525e-05/1.187, allocations: 33.89 kB / 1.091 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.47e-05/1.187, allocations: 66.02 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003877/1.188, allocations: 227 kB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/1.188, allocations: 0.7188 kB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.963e-06/1.188, allocations: 0 / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.311e-05/1.188, allocations: 0 / 1.091 GB, free: 3.816 MB / 0.8575 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.0006649/1.188, allocations: 449.7 kB / 1.092 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/1.188, allocations: 9.281 kB / 1.092 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.937e-05/1.188, allocations: 13.38 kB / 1.092 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/1.189, allocations: 214.3 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/1.189, allocations: 5.406 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/1.189, allocations: 13.72 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/1.189, allocations: 83.92 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/1.189, allocations: 0.9375 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/1.189, allocations: 13.31 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/1.189, allocations: 0.6875 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.626e-05/1.189, allocations: 40.55 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002732/1.189, allocations: 225 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/1.189, allocations: 83.88 kB / 1.093 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.859e-05/1.19, allocations: 53.69 kB / 1.093 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/1.19, allocations: 4.812 kB / 1.093 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/1.19, allocations: 103.4 kB / 1.093 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/1.19, allocations: 0 / 1.093 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0003978/1.19, allocations: 192.2 kB / 1.093 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.642e-05/1.19, allocations: 88.53 kB / 1.093 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/1.19, allocations: 148.6 kB / 1.093 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/1.191, allocations: 39.72 kB / 1.093 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.763e-05/1.191, allocations: 99.98 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.872e-05/1.191, allocations: 36.3 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.329e-05/1.191, allocations: 49.66 kB / 1.093 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.101e-05/1.191, allocations: 327 kB / 1.094 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.22e-05/1.191, allocations: 37.88 kB / 1.094 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002375/1.191, allocations: 204.5 kB / 1.094 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/1.191, allocations: 101 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/1.191, allocations: 5.453 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002531/1.192, allocations: 159.2 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/1.192, allocations: 5.844 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.602e-05/1.192, allocations: 7.625 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/1.192, allocations: 1.5 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.036e-05/1.192, allocations: 11.91 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.974e-06/1.192, allocations: 1.438 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/1.192, allocations: 78.56 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/1.192, allocations: 4.484 kB / 1.094 GB, free: 1.547 MB / 0.8575 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.0001125/1.192, allocations: 134.2 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.502e-05/1.192, allocations: 17.2 kB / 1.094 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/1.192, allocations: 17.52 kB / 1.094 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/1.192, allocations: 1.656 kB / 1.094 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/1.192, allocations: 0.8125 kB / 1.094 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/1.192, allocations: 4.453 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/1.193, allocations: 193.9 kB / 1.095 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/1.193, allocations: 4.562 kB / 1.095 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.595e-05/1.193, allocations: 6.688 kB / 1.095 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/1.193, allocations: 0.875 kB / 1.095 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/1.193, allocations: 2.641 kB / 1.095 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/1.193, allocations: 1.188 kB / 1.095 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.193, allocations: 1.453 kB / 1.095 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002643/1.193, allocations: 192.1 kB / 1.095 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.328e-05/1.193, allocations: 89.03 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.607e-05/1.193, allocations: 2.297 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.581e-05/1.193, allocations: 15.25 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.478e-05/1.193, allocations: 5.312 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/1.193, allocations: 3.781 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.706e-05/1.193, allocations: 117.2 kB / 1.095 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.7e-07/1.193, allocations: 0 / 1.095 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004123/1.194, allocations: 75.89 kB / 1.095 GB, free: 0.8438 MB / 0.8575 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.0002853/1.194, allocations: 162.1 kB / 1.095 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003079/1.194, allocations: 162.7 kB / 1.095 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/1.194, allocations: 0 / 1.095 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.734e-05/1.194, allocations: 43.7 kB / 1.095 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001898/1.194, allocations: 15.61 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004954/1.195, allocations: 252.1 kB / 1.096 GB, free: 440 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/1.195, allocations: 0.7093 MB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.129e-05/1.195, allocations: 13.75 kB / 1.096 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of SimCode: time 3.6e-07/1.195, allocations: 0 / 1.096 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of Templates: time 0.006368/1.202, allocations: 2.459 MB / 1.099 GB, free: 15.43 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,occSchDay.tNexNonOcc,occSchWee.tNexNonOcc,occSchDay.occupied,occSchWee.occupied Variables in the result:occSchDay.occupied,occSchDay.tNexNonOcc,occSchWee.occupied,occSchWee.tNexNonOcc,time