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.001935/0.001935, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.00243/0.00243, allocations: 218.5 kB / 22.25 MB, free: 5.105 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.523/1.523, allocations: 230.6 MB / 256 MB, free: 7.805 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.351/3.351, allocations: 0.49 GB / 0.7951 GB, free: 35.52 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.002082/0.002082, allocations: 71.95 kB / 1.154 GB, free: 25.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3993, allocations: 176.1 MB / 1.326 GB, free: 1.551 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003117/0.4025, allocations: 1.438 MB / 1.327 GB, free: 108 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001072/0.4035, allocations: 454.5 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.41e-05/0.4036, allocations: 0 / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 8.488e-05/0.4037, allocations: 7.938 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.042e-05/0.4037, allocations: 15.86 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00088/0.4046, allocations: 242.4 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002804/0.4049, allocations: 147.7 kB / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.45e-05/0.4049, allocations: 4 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.244e-05/0.405, allocations: 51.91 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.4052, allocations: 51.81 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.937e-05/0.4052, allocations: 8 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003593/0.4055, allocations: 195.8 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.192e-05/0.4056, allocations: 35.91 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.263e-05/0.4057, allocations: 39.86 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003902/0.4061, allocations: 243.5 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4061, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.385e-06/0.4061, allocations: 3.938 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.4061, allocations: 0 / 1.329 GB, free: 14.64 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.0007038/0.4068, allocations: 377.5 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.4069, allocations: 8.031 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.081e-05/0.4069, allocations: 38.73 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.473e-05/0.407, allocations: 24.83 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.4073, allocations: 150.3 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.4073, allocations: 8.375 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.4073, allocations: 12.38 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.4075, allocations: 87.89 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.4075, allocations: 3.938 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.4075, allocations: 0 / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.4075, allocations: 0 / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.426e-05/0.4076, allocations: 39.97 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002752/0.4079, allocations: 181.7 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.408, allocations: 77.19 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.913e-05/0.4081, allocations: 49.81 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.4081, allocations: 0 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.4084, allocations: 113 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.4084, allocations: 0 / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0004204/0.4088, allocations: 193.4 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.132e-05/0.4089, allocations: 85.11 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.4091, allocations: 151.7 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.4091, allocations: 33.7 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.589e-05/0.4092, allocations: 108.4 kB / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.847e-05/0.4093, allocations: 35.7 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.459e-05/0.4094, allocations: 53.69 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4095, allocations: 326.8 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.51e-05/0.4096, allocations: 39.98 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004752/0.4101, allocations: 0.6058 MB / 1.331 GB, free: 11.5 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.4102, allocations: 101.6 kB / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4102, allocations: 0 / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002543/0.4105, allocations: 165.4 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.4105, allocations: 8 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/0.4105, allocations: 0 / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.4105, allocations: 8 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.121e-05/0.4106, allocations: 4 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.4106, allocations: 4.625 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.4109, allocations: 83.72 kB / 1.332 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.4109, allocations: 4 kB / 1.332 GB, free: 11.12 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.0001404/0.4111, allocations: 135 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.528e-05/0.4111, allocations: 19.97 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.89e-05/0.4111, allocations: 20.64 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.4111, allocations: 0 / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4111, allocations: 0 / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.768e-06/0.4111, allocations: 0 / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.4113, allocations: 160.6 kB / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4113, allocations: 0 / 1.332 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.403e-05/0.4113, allocations: 11.98 kB / 1.332 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.4113, allocations: 4 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.4113, allocations: 0 / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4113, allocations: 0 / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4113, allocations: 0 / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/0.4116, allocations: 193.8 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.561e-05/0.4116, allocations: 7.953 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.4116, allocations: 8 kB / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.216e-05/0.4117, allocations: 7.984 kB / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.686e-05/0.4117, allocations: 4 kB / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.4117, allocations: 3.984 kB / 1.332 GB, free: 10.47 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.145e-05/0.4118, allocations: 124.8 kB / 1.332 GB, free: 10.35 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4118, allocations: 0 / 1.332 GB, free: 10.35 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003244/0.4121, allocations: 75.81 kB / 1.332 GB, free: 10.28 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.0007419/0.4129, allocations: 0.7754 MB / 1.333 GB, free: 9.473 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002914/0.4132, allocations: 162.2 kB / 1.333 GB, free: 9.305 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4132, allocations: 0 / 1.333 GB, free: 9.305 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.804e-05/0.4132, allocations: 35.98 kB / 1.333 GB, free: 9.27 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.4134, allocations: 5.562 kB / 1.333 GB, free: 9.266 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.4153, allocations: 1.732 MB / 1.335 GB, free: 7.438 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.79e-05/0.4154, allocations: 88.94 kB / 1.335 GB, free: 7.324 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.388e-05/0.4155, allocations: 8.672 kB / 1.335 GB, free: 7.316 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.4e-05/0.4155, allocations: 27.42 kB / 1.335 GB, free: 7.289 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.4155, allocations: 0 / 1.335 GB, free: 7.289 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03296/0.4485, allocations: 4.729 MB / 1.34 GB, free: 2.727 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.7, allocations: 12.78 kB / 1.34 GB, free: 2.719 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: 18.818134617991745]