Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 80.92 kB / 20.75 MB, free: 3.738 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 161 kB / 24.17 MB, free: 324 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.042/1.042, allocations: 177.2 MB / 204.6 MB, free: 5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.905/1.905, allocations: 377.9 MB / 0.624 GB, free: 8.371 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.315e-06/2.315e-06, allocations: 0 / 0.76 GB, free: 6.617 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.832e-05/4.064e-05, allocations: 9.344 kB / 0.76 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003753/0.003794, allocations: 1.517 MB / 0.7615 GB, free: 5.102 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001176/0.00497, allocations: 483.7 kB / 0.762 GB, free: 4.633 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.91e-05/0.005019, allocations: 0 / 0.762 GB, free: 4.633 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001011/0.00512, allocations: 3.938 kB / 0.762 GB, free: 4.629 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 8.877e-05/0.005209, allocations: 16.08 kB / 0.762 GB, free: 4.617 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008965/0.006105, allocations: 228.2 kB / 0.7622 GB, free: 4.398 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002581/0.006363, allocations: 146.1 kB / 0.7623 GB, free: 4.266 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 5.465e-05/0.006418, allocations: 4 kB / 0.7623 GB, free: 4.262 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.006549, allocations: 80.56 kB / 0.7624 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 9.107e-05/0.00664, allocations: 37.67 kB / 0.7625 GB, free: 4.148 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.891e-05/0.006669, allocations: 8 kB / 0.7625 GB, free: 4.141 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004135/0.007082, allocations: 211.6 kB / 0.7627 GB, free: 3.934 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.161e-05/0.007154, allocations: 31.92 kB / 0.7627 GB, free: 3.902 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 7.152e-05/0.007225, allocations: 49.11 kB / 0.7627 GB, free: 3.855 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0004159/0.007641, allocations: 243.4 kB / 0.763 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.007644, allocations: 0 / 0.763 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.664e-06/0.007645, allocations: 0.75 kB / 0.763 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.007652, allocations: 0 / 0.763 GB, free: 3.617 MB / 0.7136 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.0005349/0.008187, allocations: 341 kB / 0.7633 GB, free: 3.258 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.00823, allocations: 12.78 kB / 0.7633 GB, free: 3.246 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.644e-05/0.008286, allocations: 12.92 kB / 0.7633 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00236/0.01065, allocations: 163.2 kB / 0.7635 GB, free: 3.051 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.01068, allocations: 8.375 kB / 0.7635 GB, free: 3.043 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.748e-05/0.01072, allocations: 8.375 kB / 0.7635 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.0109, allocations: 66.77 kB / 0.7636 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.01091, allocations: 192 / 0.7636 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.01093, allocations: 1.562 kB / 0.7636 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.01094, allocations: 4.375 kB / 0.7636 GB, free: 2.953 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.689e-05/0.01099, allocations: 25.52 kB / 0.7636 GB, free: 2.926 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002019/0.01119, allocations: 88.08 kB / 0.7637 GB, free: 2.82 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.883e-05/0.01129, allocations: 53.89 kB / 0.7637 GB, free: 2.75 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.881e-05/0.01134, allocations: 29.95 kB / 0.7637 GB, free: 2.715 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.01136, allocations: 8.516 kB / 0.7638 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001784/0.01153, allocations: 92.81 kB / 0.7638 GB, free: 2.598 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.01154, allocations: 0 / 0.7638 GB, free: 2.598 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14): time 0.0002243/0.01176, allocations: 92.41 kB / 0.7639 GB, free: 2.5 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.464e-05/0.01183, allocations: 89.09 kB / 0.764 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.01197, allocations: 135.7 kB / 0.7641 GB, free: 2.25 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.01201, allocations: 43.44 kB / 0.7642 GB, free: 2.203 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.01207, allocations: 88.5 kB / 0.7643 GB, free: 2.113 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 6.011e-05/0.01213, allocations: 47.55 kB / 0.7643 GB, free: 2.066 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.655e-05/0.01221, allocations: 49.67 kB / 0.7644 GB, free: 2.012 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.01234, allocations: 326.8 kB / 0.7647 GB, free: 1.684 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.506e-05/0.01239, allocations: 21.56 kB / 0.7647 GB, free: 1.664 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.01273, allocations: 0.5338 MB / 0.7652 GB, free: 0.9766 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.01284, allocations: 67.25 kB / 0.7653 GB, free: 0.9023 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.01284, allocations: 0 / 0.7653 GB, free: 0.9023 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001786/0.01302, allocations: 99.19 kB / 0.7654 GB, free: 0.7969 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.01304, allocations: 8 kB / 0.7654 GB, free: 0.7891 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.01307, allocations: 0 / 0.7654 GB, free: 0.7891 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.01309, allocations: 1.906 kB / 0.7654 GB, free: 0.7891 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.0132, allocations: 23.92 kB / 0.7654 GB, free: 0.7656 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.0132, allocations: 3.938 kB / 0.7654 GB, free: 0.7617 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.01338, allocations: 32.86 kB / 0.7654 GB, free: 0.7305 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.01339, allocations: 4 kB / 0.7655 GB, free: 0.7266 MB / 0.7136 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.0001365/0.01353, allocations: 130.1 kB / 0.7656 GB, free: 0.5898 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.57e-05/0.01355, allocations: 4.5 kB / 0.7656 GB, free: 0.5859 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.965e-05/0.01359, allocations: 19.75 kB / 0.7656 GB, free: 0.5703 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.0136, allocations: 3.984 kB / 0.7656 GB, free: 0.5664 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.0136, allocations: 4 kB / 0.7656 GB, free: 0.5625 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.01361, allocations: 3.938 kB / 0.7656 GB, free: 0.5586 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001346/0.01374, allocations: 89.75 kB / 0.7657 GB, free: 464 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.01374, allocations: 0 / 0.7657 GB, free: 464 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.596e-05/0.01379, allocations: 8 kB / 0.7657 GB, free: 456 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.01379, allocations: 0 / 0.7657 GB, free: 456 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.01381, allocations: 10.44 kB / 0.7657 GB, free: 448 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.239e-05/0.01382, allocations: 4 kB / 0.7657 GB, free: 444 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.01382, allocations: 0 / 0.7657 GB, free: 444 kB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001829/0.014, allocations: 117.5 kB / 0.7658 GB, free: 304 kB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.247e-05/0.01403, allocations: 7.953 kB / 0.7658 GB, free: 296 kB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.01405, allocations: 0 / 0.7658 GB, free: 296 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.799e-05/0.0141, allocations: 8 kB / 0.7658 GB, free: 288 kB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.346e-05/0.01415, allocations: 5.391 kB / 0.7658 GB, free: 284 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.01416, allocations: 4 kB / 0.7659 GB, free: 280 kB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.646e-05/0.01421, allocations: 35.19 kB / 0.7659 GB, free: 244 kB / 0.7136 GB Notification: Performance of sort global known variables: time 8e-08/0.01421, allocations: 0.875 kB / 0.7659 GB, free: 244 kB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003749/0.01458, allocations: 79.8 kB / 0.766 GB, free: 164 kB / 0.7136 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.0003006/0.01488, allocations: 159.4 kB / 0.7661 GB, free: 0 / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002327/0.01512, allocations: 115.3 kB / 0.7662 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.01512, allocations: 4 kB / 0.7662 GB, free: 15.87 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 4.396e-05/0.01517, allocations: 28.77 kB / 0.7663 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.01529, allocations: 11.94 kB / 0.7663 GB, free: 15.83 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004605/0.01575, allocations: 209.1 kB / 0.7665 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.487e-05/0.01582, allocations: 78.91 kB / 0.7665 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.63e-05/0.01587, allocations: 12.98 kB / 0.7666 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.01599, allocations: 71.36 kB / 0.7666 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of SimCode: time 1.323e-06/0.01599, allocations: 0 / 0.7666 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of Templates: time 0.005274/0.02126, allocations: 2.857 MB / 0.7694 GB, free: 12.75 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.182684272993356]