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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002265/0.002265, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002974/0.002974, allocations: 214.4 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.367/3.367, allocations: 0.5107 GB / 0.8158 GB, free: 17.78 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002209/0.002209, allocations: 71.8 kB / 1.186 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4182/0.4204, allocations: 181.9 MB / 1.363 GB, free: 14.05 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002778/0.4231, allocations: 1.416 MB / 1.365 GB, free: 12.62 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009299/0.4241, allocations: 458.4 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.935e-05/0.4241, allocations: 4 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 7.484e-05/0.4242, allocations: 7.875 kB / 1.365 GB, free: 12.16 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.111e-05/0.4242, allocations: 15.91 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007942/0.425, allocations: 237.9 kB / 1.365 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.00023/0.4253, allocations: 151.7 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.685e-05/0.4253, allocations: 4 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.174e-05/0.4254, allocations: 55.91 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 9.433e-05/0.4255, allocations: 43.81 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.127e-05/0.4255, allocations: 8 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003288/0.4259, allocations: 187.7 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.693e-05/0.4259, allocations: 43.89 kB / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.109e-05/0.426, allocations: 35.86 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003511/0.4264, allocations: 247.5 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4264, allocations: 4 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.144e-06/0.4264, allocations: 0 / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.064e-06/0.4264, allocations: 0 / 1.366 GB, free: 11.15 MB / 1.061 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.0006164/0.427, allocations: 369.6 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.427, allocations: 12.03 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.311e-05/0.4271, allocations: 34.73 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.137e-05/0.4271, allocations: 12.89 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.4274, allocations: 159.8 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.4274, allocations: 12.38 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.4274, allocations: 8.375 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001781/0.4276, allocations: 79.95 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.4276, allocations: 3.938 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.4276, allocations: 3.938 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.4276, allocations: 0 / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.712e-05/0.4277, allocations: 43.91 kB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002499/0.4279, allocations: 185.6 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.4281, allocations: 73.19 kB / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.952e-05/0.4281, allocations: 53.81 kB / 1.367 GB, free: 9.973 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.4282, allocations: 0 / 1.367 GB, free: 9.973 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.4284, allocations: 120.9 kB / 1.367 GB, free: 9.836 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 4.068e-06/0.4284, allocations: 3.984 kB / 1.367 GB, free: 9.832 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0003736/0.4288, allocations: 181.5 kB / 1.367 GB, free: 9.648 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.4289, allocations: 89.09 kB / 1.368 GB, free: 9.543 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.429, allocations: 151.3 kB / 1.368 GB, free: 9.387 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/0.4291, allocations: 33.7 kB / 1.368 GB, free: 9.348 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.877e-05/0.4292, allocations: 108.4 kB / 1.368 GB, free: 9.234 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.873e-05/0.4292, allocations: 31.75 kB / 1.368 GB, free: 9.203 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.585e-05/0.4293, allocations: 57.69 kB / 1.368 GB, free: 9.141 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001565/0.4295, allocations: 322.8 kB / 1.368 GB, free: 8.816 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.709e-05/0.4295, allocations: 43.98 kB / 1.368 GB, free: 8.773 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004815/0.43, allocations: 0.6002 MB / 1.369 GB, free: 8.02 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.4302, allocations: 97.58 kB / 1.369 GB, free: 7.918 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4302, allocations: 0 / 1.369 GB, free: 7.918 MB / 1.061 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002577/0.4304, allocations: 173.4 kB / 1.369 GB, free: 7.742 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.4304, allocations: 4 kB / 1.369 GB, free: 7.738 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.4305, allocations: 4 kB / 1.369 GB, free: 7.734 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.4305, allocations: 0 / 1.369 GB, free: 7.734 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.768e-05/0.4306, allocations: 12 kB / 1.369 GB, free: 7.723 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.4306, allocations: 7.922 kB / 1.369 GB, free: 7.715 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.4309, allocations: 74.05 kB / 1.369 GB, free: 7.645 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.4309, allocations: 8 kB / 1.369 GB, free: 7.637 MB / 1.061 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.0001495/0.431, allocations: 137.8 kB / 1.369 GB, free: 7.492 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.431, allocations: 15.84 kB / 1.369 GB, free: 7.477 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.28e-05/0.4311, allocations: 12.72 kB / 1.369 GB, free: 7.457 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4311, allocations: 0 / 1.369 GB, free: 7.457 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.4311, allocations: 4 kB / 1.369 GB, free: 7.453 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.4311, allocations: 0 / 1.369 GB, free: 7.453 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001814/0.4313, allocations: 152.7 kB / 1.37 GB, free: 7.262 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.4313, allocations: 3.984 kB / 1.37 GB, free: 7.258 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.648e-05/0.4313, allocations: 12 kB / 1.37 GB, free: 7.246 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.4313, allocations: 4 kB / 1.37 GB, free: 7.242 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.4313, allocations: 0 / 1.37 GB, free: 7.242 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/0.4313, allocations: 7.938 kB / 1.37 GB, free: 7.234 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4313, allocations: 0 / 1.37 GB, free: 7.234 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.4316, allocations: 184.2 kB / 1.37 GB, free: 7.035 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.179e-05/0.4316, allocations: 11.95 kB / 1.37 GB, free: 7.023 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.4316, allocations: 4 kB / 1.37 GB, free: 7.02 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.062e-05/0.4317, allocations: 3.984 kB / 1.37 GB, free: 7.016 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.528e-05/0.4317, allocations: 7.984 kB / 1.37 GB, free: 7.008 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.4317, allocations: 8 kB / 1.37 GB, free: 7 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.415e-05/0.4318, allocations: 121.9 kB / 1.37 GB, free: 6.883 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4318, allocations: 0 / 1.37 GB, free: 6.883 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003364/0.4322, allocations: 71.81 kB / 1.37 GB, free: 6.812 MB / 1.061 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.0007403/0.4329, allocations: 0.7875 MB / 1.371 GB, free: 5.996 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000278/0.4332, allocations: 155.3 kB / 1.371 GB, free: 5.832 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4332, allocations: 0 / 1.371 GB, free: 5.832 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 7.215e-05/0.4333, allocations: 39.92 kB / 1.371 GB, free: 5.793 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001696/0.4334, allocations: 9.719 kB / 1.371 GB, free: 5.785 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.4354, allocations: 1.707 MB / 1.373 GB, free: 3.988 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.232e-05/0.4355, allocations: 85.7 kB / 1.373 GB, free: 3.879 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.745e-05/0.4355, allocations: 12.94 kB / 1.373 GB, free: 3.863 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.969e-05/0.4356, allocations: 31.42 kB / 1.373 GB, free: 3.836 MB / 1.061 GB Notification: Performance of SimCode: time 3.8e-07/0.4356, allocations: 0 / 1.373 GB, free: 3.836 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03222/0.4678, allocations: 4.712 MB / 1.377 GB, free: 15.3 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.82, allocations: 5.312 kB / 1.377 GB, free: 15.3 MB / 1.076 GB " [Timeout remaining time 288] (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/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 --stepSize=518.4 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.16614351188764]