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.001265/0.001265, allocations: 108 kB / 15.6 MB, free: 132 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.001261/0.001261, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.467/1.467, 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 9.1.3-maint.9.1.x/package.mo): time 2.465/2.465, allocations: 390.2 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 63.91 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7335/0.7349, allocations: 140.4 MB / 0.9497 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002751/0.7377, allocations: 1.412 MB / 0.9511 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008669/0.7386, allocations: 0.4959 MB / 0.9516 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.873e-05/0.7387, allocations: 1.594 kB / 0.9516 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.317e-05/0.7388, allocations: 5.312 kB / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.496e-05/0.7388, allocations: 14.67 kB / 0.9516 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007066/0.7396, allocations: 228.7 kB / 0.9518 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.7398, allocations: 150.4 kB / 0.952 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.91e-05/0.7398, allocations: 3.656 kB / 0.952 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.976e-05/0.7399, allocations: 56.25 kB / 0.952 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.028e-05/0.74, allocations: 38.64 kB / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.597e-05/0.74, allocations: 10.06 kB / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002589/0.7403, allocations: 174.2 kB / 0.9522 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.138e-05/0.7404, allocations: 34.78 kB / 0.9523 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.133e-05/0.7405, allocations: 55.64 kB / 0.9523 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000299/0.7408, allocations: 229.5 kB / 0.9525 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.7408, allocations: 0.8125 kB / 0.9525 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.402e-06/0.7408, allocations: 0 / 0.9525 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.7408, allocations: 0 / 0.9525 GB, free: 7.016 MB / 0.7169 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.0005326/0.7413, allocations: 446.7 kB / 0.953 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.7414, allocations: 9.906 kB / 0.953 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.534e-05/0.7414, allocations: 31.94 kB / 0.953 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.097e-05/0.7415, allocations: 24.97 kB / 0.953 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.7417, allocations: 217.1 kB / 0.9532 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.7417, allocations: 9.938 kB / 0.9532 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.837e-05/0.7417, allocations: 9.312 kB / 0.9532 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001479/0.7419, allocations: 83.22 kB / 0.9533 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.7419, allocations: 3.938 kB / 0.9533 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.7419, allocations: 1.094 kB / 0.9533 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.7419, allocations: 1.062 kB / 0.9533 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.936e-05/0.742, allocations: 42.16 kB / 0.9534 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002093/0.7422, allocations: 237.9 kB / 0.9536 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.7423, allocations: 78.34 kB / 0.9537 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.221e-05/0.7424, allocations: 53.03 kB / 0.9537 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.7424, allocations: 1.156 kB / 0.9537 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.7426, allocations: 116.5 kB / 0.9538 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.7427, allocations: 0 / 0.9538 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003458/0.743, allocations: 186.4 kB / 0.954 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.7431, allocations: 81.58 kB / 0.9541 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.7432, allocations: 154.2 kB / 0.9542 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.7432, allocations: 38.23 kB / 0.9543 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.894e-05/0.7433, allocations: 106.2 kB / 0.9544 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.387e-05/0.7433, allocations: 44.73 kB / 0.9544 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.088e-05/0.7434, allocations: 52.38 kB / 0.9545 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.161e-05/0.7435, allocations: 322.3 kB / 0.9548 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.656e-05/0.7435, allocations: 41.17 kB / 0.9548 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.7437, allocations: 195.3 kB / 0.955 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.7439, allocations: 106.1 kB / 0.9551 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.7439, allocations: 0 / 0.9551 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002138/0.7441, allocations: 158.3 kB / 0.9553 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.7441, allocations: 6.906 kB / 0.9553 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.7441, allocations: 10.33 kB / 0.9553 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.7442, allocations: 1.188 kB / 0.9553 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.561e-05/0.7442, allocations: 10.75 kB / 0.9553 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.7442, allocations: 1.094 kB / 0.9553 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.7445, allocations: 74.22 kB / 0.9554 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.7445, allocations: 4.344 kB / 0.9554 GB, free: 4.488 MB / 0.7169 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 9.251e-05/0.7446, allocations: 131.2 kB / 0.9555 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.7447, allocations: 19.97 kB / 0.9555 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.92e-05/0.7447, allocations: 20.86 kB / 0.9555 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.7447, allocations: 1.562 kB / 0.9555 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.7447, allocations: 4 kB / 0.9555 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.7447, allocations: 5.406 kB / 0.9555 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.7448, allocations: 189.6 kB / 0.9557 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.7448, allocations: 2.594 kB / 0.9557 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.164e-05/0.7449, allocations: 15.09 kB / 0.9557 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.7449, allocations: 0 / 0.9557 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.7449, allocations: 0 / 0.9557 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.7449, allocations: 0.5312 kB / 0.9557 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.7449, allocations: 7.875 kB / 0.9557 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.7451, allocations: 189.1 kB / 0.9559 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.737e-05/0.7451, allocations: 89.17 kB / 0.956 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.7452, allocations: 5.125 kB / 0.956 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.064e-05/0.7452, allocations: 5.891 kB / 0.956 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.7453, allocations: 3.75 kB / 0.956 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.7453, allocations: 2.938 kB / 0.956 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.244e-05/0.7453, allocations: 116.6 kB / 0.9561 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7453, allocations: 0 / 0.9561 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000308/0.7457, allocations: 74.98 kB / 0.9562 GB, free: 3.742 MB / 0.7169 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.0005149/0.7462, allocations: 0.7782 MB / 0.957 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002565/0.7464, allocations: 168 kB / 0.9571 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.7465, allocations: 3.938 kB / 0.9571 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.849e-05/0.7465, allocations: 47.48 kB / 0.9572 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.7467, allocations: 6.656 kB / 0.9572 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.7482, allocations: 1.698 MB / 0.9588 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001423/0.7483, allocations: 0.706 MB / 0.9595 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.026e-05/0.7484, allocations: 10.16 kB / 0.9595 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.361e-05/0.7484, allocations: 24.94 kB / 0.9596 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of SimCode: time 4.41e-07/0.7484, allocations: 0 / 0.9596 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.7726, allocations: 3.936 MB / 0.9634 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.272/8.045, allocations: 5.156 kB / 0.9634 GB, free: 14.73 MB / 0.7325 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)