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.01063/0.01063, allocations: 103.5 kB / 15.73 MB, free: 6.047 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.001792/0.001792, allocations: 188.1 kB / 16.67 MB, free: 5.969 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.464/2.464, allocations: 390.2 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 63.89 kB / 0.9508 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.271/1.273, allocations: 140.4 MB / 1.088 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.00419/1.277, allocations: 1.416 MB / 1.089 GB, free: 4.551 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001381/1.278, allocations: 0.5022 MB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.194e-05/1.278, allocations: 0 / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001429/1.279, allocations: 8.359 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.825e-05/1.279, allocations: 15.83 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0016/1.28, allocations: 235.4 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004581/1.281, allocations: 142.6 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/1.281, allocations: 11.98 kB / 1.09 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/1.281, allocations: 57.89 kB / 1.09 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/1.281, allocations: 40.2 kB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/1.281, allocations: 9.375 kB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005833/1.282, allocations: 165.6 kB / 1.09 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001476/1.282, allocations: 38.27 kB / 1.09 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001597/1.282, allocations: 54.45 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007051/1.283, allocations: 230.2 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.499e-05/1.283, allocations: 5.391 kB / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.697e-06/1.283, allocations: 0 / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.135e-05/1.283, allocations: 0 / 1.091 GB, free: 3.82 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.001127/1.284, allocations: 449.6 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001034/1.284, allocations: 8.875 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/1.284, allocations: 13.34 kB / 1.091 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/1.285, allocations: 214.2 kB / 1.091 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/1.285, allocations: 9.812 kB / 1.091 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.549e-05/1.285, allocations: 13.12 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/1.285, allocations: 80.48 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/1.285, allocations: 0.875 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/1.285, allocations: 8.734 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/1.285, allocations: 1.75 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/1.285, allocations: 40.2 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004877/1.286, allocations: 224.3 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002255/1.286, allocations: 79.55 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/1.286, allocations: 58.78 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/1.286, allocations: 0.7188 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003337/1.287, allocations: 110.3 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.834e-06/1.287, allocations: 0 / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0006892/1.287, allocations: 194.3 kB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.58e-05/1.288, allocations: 83.08 kB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/1.288, allocations: 150.1 kB / 1.092 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.948e-05/1.288, allocations: 34.48 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/1.288, allocations: 101.7 kB / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.829e-05/1.288, allocations: 35.53 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/1.288, allocations: 50.33 kB / 1.093 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001907/1.288, allocations: 329.8 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/1.289, allocations: 42.81 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004431/1.289, allocations: 203.6 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002406/1.289, allocations: 93.61 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/1.289, allocations: 4.594 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004033/1.29, allocations: 167.6 kB / 1.093 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.601e-05/1.29, allocations: 6.172 kB / 1.093 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.454e-05/1.29, allocations: 3.547 kB / 1.093 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.209e-05/1.29, allocations: 4.672 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/1.29, allocations: 16.78 kB / 1.093 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/1.29, allocations: 5.594 kB / 1.093 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004141/1.29, allocations: 69.83 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/1.291, allocations: 8.406 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.0001761/1.291, allocations: 134.3 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/1.291, allocations: 13.5 kB / 1.094 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.641e-05/1.291, allocations: 13.17 kB / 1.094 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/1.291, allocations: 1.25 kB / 1.094 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/1.291, allocations: 1.484 kB / 1.094 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/1.291, allocations: 0.7812 kB / 1.094 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/1.291, allocations: 190.1 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/1.291, allocations: 7.938 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.725e-05/1.291, allocations: 15.56 kB / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/1.291, allocations: 0.8125 kB / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/1.291, allocations: 6.281 kB / 1.094 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/1.291, allocations: 0.9375 kB / 1.094 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/1.291, allocations: 0.75 kB / 1.094 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004013/1.292, allocations: 184.8 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.792e-05/1.292, allocations: 89.19 kB / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/1.292, allocations: 6.391 kB / 1.094 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.783e-05/1.292, allocations: 3.844 kB / 1.094 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.593e-05/1.292, allocations: 9.297 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/1.292, allocations: 2.719 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001305/1.292, allocations: 117.3 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.292, allocations: 0 / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006673/1.293, allocations: 76.11 kB / 1.094 GB, free: 0.8555 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.0004837/1.293, allocations: 162.9 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000562/1.294, allocations: 166.9 kB / 1.095 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/1.294, allocations: 0 / 1.095 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/1.294, allocations: 43.69 kB / 1.095 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/1.294, allocations: 11.14 kB / 1.095 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000846/1.295, allocations: 230.5 kB / 1.095 GB, free: 480 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006278/1.296, allocations: 0.7102 MB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.803e-05/1.296, allocations: 8.297 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.366e-05/1.296, allocations: 16.47 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/1.296, allocations: 0.5312 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of Templates: time 0.01336/1.309, allocations: 2.571 MB / 1.098 GB, free: 15.48 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches