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.001571/0.001571, allocations: 103.8 kB / 16.41 MB, free: 6.461 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.001849/0.001849, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.743/1.743, allocations: 222.9 MB / 241 MB, free: 15.09 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.479/2.479, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001939, allocations: 63.89 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.317/1.319, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003029/1.322, allocations: 1.426 MB / 1.09 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001024/1.323, allocations: 0.4942 MB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.157e-05/1.323, allocations: 0.9375 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.021e-05/1.323, allocations: 11.27 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.337e-05/1.323, allocations: 12.89 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008854/1.324, allocations: 235.4 kB / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002889/1.324, allocations: 142.1 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.682e-05/1.324, allocations: 9.375 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.512e-05/1.324, allocations: 56.53 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/1.324, allocations: 40.97 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.424e-05/1.324, allocations: 10.16 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/1.325, allocations: 167.7 kB / 1.091 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.019e-05/1.325, allocations: 38.33 kB / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.757e-05/1.325, allocations: 62.62 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004491/1.325, allocations: 230.8 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/1.325, allocations: 0 / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.334e-06/1.325, allocations: 0.9688 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.714e-06/1.325, allocations: 0 / 1.091 GB, free: 3.797 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.0006552/1.326, allocations: 445.2 kB / 1.092 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/1.326, allocations: 9.25 kB / 1.092 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.694e-05/1.326, allocations: 13.09 kB / 1.092 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002138/1.327, allocations: 214.2 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/1.327, allocations: 9.906 kB / 1.092 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.78e-05/1.327, allocations: 9.688 kB / 1.092 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/1.327, allocations: 84.41 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/1.327, allocations: 192 / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/1.327, allocations: 5.328 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/1.327, allocations: 1.094 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.605e-05/1.327, allocations: 40.34 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002556/1.327, allocations: 236.7 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/1.327, allocations: 79.5 kB / 1.093 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.135e-05/1.327, allocations: 54 kB / 1.093 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/1.327, allocations: 1.281 kB / 1.093 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002407/1.328, allocations: 110.6 kB / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/1.328, allocations: 0 / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.00042/1.328, allocations: 189.6 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/1.328, allocations: 87.38 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/1.328, allocations: 149 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/1.328, allocations: 35.09 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.992e-05/1.328, allocations: 101 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.533e-05/1.328, allocations: 36.42 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.348e-05/1.329, allocations: 53.78 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.691e-05/1.329, allocations: 323.4 kB / 1.094 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.454e-05/1.329, allocations: 45.06 kB / 1.094 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002599/1.329, allocations: 198.2 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/1.329, allocations: 102.4 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.329, allocations: 0 / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003069/1.33, allocations: 167.7 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/1.33, allocations: 5.719 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/1.33, allocations: 3.391 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/1.33, allocations: 5.562 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.205e-05/1.33, allocations: 12.55 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/1.33, allocations: 4.969 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/1.33, allocations: 77.94 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/1.33, allocations: 3.875 kB / 1.094 GB, free: 1.527 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.0001357/1.33, allocations: 138.9 kB / 1.094 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/1.33, allocations: 12.72 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/1.33, allocations: 13.69 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/1.33, allocations: 2.312 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/1.33, allocations: 0.8125 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/1.33, allocations: 1.688 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/1.331, allocations: 196.9 kB / 1.095 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/1.331, allocations: 4.562 kB / 1.095 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.805e-05/1.331, allocations: 10.27 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/1.331, allocations: 1.719 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/1.331, allocations: 2.484 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/1.331, allocations: 1.125 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.331, allocations: 0.7969 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/1.331, allocations: 188.6 kB / 1.095 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/1.331, allocations: 88.89 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.685e-05/1.331, allocations: 6.922 kB / 1.095 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.055e-05/1.331, allocations: 3.141 kB / 1.095 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.525e-05/1.331, allocations: 9.484 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/1.331, allocations: 2.875 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.219e-05/1.331, allocations: 117.5 kB / 1.095 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.331, allocations: 0 / 1.095 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004025/1.332, allocations: 71.2 kB / 1.095 GB, free: 0.8359 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.0003359/1.332, allocations: 169.1 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003337/1.332, allocations: 161.8 kB / 1.095 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/1.332, allocations: 0.5 kB / 1.095 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.362e-05/1.332, allocations: 43.47 kB / 1.095 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001776/1.333, allocations: 7.516 kB / 1.095 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005948/1.333, allocations: 264.8 kB / 1.096 GB, free: 420 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/1.334, allocations: 0.7052 MB / 1.096 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.661e-05/1.334, allocations: 13.77 kB / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of SimCode: time 3.7e-07/1.334, allocations: 0 / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of Templates: time 0.007033/1.341, allocations: 2.453 MB / 1.099 GB, free: 15.42 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