Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_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.0008096/0.0008096, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001083/0.001083, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 223.2 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.509/2.509, allocations: 409.4 MB / 0.684 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003401, allocations: 8 kB / 0.8378 GB, free: 6.496 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8674/0.8677, allocations: 146.8 MB / 0.9811 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001475/0.8693, allocations: 1.122 MB / 0.9822 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008004/0.8701, allocations: 469.1 kB / 0.9827 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.075e-05/0.8701, allocations: 0 / 0.9827 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 5.651e-05/0.8702, allocations: 4 kB / 0.9827 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.066e-05/0.8703, allocations: 11.91 kB / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006009/0.8709, allocations: 198.9 kB / 0.9829 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.8711, allocations: 119.8 kB / 0.983 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.093e-05/0.8711, allocations: 4 kB / 0.983 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.605e-05/0.8712, allocations: 63.77 kB / 0.9831 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.518e-05/0.8713, allocations: 39.89 kB / 0.9831 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.8713, allocations: 4 kB / 0.9831 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.8715, allocations: 147.8 kB / 0.9832 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.269e-05/0.8716, allocations: 35.89 kB / 0.9833 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.261e-05/0.8717, allocations: 41.64 kB / 0.9833 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.8719, allocations: 166 kB / 0.9835 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.8719, allocations: 0 / 0.9835 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8719, allocations: 0 / 0.9835 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.027e-06/0.8719, allocations: 4 kB / 0.9835 GB, free: 3.84 MB / 0.7325 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.0004838/0.8724, allocations: 426.8 kB / 0.9839 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.8724, allocations: 8.031 kB / 0.9839 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.583e-05/0.8725, allocations: 38.56 kB / 0.9839 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.807e-05/0.8725, allocations: 11.91 kB / 0.9839 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.8727, allocations: 206.8 kB / 0.9841 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.8727, allocations: 4 kB / 0.9841 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.8728, allocations: 19.95 kB / 0.9842 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.8729, allocations: 83.33 kB / 0.9842 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.873, allocations: 0 / 0.9842 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.873, allocations: 0 / 0.9842 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.873, allocations: 4 kB / 0.9842 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.445e-05/0.8731, allocations: 39.91 kB / 0.9843 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002161/0.8733, allocations: 222.6 kB / 0.9845 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.8734, allocations: 85.23 kB / 0.9846 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.88e-05/0.8735, allocations: 53.81 kB / 0.9846 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.8735, allocations: 7.891 kB / 0.9846 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.8737, allocations: 113.1 kB / 0.9847 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.8737, allocations: 0 / 0.9847 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0003205/0.874, allocations: 185.9 kB / 0.9849 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.8741, allocations: 89.09 kB / 0.985 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.8742, allocations: 148.4 kB / 0.9851 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.8742, allocations: 33.7 kB / 0.9852 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.011e-05/0.8743, allocations: 100.5 kB / 0.9853 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.275e-05/0.8743, allocations: 39.55 kB / 0.9853 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.652e-06/0.8744, allocations: 4 kB / 0.9853 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.995e-05/0.8745, allocations: 326.8 kB / 0.9856 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.569e-05/0.8745, allocations: 44.16 kB / 0.9857 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.8747, allocations: 201.4 kB / 0.9859 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.599e-05/0.8748, allocations: 59.97 kB / 0.9859 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.8748, allocations: 0 / 0.9859 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002175/0.8751, allocations: 173.3 kB / 0.9861 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.8751, allocations: 8 kB / 0.9861 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.048e-05/0.8751, allocations: 8.094 kB / 0.9861 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.8751, allocations: 0 / 0.9861 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.951e-05/0.8752, allocations: 8 kB / 0.9861 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.8752, allocations: 3.984 kB / 0.9861 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002718/0.8755, allocations: 95.73 kB / 0.9862 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.8755, allocations: 4 kB / 0.9862 GB, free: 0.7227 MB / 0.7325 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 ($whenCondition2,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$PRE.occSchWee.tNext,occSchWee.tNext,$whenCondition1,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$PRE.occSchDay.tNext,occSchDay.tNext) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.8756, allocations: 137.7 kB / 0.9863 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.8756, allocations: 11.86 kB / 0.9863 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.083e-05/0.8757, allocations: 20.7 kB / 0.9864 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.8757, allocations: 4 kB / 0.9864 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.8757, allocations: 0 / 0.9864 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.8757, allocations: 0 / 0.9864 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.8758, allocations: 197.5 kB / 0.9866 GB, free: 304 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.8759, allocations: 0 / 0.9866 GB, free: 304 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.407e-05/0.8759, allocations: 8 kB / 0.9866 GB, free: 296 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.8759, allocations: 7.953 kB / 0.9866 GB, free: 288 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.8759, allocations: 4 kB / 0.9866 GB, free: 284 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.8759, allocations: 4 kB / 0.9866 GB, free: 280 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.8759, allocations: 3.938 kB / 0.9866 GB, free: 276 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001975/0.8761, allocations: 173.8 kB / 0.9868 GB, free: 80 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.358e-05/0.8762, allocations: 89 kB / 0.9868 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.8762, allocations: 11.95 kB / 0.9868 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.91e-05/0.8763, allocations: 0 / 0.9868 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.8763, allocations: 11.98 kB / 0.9869 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.8763, allocations: 4 kB / 0.9869 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 7.166e-05/0.8764, allocations: 116.5 kB / 0.987 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8764, allocations: 0 / 0.987 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002816/0.8767, allocations: 71.94 kB / 0.987 GB, free: 15.76 MB / 0.7481 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 (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.0005643/0.8773, allocations: 0.7805 MB / 0.9878 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002336/0.8775, allocations: 167.3 kB / 0.988 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.8775, allocations: 3.938 kB / 0.988 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 6.319e-05/0.8776, allocations: 43.98 kB / 0.988 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001595/0.8778, allocations: 4 kB / 0.988 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.8788, allocations: 0.8082 MB / 0.9888 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.8791, allocations: 0.7083 MB / 0.9895 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.521e-05/0.8791, allocations: 8.859 kB / 0.9895 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.405e-05/0.8792, allocations: 27.42 kB / 0.9895 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of SimCode: time 2.8e-07/0.8792, allocations: 0 / 0.9895 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01345/0.8926, allocations: 3.636 MB / 0.9931 GB, free: 9.625 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001619/0.8928, allocations: 192.6 kB / 0.9933 GB, free: 9.387 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.644, allocations: 4 kB / 0.9933 GB, free: 9.383 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat does not exist to compare? outputFormat=mat