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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_10_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.001507/0.001507, allocations: 108 kB / 15.61 MB, free: 148 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.001808/0.001808, allocations: 196.5 kB / 16.53 MB, free: 6.656 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.834/2.834, allocations: 437.1 MB / 0.7104 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 60.14 kB / 0.8693 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9355/0.9372, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003754/0.941, allocations: 1.402 MB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.9421, allocations: 0.5021 MB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.083e-05/0.9422, allocations: 0 / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.374e-05/0.9424, allocations: 7.938 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.522e-05/0.9425, allocations: 7.938 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.9435, allocations: 236.4 kB / 1.02 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.9439, allocations: 151.7 kB / 1.02 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.322e-05/0.944, allocations: 7.984 kB / 1.02 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.9442, allocations: 55.91 kB / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.9443, allocations: 47.81 kB / 1.02 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 5.991e-05/0.9444, allocations: 12 kB / 1.02 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004686/0.9449, allocations: 167.8 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.945, allocations: 31.91 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.9452, allocations: 55.77 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006222/0.9458, allocations: 233.8 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.9458, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.856e-06/0.9458, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.9458, allocations: 4 kB / 1.02 GB, free: 15.57 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.0009246/0.9468, allocations: 454.9 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.9468, allocations: 12.03 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.239e-05/0.9469, allocations: 30.75 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.87e-05/0.947, allocations: 16.75 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.9473, allocations: 204.2 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.9473, allocations: 8.375 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.603e-05/0.9474, allocations: 16.31 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.9476, allocations: 83.95 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.9476, allocations: 7.875 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.9477, allocations: 4 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.9477, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.9478, allocations: 39.97 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004093/0.9482, allocations: 230.4 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001647/0.9484, allocations: 85.23 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.9485, allocations: 57.8 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.9485, allocations: 0 / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003302/0.9489, allocations: 113 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 5.12e-06/0.9489, allocations: 4 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0004895/0.9494, allocations: 185.4 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.9495, allocations: 89.09 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.9497, allocations: 155.3 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.324e-05/0.9498, allocations: 33.7 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.9499, allocations: 100.5 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.721e-05/0.95, allocations: 35.53 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.9501, allocations: 49.7 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002165/0.9503, allocations: 334.8 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.033e-05/0.9504, allocations: 39.98 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.9507, allocations: 200.5 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001905/0.9509, allocations: 97.58 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.9509, allocations: 0 / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003153/0.9513, allocations: 161.4 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.9513, allocations: 4 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.151e-05/0.9513, allocations: 7.984 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.9514, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.672e-05/0.9515, allocations: 8 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.9515, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.9518, allocations: 75.84 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.9518, allocations: 7.938 kB / 1.023 GB, free: 12.34 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.000167/0.952, allocations: 137.8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.073e-05/0.9521, allocations: 15.75 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.736e-05/0.9521, allocations: 12.72 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.902e-06/0.9521, allocations: 4 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.9521, allocations: 3.984 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.9522, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002412/0.9524, allocations: 197.5 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.9524, allocations: 0 / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.896e-05/0.9525, allocations: 11.98 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.9525, allocations: 0 / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.9525, allocations: 8 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-05/0.9525, allocations: 0 / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.9525, allocations: 7.875 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.9528, allocations: 182.3 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.223e-05/0.9529, allocations: 85.02 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.9529, allocations: 0 / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.079e-05/0.953, allocations: 11.98 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.953, allocations: 8 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.953, allocations: 4 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.468e-05/0.9531, allocations: 113 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9532, allocations: 0 / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003889/0.9535, allocations: 79.92 kB / 1.024 GB, free: 11.38 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.0009881/0.9545, allocations: 0.7841 MB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004236/0.955, allocations: 171.4 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.955, allocations: 0 / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.9551, allocations: 52.09 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002214/0.9553, allocations: 11.59 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.9577, allocations: 1.704 MB / 1.027 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006564/0.9584, allocations: 0.7041 MB / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.294e-05/0.9585, allocations: 12.66 kB / 1.027 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.823e-05/0.9585, allocations: 27.44 kB / 1.027 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of SimCode: time 6.22e-07/0.9585, allocations: 0 / 1.027 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.9817, allocations: 3.908 MB / 1.031 GB, free: 3.945 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.912/8.894, allocations: 8.922 kB / 1.031 GB, free: 3.938 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)