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.001125/0.001125, allocations: 92.7 kB / 16.02 MB, free: 80 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.001639/0.00164, allocations: 183.5 kB / 16.92 MB, free: 6.922 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.548/1.548, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.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.961/2.961, allocations: 437.8 MB / 0.7128 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.0003984, allocations: 11.98 kB / 0.8735 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8825/0.8829, allocations: 153.8 MB / 1.024 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002/0.8849, allocations: 1.141 MB / 1.025 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.8862, allocations: 0.4908 MB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.254e-05/0.8863, allocations: 4 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.8864, allocations: 3.938 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.453e-05/0.8865, allocations: 11.92 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009295/0.8874, allocations: 195 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.8877, allocations: 143.7 kB / 1.026 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.796e-05/0.8878, allocations: 7.984 kB / 1.026 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.874e-05/0.8878, allocations: 47.91 kB / 1.026 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.6e-05/0.888, allocations: 43.83 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.888, allocations: 4 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002933/0.8883, allocations: 163.8 kB / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.657e-05/0.8884, allocations: 31.91 kB / 1.026 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.8885, allocations: 77.47 kB / 1.026 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.8888, allocations: 161.7 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.8888, allocations: 3.938 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.064e-06/0.8888, allocations: 0 / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.8888, allocations: 0 / 1.026 GB, free: 13.34 MB / 0.7794 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.0005832/0.8894, allocations: 431 kB / 1.027 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.8894, allocations: 8.031 kB / 1.027 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.798e-05/0.8895, allocations: 16.83 kB / 1.027 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.8897, allocations: 205.9 kB / 1.027 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.8898, allocations: 8.375 kB / 1.027 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/0.8898, allocations: 12.38 kB / 1.027 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001621/0.89, allocations: 79.94 kB / 1.027 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-06/0.89, allocations: 192 / 1.027 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.89, allocations: 7.938 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.89, allocations: 4 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.189e-05/0.8901, allocations: 43.86 kB / 1.027 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002725/0.8904, allocations: 230.5 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.8905, allocations: 81.19 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.734e-05/0.8906, allocations: 53.81 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.8906, allocations: 8 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.8908, allocations: 109.1 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 2.024e-06/0.8908, allocations: 0 / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003647/0.8912, allocations: 185.4 kB / 1.028 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.8913, allocations: 85.11 kB / 1.028 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.8914, allocations: 159.3 kB / 1.028 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.8915, allocations: 33.7 kB / 1.028 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.173e-05/0.8915, allocations: 112.4 kB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.278e-05/0.8916, allocations: 35.55 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.8917, allocations: 21.72 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.8918, allocations: 322.8 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.258e-05/0.8919, allocations: 43.97 kB / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002054/0.8921, allocations: 199.4 kB / 1.029 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.8922, allocations: 101.5 kB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.8922, allocations: 4 kB / 1.029 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002347/0.8925, allocations: 161.9 kB / 1.029 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.8925, allocations: 5.875 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-05/0.8925, allocations: 4 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.8925, allocations: 0 / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.239e-05/0.8926, allocations: 15.92 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.8926, allocations: 0 / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.8929, allocations: 95.62 kB / 1.029 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.893, allocations: 4 kB / 1.029 GB, free: 10.19 MB / 0.7794 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.0001247/0.8931, allocations: 143.6 kB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.8931, allocations: 11.84 kB / 1.029 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.255e-05/0.8932, allocations: 16.75 kB / 1.029 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.8932, allocations: 7.984 kB / 1.029 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.8932, allocations: 3.938 kB / 1.029 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.8932, allocations: 0 / 1.029 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001518/0.8934, allocations: 193.5 kB / 1.029 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.8934, allocations: 3.938 kB / 1.029 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.58e-05/0.8934, allocations: 8 kB / 1.029 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.8934, allocations: 4 kB / 1.029 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.8934, allocations: 11.98 kB / 1.029 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.8934, allocations: 0 / 1.029 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.8934, allocations: 80 / 1.029 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/0.8937, allocations: 181.8 kB / 1.029 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.883e-05/0.8937, allocations: 84.95 kB / 1.03 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.8938, allocations: 11.88 kB / 1.03 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.392e-05/0.8938, allocations: 8 kB / 1.03 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.8939, allocations: 3.984 kB / 1.03 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.8939, allocations: 8 kB / 1.03 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.182e-05/0.894, allocations: 112.6 kB / 1.03 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.894, allocations: 0 / 1.03 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003142/0.8943, allocations: 75.92 kB / 1.03 GB, free: 9.219 MB / 0.7794 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.0002824/0.8946, allocations: 162.4 kB / 1.03 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002484/0.8948, allocations: 167.3 kB / 1.03 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8949, allocations: 0 / 1.03 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.815e-05/0.8949, allocations: 47.92 kB / 1.03 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001756/0.8951, allocations: 14.03 kB / 1.03 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004599/0.8956, allocations: 276.3 kB / 1.03 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.8959, allocations: 0.7043 MB / 1.031 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.582e-05/0.8959, allocations: 11.44 kB / 1.031 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.8959, allocations: 0 / 1.031 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of Templates: time 0.004724/0.9006, allocations: 2.417 MB / 1.033 GB, free: 5.371 MB / 0.7794 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 -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) "" 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