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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001047/0.001047, allocations: 91.61 kB / 15.36 MB, free: 0.7383 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.007951/0.007952, allocations: 170.1 kB / 16.26 MB, free: 6.613 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.461/1.461, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.36/2.36, allocations: 390.9 MB / 0.6664 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003693/0.0003702, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.75/0.7504, allocations: 142.4 MB / 0.9552 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001716/0.7522, allocations: 1.139 MB / 0.9563 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.7532, allocations: 0.4953 MB / 0.9568 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.124e-05/0.7533, allocations: 0 / 0.9568 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.721e-05/0.7534, allocations: 10.3 kB / 0.9568 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.693e-05/0.7535, allocations: 6.422 kB / 0.9568 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008328/0.7543, allocations: 193.9 kB / 0.957 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002713/0.7546, allocations: 137.6 kB / 0.9571 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.829e-05/0.7547, allocations: 11.3 kB / 0.9571 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.7548, allocations: 52.47 kB / 0.9572 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.7549, allocations: 47.12 kB / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.145e-05/0.7549, allocations: 9.438 kB / 0.9572 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003425/0.7553, allocations: 156.7 kB / 0.9574 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.593e-05/0.7554, allocations: 37.97 kB / 0.9574 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.607e-05/0.7555, allocations: 70.31 kB / 0.9575 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004189/0.7559, allocations: 228.5 kB / 0.9577 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.7559, allocations: 0 / 0.9577 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.324e-06/0.7559, allocations: 0 / 0.9577 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.7559, allocations: 0 / 0.9577 GB, free: 5.781 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.0006211/0.7566, allocations: 418.3 kB / 0.9581 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.7566, allocations: 17.08 kB / 0.9581 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.138e-05/0.7567, allocations: 37.44 kB / 0.9581 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.804e-05/0.7567, allocations: 16.44 kB / 0.9581 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.7569, allocations: 211.7 kB / 0.9583 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.7569, allocations: 5.875 kB / 0.9584 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.757, allocations: 17.98 kB / 0.9584 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001572/0.7571, allocations: 78.92 kB / 0.9584 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.7572, allocations: 3.938 kB / 0.9585 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.7572, allocations: 1.844 kB / 0.9585 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.7572, allocations: 0 / 0.9585 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.47e-05/0.7573, allocations: 38.64 kB / 0.9585 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002348/0.7575, allocations: 233.4 kB / 0.9587 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.7576, allocations: 74.36 kB / 0.9588 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.126e-05/0.7577, allocations: 61.44 kB / 0.9588 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.7577, allocations: 1.281 kB / 0.9588 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/0.7579, allocations: 115 kB / 0.959 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.7579, allocations: 0 / 0.959 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003519/0.7583, allocations: 183 kB / 0.9591 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.856e-05/0.7583, allocations: 86.95 kB / 0.9592 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.7585, allocations: 158.4 kB / 0.9594 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.7585, allocations: 34.86 kB / 0.9594 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.989e-05/0.7586, allocations: 102.7 kB / 0.9595 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.378e-05/0.7586, allocations: 44.72 kB / 0.9595 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.182e-05/0.7586, allocations: 24.52 kB / 0.9596 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.331e-05/0.7587, allocations: 326.7 kB / 0.9599 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.184e-05/0.7588, allocations: 41.11 kB / 0.9599 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.7589, allocations: 199.3 kB / 0.9601 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.7591, allocations: 93.77 kB / 0.9602 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.7591, allocations: 0 / 0.9602 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002301/0.7593, allocations: 166.4 kB / 0.9603 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.7594, allocations: 5.5 kB / 0.9604 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.289e-05/0.7594, allocations: 6.734 kB / 0.9604 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.7594, allocations: 5.375 kB / 0.9604 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.757e-05/0.7595, allocations: 14.75 kB / 0.9604 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.7595, allocations: 1.375 kB / 0.9604 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.7598, allocations: 86.72 kB / 0.9605 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.7598, allocations: 2.75 kB / 0.9605 GB, free: 3.281 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.618e-05/0.7599, allocations: 135.7 kB / 0.9606 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.966e-05/0.76, allocations: 17.25 kB / 0.9606 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.927e-05/0.76, allocations: 19.45 kB / 0.9606 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.76, allocations: 1.375 kB / 0.9606 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.76, allocations: 1.375 kB / 0.9606 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.76, allocations: 5.375 kB / 0.9606 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.7601, allocations: 198 kB / 0.9608 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.7601, allocations: 0 / 0.9608 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.596e-05/0.7602, allocations: 18.73 kB / 0.9608 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.7602, allocations: 0 / 0.9608 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.968e-06/0.7602, allocations: 2.75 kB / 0.9608 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.7602, allocations: 0 / 0.9608 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.7602, allocations: 5.375 kB / 0.9609 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001962/0.7604, allocations: 183.3 kB / 0.961 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.005e-05/0.7604, allocations: 84.83 kB / 0.9611 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.7605, allocations: 2.094 kB / 0.9611 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.715e-05/0.7605, allocations: 11.05 kB / 0.9611 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.7606, allocations: 3.156 kB / 0.9611 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.7606, allocations: 6.906 kB / 0.9611 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.373e-05/0.7606, allocations: 112.9 kB / 0.9612 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7607, allocations: 0 / 0.9612 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003393/0.761, allocations: 77.39 kB / 0.9613 GB, free: 2.535 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.000551/0.7616, allocations: 0.7785 MB / 0.9621 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002591/0.7618, allocations: 170.6 kB / 0.9622 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.7618, allocations: 0 / 0.9622 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.874e-05/0.7619, allocations: 47.73 kB / 0.9623 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/0.7621, allocations: 3.031 kB / 0.9623 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.7637, allocations: 1.718 MB / 0.964 GB, free: 276 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.7639, allocations: 0.7061 MB / 0.9646 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.905e-05/0.764, allocations: 6.609 kB / 0.9647 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.779e-05/0.764, allocations: 28.36 kB / 0.9647 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of SimCode: time 7.71e-07/0.764, allocations: 4 kB / 0.9647 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01655/0.7806, allocations: 3.638 MB / 0.9682 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001903/0.7808, allocations: 207.9 kB / 0.9684 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/2.575, allocations: 4 kB / 0.9684 GB, free: 13.53 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)