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: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00698/0.00698, allocations: 102 kB / 15.73 MB, free: 6.043 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.001425/0.001426, allocations: 195 kB / 16.67 MB, free: 5.965 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 15.17 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.395/2.395, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001468, allocations: 67.89 kB / 0.9504 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.255/1.257, allocations: 140.4 MB / 1.087 GB, free: 5.301 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003002/1.26, allocations: 1.417 MB / 1.089 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001001/1.261, allocations: 0.4997 MB / 1.089 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.161e-05/1.261, allocations: 5.062 kB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.731e-05/1.261, allocations: 7.094 kB / 1.089 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.246e-05/1.261, allocations: 12.59 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008601/1.262, allocations: 233.6 kB / 1.09 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002763/1.262, allocations: 150.9 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.011e-05/1.262, allocations: 7.797 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.924e-05/1.262, allocations: 53.23 kB / 1.09 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/1.262, allocations: 44.19 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.583e-05/1.263, allocations: 18.25 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003727/1.263, allocations: 164.7 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.859e-05/1.263, allocations: 34.36 kB / 1.09 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001114/1.263, allocations: 62.25 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005089/1.264, allocations: 225.1 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/1.264, allocations: 4.656 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.877e-06/1.264, allocations: 1.188 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.107e-06/1.264, allocations: 0 / 1.09 GB, free: 3.57 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.0007112/1.264, allocations: 450.4 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.09e-05/1.264, allocations: 10.67 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.049e-05/1.265, allocations: 33.47 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.072e-05/1.265, allocations: 16.91 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/1.265, allocations: 205.7 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/1.265, allocations: 13.94 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.398e-05/1.265, allocations: 10.55 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/1.265, allocations: 83.94 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/1.265, allocations: 0 / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/1.265, allocations: 5.125 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/1.265, allocations: 0.5625 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/1.265, allocations: 40.98 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003047/1.266, allocations: 228 kB / 1.091 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/1.266, allocations: 79.84 kB / 1.091 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/1.266, allocations: 57.61 kB / 1.091 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/1.266, allocations: 6.078 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003385/1.266, allocations: 114.3 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/1.266, allocations: 0 / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0004956/1.267, allocations: 185.7 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/1.267, allocations: 87.3 kB / 1.092 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/1.267, allocations: 149.8 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/1.267, allocations: 33.78 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/1.267, allocations: 100.7 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.531e-05/1.267, allocations: 40.58 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.524e-05/1.267, allocations: 49.92 kB / 1.092 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001112/1.267, allocations: 322.8 kB / 1.092 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.078e-05/1.268, allocations: 45.8 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002976/1.268, allocations: 202.5 kB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001895/1.268, allocations: 93.59 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/1.268, allocations: 0.5312 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003191/1.268, allocations: 171 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/1.268, allocations: 6.609 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.119e-05/1.268, allocations: 3.109 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/1.268, allocations: 1.375 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.815e-05/1.269, allocations: 15.8 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/1.269, allocations: 2.141 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003276/1.269, allocations: 77.47 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/1.269, allocations: 4.344 kB / 1.093 GB, free: 1.262 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.0001474/1.269, allocations: 141.2 kB / 1.093 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.512e-05/1.269, allocations: 9.047 kB / 1.093 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.025e-05/1.269, allocations: 21.88 kB / 1.093 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/1.269, allocations: 1.656 kB / 1.093 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/1.269, allocations: 1.062 kB / 1.093 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/1.269, allocations: 0.5156 kB / 1.093 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/1.269, allocations: 201.7 kB / 1.093 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/1.269, allocations: 0.6875 kB / 1.093 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.805e-05/1.269, allocations: 6.172 kB / 1.093 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/1.269, allocations: 6.203 kB / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/1.27, allocations: 1.562 kB / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/1.27, allocations: 1.516 kB / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/1.27, allocations: 4.688 kB / 1.093 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/1.27, allocations: 184.6 kB / 1.094 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.524e-05/1.27, allocations: 84.81 kB / 1.094 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/1.27, allocations: 7.188 kB / 1.094 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.066e-05/1.27, allocations: 2.828 kB / 1.094 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.284e-05/1.27, allocations: 8.969 kB / 1.094 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/1.27, allocations: 7.953 kB / 1.094 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.483e-05/1.27, allocations: 116.9 kB / 1.094 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.27, allocations: 0 / 1.094 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004181/1.271, allocations: 72.64 kB / 1.094 GB, free: 0.5664 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.0006995/1.271, allocations: 0.784 MB / 1.095 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003491/1.272, allocations: 166.9 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.272, allocations: 0.7812 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 9.429e-05/1.272, allocations: 46.64 kB / 1.095 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001769/1.272, allocations: 7.672 kB / 1.095 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/1.274, allocations: 1.704 MB / 1.097 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/1.275, allocations: 0.7095 MB / 1.097 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.692e-05/1.275, allocations: 12.3 kB / 1.097 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.004e-05/1.275, allocations: 31.39 kB / 1.097 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of SimCode: time 3.4e-07/1.275, allocations: 0 / 1.097 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/1.299, allocations: 3.968 MB / 1.101 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/9.575, allocations: 9.875 kB / 1.101 GB, free: 13.13 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > 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.firstEntryOccupied,occSchDay.occupancy[1],occSchDay.occupancy[2],occSchDay.occupied,occSchDay.period,occSchDay.tNexNonOcc,occSchDay.tNexOcc,occSchWee.firstEntryOccupied,occSchWee.occupancy[10],occSchWee.occupancy[11],occSchWee.occupancy[12],occSchWee.occupancy[1],occSchWee.occupancy[2],occSchWee.occupancy[3],occSchWee.occupancy[4],occSchWee.occupancy[5],occSchWee.occupancy[6],occSchWee.occupancy[7],occSchWee.occupancy[8],occSchWee.occupancy[9],occSchWee.occupied,occSchWee.period,occSchWee.tNexNonOcc,occSchWee.tNexOcc,time