Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00179/0.00179, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002407/0.002407, allocations: 213.8 kB / 22.24 MB, free: 5.242 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.573/1.573, 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 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.346/3.346, allocations: 0.4892 GB / 0.7943 GB, free: 35.68 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_12_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.003776/0.003776, allocations: 59.81 kB / 1.153 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4161, allocations: 176.1 MB / 1.325 GB, free: 2.426 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003275/0.4194, allocations: 1.437 MB / 1.326 GB, free: 0.9844 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.4205, allocations: 450.4 kB / 1.327 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.67e-05/0.4206, allocations: 0 / 1.327 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.4207, allocations: 11.92 kB / 1.327 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.827e-05/0.4208, allocations: 7.922 kB / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009472/0.4217, allocations: 250.2 kB / 1.327 GB, free: 288 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.422, allocations: 151.7 kB / 1.327 GB, free: 136 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 6.542e-05/0.422, allocations: 4 kB / 1.327 GB, free: 132 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.681e-05/0.4221, allocations: 55.91 kB / 1.327 GB, free: 76 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.953e-05/0.4222, allocations: 35.84 kB / 1.327 GB, free: 40 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.195e-05/0.4222, allocations: 8 kB / 1.327 GB, free: 32 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003652/0.4226, allocations: 191.8 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.992e-05/0.4227, allocations: 35.89 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.588e-05/0.4228, allocations: 39.86 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003711/0.4231, allocations: 247.5 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4231, allocations: 0 / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.783e-06/0.4231, allocations: 0 / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.4232, allocations: 0 / 1.328 GB, free: 15.53 MB / 1.029 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.0006778/0.4238, allocations: 375.4 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.4239, allocations: 15.97 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.947e-05/0.4239, allocations: 30.75 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.824e-05/0.424, allocations: 20.84 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.4243, allocations: 146.3 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.4243, allocations: 12.38 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.777e-05/0.4243, allocations: 12.38 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.4245, allocations: 79.95 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.4245, allocations: 7.875 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.4245, allocations: 0 / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.4245, allocations: 3.984 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.781e-05/0.4246, allocations: 39.97 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002905/0.4249, allocations: 185.7 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.4251, allocations: 73.19 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.698e-05/0.4252, allocations: 53.75 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.4252, allocations: 0 / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003021/0.4255, allocations: 120.9 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/0.4255, allocations: 3.938 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0004426/0.4259, allocations: 181.5 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.4261, allocations: 93.02 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.4263, allocations: 151.7 kB / 1.329 GB, free: 13.76 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.875e-05/0.4263, allocations: 33.7 kB / 1.329 GB, free: 13.72 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.4264, allocations: 104.5 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.042e-05/0.4265, allocations: 39.69 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.4266, allocations: 53.69 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002363/0.4269, allocations: 322.8 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.996e-05/0.4269, allocations: 47.98 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006994/0.4276, allocations: 0.6016 MB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.4278, allocations: 97.58 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.4278, allocations: 0 / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002928/0.4281, allocations: 161.4 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.4282, allocations: 11.94 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.121e-05/0.4282, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.4282, allocations: 4 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.4283, allocations: 4 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.4283, allocations: 4 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.4287, allocations: 87.72 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.4287, allocations: 8 kB / 1.331 GB, free: 12.01 MB / 1.029 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.000225/0.4289, allocations: 140.8 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.4289, allocations: 11.89 kB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.799e-05/0.429, allocations: 16.7 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.429, allocations: 0 / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.429, allocations: 0 / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.429, allocations: 4 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.4292, allocations: 160.6 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.4292, allocations: 0 / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.947e-05/0.4293, allocations: 7.984 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.4293, allocations: 4 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.4293, allocations: 0 / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4293, allocations: 4 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4293, allocations: 4 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.4296, allocations: 181.9 kB / 1.331 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.22e-05/0.4296, allocations: 19.89 kB / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.4297, allocations: 4 kB / 1.331 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.164e-05/0.4297, allocations: 3.984 kB / 1.331 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.557e-05/0.4298, allocations: 4 kB / 1.331 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.4298, allocations: 11.94 kB / 1.331 GB, free: 11.36 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001109/0.4299, allocations: 113 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4299, allocations: 0 / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004055/0.4303, allocations: 75.8 kB / 1.332 GB, free: 11.18 MB / 1.029 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.0008721/0.4312, allocations: 0.7855 MB / 1.332 GB, free: 10.36 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003243/0.4315, allocations: 155.3 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4315, allocations: 0 / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.509e-05/0.4316, allocations: 35.98 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001901/0.4318, allocations: 8 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.4338, allocations: 1.725 MB / 1.334 GB, free: 8.336 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.241e-05/0.4339, allocations: 92.94 kB / 1.334 GB, free: 8.219 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.411e-05/0.4339, allocations: 8.672 kB / 1.334 GB, free: 8.211 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.499e-05/0.434, allocations: 31.42 kB / 1.334 GB, free: 8.18 MB / 1.029 GB Notification: Performance of SimCode: time 8.51e-07/0.434, allocations: 0 / 1.334 GB, free: 8.18 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03361/0.4676, allocations: 4.709 MB / 1.339 GB, free: 3.645 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.94, allocations: 2.406 kB / 1.339 GB, free: 3.645 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --stepSize=518.4 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.165693115908653]