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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001308/0.001308, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.433/1.433, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.038/3.038, allocations: 472.6 MB / 0.7451 GB, free: 4.695 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002273/0.002273, allocations: 62.59 kB / 0.912 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5685/0.5708, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003249/0.5741, allocations: 1.415 MB / 1.07 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001015/0.5752, allocations: 0.4926 MB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.737e-05/0.5752, allocations: 4 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.5754, allocations: 7.922 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.413e-05/0.5754, allocations: 7.938 kB / 1.07 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008567/0.5763, allocations: 231 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.5765, allocations: 151.7 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.064e-05/0.5766, allocations: 11.98 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.939e-05/0.5767, allocations: 55.91 kB / 1.071 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.5768, allocations: 47.81 kB / 1.071 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.81e-05/0.5769, allocations: 8 kB / 1.071 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002924/0.5771, allocations: 167.8 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.584e-05/0.5772, allocations: 31.91 kB / 1.071 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.5774, allocations: 55.77 kB / 1.071 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.5777, allocations: 231.7 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.5777, allocations: 8 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.893e-06/0.5777, allocations: 0 / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.15e-05/0.5778, allocations: 0 / 1.071 GB, free: 7.52 MB / 0.8262 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.0006954/0.5785, allocations: 451 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.5785, allocations: 8.031 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.5786, allocations: 20.77 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/0.5789, allocations: 204.1 kB / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.5789, allocations: 8.375 kB / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.89e-05/0.5789, allocations: 16.38 kB / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.5791, allocations: 79.89 kB / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.5791, allocations: 192 / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.5791, allocations: 7.938 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.5792, allocations: 3.984 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.598e-05/0.5793, allocations: 35.98 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003018/0.5796, allocations: 230.5 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.5797, allocations: 85.19 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.882e-05/0.5798, allocations: 49.81 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.5798, allocations: 4 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003139/0.5801, allocations: 117 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.5801, allocations: 0 / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003892/0.5805, allocations: 197.3 kB / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/0.5806, allocations: 81.11 kB / 1.073 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.5808, allocations: 156 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.5808, allocations: 33.7 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.529e-05/0.5809, allocations: 100.5 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.991e-05/0.581, allocations: 39.55 kB / 1.073 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.565e-05/0.5811, allocations: 49.69 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.5812, allocations: 326.8 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.768e-05/0.5813, allocations: 43.98 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000224/0.5815, allocations: 205.6 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.5817, allocations: 97.64 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.5817, allocations: 0 / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002367/0.5819, allocations: 165.3 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.5819, allocations: 4 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.77e-05/0.582, allocations: 4 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.582, allocations: 0 / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.509e-05/0.5821, allocations: 11.94 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.5821, allocations: 4 kB / 1.074 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.5824, allocations: 75.75 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.5824, allocations: 4.094 kB / 1.074 GB, free: 4.34 MB / 0.8262 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.0001388/0.5826, allocations: 149.7 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.024e-05/0.5826, allocations: 11.84 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.256e-05/0.5826, allocations: 16.7 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.5827, allocations: 0 / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.5827, allocations: 4 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.5827, allocations: 0 / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.5829, allocations: 193.5 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.5829, allocations: 7.875 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.452e-05/0.5829, allocations: 12 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.5829, allocations: 0 / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.583, allocations: 4 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.583, allocations: 8 kB / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.583, allocations: 0 / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.5832, allocations: 174.4 kB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.266e-05/0.5833, allocations: 92.89 kB / 1.074 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.5833, allocations: 7.984 kB / 1.074 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.707e-05/0.5834, allocations: 4 kB / 1.074 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.687e-05/0.5834, allocations: 4 kB / 1.074 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.5835, allocations: 11.98 kB / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001053/0.5836, allocations: 112.8 kB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5836, allocations: 0 / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003258/0.5839, allocations: 68 kB / 1.075 GB, free: 3.375 MB / 0.8262 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.0002997/0.5842, allocations: 164.6 kB / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000317/0.5845, allocations: 179.5 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5846, allocations: 0 / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.326e-05/0.5846, allocations: 43.92 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001897/0.5848, allocations: 15.88 kB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005023/0.5853, allocations: 238.7 kB / 1.075 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.5857, allocations: 0.7002 MB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.464e-05/0.5857, allocations: 12.66 kB / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.756e-05/0.5858, allocations: 15.44 kB / 1.076 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of SimCode: time 5.31e-07/0.5858, allocations: 3.938 kB / 1.076 GB, free: 1.941 MB / 0.8262 GB Notification: Performance of Templates: time 0.006554/0.5923, allocations: 2.513 MB / 1.078 GB, free: 15.46 MB / 0.8419 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches