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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.004722/0.004722, allocations: 99.42 kB / 15.73 MB, free: 6.445 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.001302/0.001302, allocations: 195.1 kB / 16.67 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.931/2.931, allocations: 482.4 MB / 0.7548 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 59.91 kB / 1.083 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2911, allocations: 162.2 MB / 1.241 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002394/0.2935, allocations: 1.418 MB / 1.243 GB, free: 8.816 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008683/0.2944, allocations: 498.3 kB / 1.243 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.819e-05/0.2944, allocations: 0 / 1.243 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 6.879e-05/0.2945, allocations: 7.922 kB / 1.243 GB, free: 8.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.916e-05/0.2945, allocations: 11.88 kB / 1.243 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006832/0.2952, allocations: 243.1 kB / 1.244 GB, free: 8.074 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.2954, allocations: 147.7 kB / 1.244 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.954e-05/0.2955, allocations: 7.984 kB / 1.244 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.059e-05/0.2956, allocations: 55.91 kB / 1.244 GB, free: 7.867 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.129e-05/0.2957, allocations: 43.83 kB / 1.244 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.2957, allocations: 8 kB / 1.244 GB, free: 7.816 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002653/0.296, allocations: 171.8 kB / 1.244 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.109e-05/0.296, allocations: 35.91 kB / 1.244 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.743e-05/0.2961, allocations: 47.8 kB / 1.244 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003167/0.2965, allocations: 235.3 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2965, allocations: 3.938 kB / 1.244 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2965, allocations: 7.875 kB / 1.244 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.2965, allocations: 0 / 1.244 GB, free: 7.324 MB / 0.9981 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.0005643/0.297, allocations: 454.7 kB / 1.245 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2971, allocations: 8.031 kB / 1.245 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.882e-05/0.2971, allocations: 34.75 kB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.699e-05/0.2972, allocations: 16.88 kB / 1.245 GB, free: 6.762 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/0.2974, allocations: 214 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.2974, allocations: 8.375 kB / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.2975, allocations: 12.38 kB / 1.245 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001541/0.2976, allocations: 83.89 kB / 1.245 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.2976, allocations: 3.938 kB / 1.245 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.2976, allocations: 0 / 1.245 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2977, allocations: 4 kB / 1.245 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.637e-05/0.2977, allocations: 35.97 kB / 1.245 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002521/0.298, allocations: 238.5 kB / 1.245 GB, free: 6.074 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.2981, allocations: 81.19 kB / 1.245 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.899e-05/0.2982, allocations: 53.81 kB / 1.245 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.2982, allocations: 4 kB / 1.245 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.2984, allocations: 120.9 kB / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=14): time 2.996e-06/0.2984, allocations: 3.984 kB / 1.246 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.0003417/0.2988, allocations: 181.6 kB / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/0.2989, allocations: 89.05 kB / 1.246 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.299, allocations: 151.5 kB / 1.246 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.299, allocations: 37.7 kB / 1.246 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.127e-05/0.2991, allocations: 100.5 kB / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.834e-05/0.2992, allocations: 35.75 kB / 1.246 GB, free: 5.145 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.08e-05/0.2993, allocations: 49.69 kB / 1.246 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.2994, allocations: 326.8 kB / 1.247 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.306e-05/0.2995, allocations: 39.98 kB / 1.247 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.2997, allocations: 195.4 kB / 1.247 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.2999, allocations: 101.6 kB / 1.247 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.2999, allocations: 0 / 1.247 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002472/0.3001, allocations: 169.4 kB / 1.247 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.3002, allocations: 7.984 kB / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/0.3002, allocations: 7.938 kB / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.899e-06/0.3002, allocations: 4 kB / 1.247 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.805e-05/0.3003, allocations: 8 kB / 1.247 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.3003, allocations: 0 / 1.247 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.3006, allocations: 75.8 kB / 1.247 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.3006, allocations: 4 kB / 1.247 GB, free: 4.094 MB / 0.9981 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.000121/0.3007, allocations: 142.2 kB / 1.247 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.226e-05/0.3008, allocations: 11.89 kB / 1.247 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.177e-05/0.3008, allocations: 20.64 kB / 1.247 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.3008, allocations: 0 / 1.247 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.3008, allocations: 0 / 1.247 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.3008, allocations: 4 kB / 1.247 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.301, allocations: 205.5 kB / 1.247 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.301, allocations: 0 / 1.247 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.781e-05/0.301, allocations: 12 kB / 1.247 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.301, allocations: 0 / 1.247 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.3011, allocations: 0 / 1.247 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3011, allocations: 0 / 1.247 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3011, allocations: 4.625 kB / 1.247 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002504/0.3013, allocations: 185.3 kB / 1.248 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.093e-05/0.3014, allocations: 93.02 kB / 1.248 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.3014, allocations: 7.984 kB / 1.248 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.147e-05/0.3015, allocations: 4 kB / 1.248 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.085e-05/0.3015, allocations: 4 kB / 1.248 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.779e-06/0.3015, allocations: 7.984 kB / 1.248 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.326e-05/0.3016, allocations: 113.5 kB / 1.248 GB, free: 3.199 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3016, allocations: 0 / 1.248 GB, free: 3.199 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003006/0.3019, allocations: 71.86 kB / 1.248 GB, free: 3.129 MB / 0.9981 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.000667/0.3026, allocations: 0.7848 MB / 1.249 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002578/0.3029, allocations: 167.2 kB / 1.249 GB, free: 2.137 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3029, allocations: 0 / 1.249 GB, free: 2.137 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 7.302e-05/0.3029, allocations: 43.98 kB / 1.249 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.3031, allocations: 13.72 kB / 1.249 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.3049, allocations: 1.711 MB / 1.251 GB, free: 284 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5135/0.8184, allocations: 0.6975 MB / 1.251 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.744e-05/0.8185, allocations: 11.14 kB / 1.251 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.125e-05/0.8185, allocations: 29.64 kB / 1.251 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.132e-06/0.8186, allocations: 1.406 kB / 1.251 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02462/0.8432, allocations: 3.971 MB / 1.255 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.696/8.539, allocations: 8.078 kB / 1.255 GB, free: 14.07 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv --start-time -86400 --stop-time 1.2096e+06 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 518.4 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[561]=1209600.000000 File[1]=-86400.000000 Error: Could not read variable occSchDay.occupied in file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchDay.occupied from file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! Error: Could not read variable occSchWee.occupied in file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchWee.occupied from file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! " Variables in the reference:time,occSchDay.tNexNonOcc,occSchWee.tNexNonOcc,occSchDay.occupied,occSchWee.occupied Variables in the result:time,occSchDay.tNexNonOcc,occSchDay.tNexOcc,occSchWee.tNexNonOcc,occSchWee.tNexOcc,occSchDay.occupancy[1]