Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_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.007093/0.007093, allocations: 95.36 kB / 15.73 MB, free: 6.039 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.001279/0.001279, allocations: 198.2 kB / 16.68 MB, free: 5.969 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.537/1.537, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.828/2.828, allocations: 390.3 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 60.47 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3575, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003341/0.3609, allocations: 1.421 MB / 1.089 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.3621, allocations: 0.4919 MB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.7e-05/0.3622, allocations: 4 kB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 9.002e-05/0.3623, allocations: 11.92 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.398e-05/0.3624, allocations: 7.875 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.3634, allocations: 233.4 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002675/0.3637, allocations: 147.7 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.512e-05/0.3637, allocations: 8 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.3639, allocations: 51.91 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.364, allocations: 51.81 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.494e-05/0.364, allocations: 12 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003475/0.3644, allocations: 159.8 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.539e-05/0.3645, allocations: 35.91 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.878e-05/0.3646, allocations: 59.7 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004664/0.365, allocations: 239.5 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3651, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.704e-06/0.3651, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.3651, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 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.0007583/0.3658, allocations: 454.7 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.3659, allocations: 12.03 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/0.366, allocations: 30.75 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.344e-05/0.366, allocations: 16.84 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.3663, allocations: 204.2 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.3664, allocations: 12.36 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.467e-05/0.3664, allocations: 12.38 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.3666, allocations: 87.89 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.3666, allocations: 3.938 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3667, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3667, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.416e-05/0.3668, allocations: 39.97 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000333/0.3671, allocations: 230.5 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.3673, allocations: 85.17 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.67e-05/0.3674, allocations: 61.75 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.3674, allocations: 0 / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003086/0.3677, allocations: 117 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.3677, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0004059/0.3681, allocations: 185.5 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.001e-05/0.3682, allocations: 89.09 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.3684, allocations: 151.2 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.3684, allocations: 33.7 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.369e-05/0.3685, allocations: 100.5 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.728e-05/0.3686, allocations: 39.67 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.3687, allocations: 53.7 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3688, allocations: 322.8 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.175e-05/0.3689, allocations: 43.98 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/0.3692, allocations: 207.3 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.3694, allocations: 97.64 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3694, allocations: 0 / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002722/0.3697, allocations: 165.4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3697, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/0.3697, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.3698, allocations: 3.984 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.3699, allocations: 8 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.3699, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003154/0.3702, allocations: 77.73 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.3702, allocations: 4 kB / 1.093 GB, free: 11.87 MB / 0.8575 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.0001399/0.3704, allocations: 133.8 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.763e-05/0.3704, allocations: 19.84 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.847e-05/0.3705, allocations: 12.72 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.3705, allocations: 4.094 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/0.3705, allocations: 3.984 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3705, allocations: 3.984 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002115/0.3707, allocations: 197.5 kB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3707, allocations: 0 / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.267e-05/0.3708, allocations: 11.98 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3708, allocations: 0 / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.3708, allocations: 4 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3708, allocations: 4 kB / 1.093 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3708, allocations: 0 / 1.093 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002635/0.3711, allocations: 189.7 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.458e-05/0.3711, allocations: 81.06 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.3712, allocations: 8 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.508e-05/0.3712, allocations: 3.984 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.3713, allocations: 4 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.3713, allocations: 15.88 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.946e-05/0.3714, allocations: 117.5 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3714, allocations: 0 / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003593/0.3718, allocations: 75.8 kB / 1.094 GB, free: 10.9 MB / 0.8575 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.0007902/0.3726, allocations: 0.7827 MB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003034/0.3729, allocations: 159.3 kB / 1.095 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3729, allocations: 4 kB / 1.095 GB, free: 9.914 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.583e-05/0.373, allocations: 43.97 kB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.3732, allocations: 8 kB / 1.095 GB, free: 9.863 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.3752, allocations: 1.723 MB / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.3756, allocations: 0.7078 MB / 1.097 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.646e-05/0.3756, allocations: 4.672 kB / 1.097 GB, free: 7.309 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.276e-05/0.3757, allocations: 35.42 kB / 1.097 GB, free: 7.273 MB / 0.8575 GB Notification: Performance of SimCode: time 5.91e-07/0.3757, allocations: 3.938 kB / 1.097 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.4027, allocations: 3.975 MB / 1.101 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.014/8.416, allocations: 8.047 kB / 1.101 GB, free: 3.414 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv --start-time -86400 --stop-time 1.2096e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 518.4 Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchDay.occupied from file Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! Error: Could not read variable occSchWee.occupied in file Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchWee.occupied from file Buildings_9_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]