Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.397/1.397, allocations: 251.9 MB / 266.9 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 181.3 kB / 326.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.137/2.137, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008828/0.000883, allocations: 104.2 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.0004391, allocations: 10.84 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2677, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001425/0.2692, allocations: 1.152 MB / 0.9013 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005831/0.2698, allocations: 379.1 kB / 0.9016 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.69e-05/0.2699, allocations: 0 / 0.9016 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 5.85e-05/0.2699, allocations: 11.92 kB / 0.9016 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.2701, allocations: 11.98 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004448/0.2705, allocations: 185.7 kB / 0.9018 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.000148/0.2707, allocations: 163.8 kB / 0.902 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.789e-05/0.2708, allocations: 8.219 kB / 0.902 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.2709, allocations: 135.8 kB / 0.9021 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.2711, allocations: 123.7 kB / 0.9022 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.943e-05/0.2711, allocations: 16 kB / 0.9023 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.356e-05/0.2712, allocations: 31.98 kB / 0.9023 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.139e-05/0.2712, allocations: 39.89 kB / 0.9023 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 7.342e-05/0.2713, allocations: 65.62 kB / 0.9024 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001797/0.2715, allocations: 187.6 kB / 0.9026 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2715, allocations: 0 / 0.9026 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.783e-06/0.2715, allocations: 0 / 0.9026 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.088e-06/0.2715, allocations: 0 / 0.9026 GB, free: 61.36 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007121/0.2722, allocations: 0.514 MB / 0.9031 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.2723, allocations: 8.031 kB / 0.9031 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.946e-05/0.2724, allocations: 46.55 kB / 0.9031 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.24e-05/0.2725, allocations: 31.8 kB / 0.9031 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.2727, allocations: 255.7 kB / 0.9034 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.2728, allocations: 19.98 kB / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.2728, allocations: 27.98 kB / 0.9034 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.2733, allocations: 259 kB / 0.9037 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.2733, allocations: 0 / 0.9037 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.2733, allocations: 8 kB / 0.9037 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.2733, allocations: 4 kB / 0.9037 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.2736, allocations: 107.8 kB / 0.9038 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003431/0.2739, allocations: 372.7 kB / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003437/0.2743, allocations: 242.6 kB / 0.9044 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.2743, allocations: 4.125 kB / 0.9044 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004455/0.2747, allocations: 284.3 kB / 0.9047 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.2748, allocations: 3.938 kB / 0.9047 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=24): time 0.000941/0.2757, allocations: 0.5245 MB / 0.9052 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.2758, allocations: 148.4 kB / 0.9053 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.193e-05/0.2759, allocations: 149.8 kB / 0.9055 GB, free: 58.1 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.2759, allocations: 45.95 kB / 0.9055 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.245e-05/0.276, allocations: 104.6 kB / 0.9056 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.276, allocations: 59.27 kB / 0.9057 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.452e-05/0.2761, allocations: 12 kB / 0.9057 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.941e-05/0.2761, allocations: 330.8 kB / 0.906 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.2764, allocations: 175.9 kB / 0.9062 GB, free: 57.37 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.2766, allocations: 215.3 kB / 0.9064 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002305/0.2768, allocations: 223.4 kB / 0.9066 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2769, allocations: 0 / 0.9066 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007982/0.2777, allocations: 0.7403 MB / 0.9073 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.516e-05/0.2777, allocations: 95.31 kB / 0.9074 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.2778, allocations: 4 kB / 0.9074 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.2778, allocations: 4 kB / 0.9074 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.2779, allocations: 19.98 kB / 0.9074 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.2779, allocations: 4 kB / 0.9074 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003868/0.2783, allocations: 79.77 kB / 0.9075 GB, free: 55.94 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.314e-05/0.2784, allocations: 23.98 kB / 0.9075 GB, free: 55.92 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition3,$whenCondition4,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.nexStaInd,occSchWee.nexStaInd,$PRE.occSchWee.nexStoInd,occSchWee.nexStoInd,$PRE.occSchWee.iPerSta,occSchWee.iPerSta,$PRE.occSchWee.iPerSto,occSchWee.iPerSto,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$whenCondition1,$whenCondition2,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.nexStaInd,occSchDay.nexStaInd,$PRE.occSchDay.nexStoInd,occSchDay.nexStoInd,$PRE.occSchDay.iPerSta,occSchDay.iPerSta,$PRE.occSchDay.iPerSto,occSchDay.iPerSto,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001929/0.2786, allocations: 160.4 kB / 0.9077 GB, free: 55.75 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.422e-05/0.2786, allocations: 27.73 kB / 0.9077 GB, free: 55.73 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.468e-05/0.2787, allocations: 20.67 kB / 0.9077 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.2787, allocations: 0 / 0.9077 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.2787, allocations: 4 kB / 0.9077 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.2787, allocations: 3.984 kB / 0.9077 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002182/0.2789, allocations: 257.4 kB / 0.908 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.279, allocations: 0 / 0.908 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.348e-05/0.279, allocations: 12 kB / 0.908 GB, free: 55.38 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.279, allocations: 8 kB / 0.908 GB, free: 55.38 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.2791, allocations: 11.97 kB / 0.908 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2791, allocations: 7.953 kB / 0.908 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2791, allocations: 0 / 0.908 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007008/0.2798, allocations: 0.4958 MB / 0.9085 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.2798, allocations: 92.86 kB / 0.9086 GB, free: 54.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.84e-05/0.2799, allocations: 23.92 kB / 0.9086 GB, free: 54.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.28, allocations: 19.98 kB / 0.9086 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.468e-05/0.2801, allocations: 15.97 kB / 0.9086 GB, free: 54.65 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/0.2801, allocations: 23.97 kB / 0.9087 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.55e-05/0.2802, allocations: 121 kB / 0.9088 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2802, allocations: 0 / 0.9088 GB, free: 54.51 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003352/0.2805, allocations: 75.92 kB / 0.9088 GB, free: 54.43 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition4,occSchWee.occupied,occSchWee.nexStaInd,occSchWee.nexStoInd,occSchWee.iPerSta,occSchWee.iPerSto,occSchWee.tOcc,occSchWee.tNonOcc,$whenCondition1,$whenCondition2,occSchDay.occupied,occSchDay.nexStaInd,occSchDay.nexStoInd,occSchDay.iPerSta,occSchDay.iPerSto,occSchDay.tOcc,occSchDay.tNonOcc) * Number of discrete states: 14 (occSchDay.tNonOcc,occSchDay.iPerSto,occSchDay.nexStoInd,occSchDay.occupied,occSchDay.tOcc,occSchDay.nexStaInd,occSchDay.iPerSta,occSchWee.tNonOcc,occSchWee.iPerSto,occSchWee.nexStoInd,occSchWee.occupied,occSchWee.tOcc,occSchWee.nexStaInd,occSchWee.iPerSta) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009021/0.2815, allocations: 1.29 MB / 0.9101 GB, free: 53.09 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0007051/0.2822, allocations: 0.6949 MB / 0.9108 GB, free: 52.38 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2822, allocations: 0 / 0.9108 GB, free: 52.38 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.2825, allocations: 168.7 kB / 0.9109 GB, free: 52.21 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001111/0.2826, allocations: 11.98 kB / 0.911 GB, free: 52.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.2845, allocations: 2.026 MB / 0.9129 GB, free: 50.09 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001586/0.2847, allocations: 0.7169 MB / 0.9136 GB, free: 49.35 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.92e-05/0.2847, allocations: 13.42 kB / 0.9137 GB, free: 49.34 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.586e-05/0.2848, allocations: 39.42 kB / 0.9137 GB, free: 49.3 MB / 0.6042 GB Notification: Performance of SimCode: time 4.01e-07/0.2848, allocations: 4 kB / 0.9137 GB, free: 49.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01467/0.2995, allocations: 4.65 MB / 0.9182 GB, free: 44.85 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002568/0.2998, allocations: 201.6 kB / 0.9184 GB, free: 44.6 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/1.953, allocations: 3.938 kB / 0.9184 GB, free: 44.6 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_maint.7.0.x_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)