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.009247/0.009247, allocations: 98.34 kB / 15.73 MB, free: 6.008 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.001885/0.001885, allocations: 195.1 kB / 16.68 MB, free: 5.934 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.352/2.352, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 59.91 kB / 0.9508 GB, free: 7.707 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.362/1.363, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003047/1.366, allocations: 1.42 MB / 1.089 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001067/1.368, allocations: 0.49 MB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.213e-05/1.368, allocations: 3.938 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.607e-05/1.368, allocations: 7.734 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.242e-05/1.368, allocations: 17.02 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008421/1.369, allocations: 232.4 kB / 1.09 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002725/1.369, allocations: 145.7 kB / 1.09 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.462e-05/1.369, allocations: 7.859 kB / 1.09 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.397e-05/1.369, allocations: 57.84 kB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/1.369, allocations: 40.42 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.361e-05/1.369, allocations: 10.16 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003506/1.37, allocations: 168.6 kB / 1.09 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.454e-05/1.37, allocations: 39.19 kB / 1.09 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001003/1.37, allocations: 56.92 kB / 1.091 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004556/1.37, allocations: 235.6 kB / 1.091 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/1.37, allocations: 0 / 1.091 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.753e-06/1.37, allocations: 0.7188 kB / 1.091 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.511e-05/1.37, allocations: 0 / 1.091 GB, free: 3.801 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.0007129/1.371, allocations: 447.7 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/1.371, allocations: 8.75 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.795e-05/1.371, allocations: 17.69 kB / 1.091 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/1.371, allocations: 210.4 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/1.371, allocations: 9.531 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.513e-05/1.372, allocations: 13.73 kB / 1.091 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/1.372, allocations: 84.03 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/1.372, allocations: 1 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/1.372, allocations: 8.719 kB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/1.372, allocations: 0.5625 kB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001125/1.372, allocations: 36.97 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003117/1.372, allocations: 241 kB / 1.092 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/1.372, allocations: 78.58 kB / 1.092 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/1.372, allocations: 55.3 kB / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/1.373, allocations: 0.875 kB / 1.092 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002567/1.373, allocations: 121.9 kB / 1.092 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.253e-06/1.373, allocations: 0 / 1.092 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.000425/1.373, allocations: 193.5 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/1.373, allocations: 83.67 kB / 1.092 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/1.373, allocations: 149 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.71e-05/1.373, allocations: 35.28 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.123e-05/1.374, allocations: 104 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.567e-05/1.374, allocations: 37.55 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.561e-05/1.374, allocations: 52.44 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.354e-05/1.374, allocations: 322.9 kB / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-05/1.374, allocations: 42.3 kB / 1.093 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/1.374, allocations: 204.5 kB / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/1.374, allocations: 89.92 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.374, allocations: 0 / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002942/1.375, allocations: 168.1 kB / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/1.375, allocations: 6.484 kB / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/1.375, allocations: 10.19 kB / 1.093 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/1.375, allocations: 2.078 kB / 1.093 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.948e-05/1.375, allocations: 8.516 kB / 1.093 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/1.375, allocations: 0.6875 kB / 1.093 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/1.375, allocations: 78.56 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/1.375, allocations: 3.688 kB / 1.094 GB, free: 1.52 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.0001251/1.375, allocations: 134.5 kB / 1.094 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/1.375, allocations: 17.86 kB / 1.094 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.179e-05/1.375, allocations: 12.89 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/1.375, allocations: 2.266 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/1.375, allocations: 1.312 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/1.375, allocations: 5.797 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/1.376, allocations: 188.3 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/1.376, allocations: 4.688 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.061e-05/1.376, allocations: 7.047 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/1.376, allocations: 0.875 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/1.376, allocations: 3.062 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/1.376, allocations: 0.6562 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.376, allocations: 0.7812 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/1.376, allocations: 188.6 kB / 1.094 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.445e-05/1.376, allocations: 93.11 kB / 1.094 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.674e-05/1.376, allocations: 6.297 kB / 1.094 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.256e-05/1.376, allocations: 7.031 kB / 1.094 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/1.376, allocations: 5.766 kB / 1.094 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/1.376, allocations: 3.656 kB / 1.094 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.37e-05/1.376, allocations: 116.5 kB / 1.094 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/1.376, allocations: 0.9062 kB / 1.094 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003718/1.377, allocations: 70.81 kB / 1.094 GB, free: 0.832 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.0003177/1.377, allocations: 168.4 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003589/1.377, allocations: 162.2 kB / 1.095 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/1.377, allocations: 0.9375 kB / 1.095 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001166/1.378, allocations: 46.75 kB / 1.095 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/1.378, allocations: 15.69 kB / 1.095 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000556/1.378, allocations: 226.4 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/1.379, allocations: 0.7058 MB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.228e-05/1.379, allocations: 12.42 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.204e-05/1.379, allocations: 13.75 kB / 1.096 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of SimCode: time 1.9e-07/1.379, allocations: 0 / 1.096 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of Templates: time 0.00937/1.388, allocations: 2.529 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