Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_10_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.001351/0.00135, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001326, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.586/1.586, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.106/3.106, allocations: 437 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002399/0.002399, allocations: 64.03 kB / 0.8693 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9728/0.9752, allocations: 151.6 MB / 1.017 GB, free: 2.621 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003976/0.9793, allocations: 1.403 MB / 1.019 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.9804, allocations: 0.5021 MB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.733e-05/0.9805, allocations: 4 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.58e-05/0.9807, allocations: 7.922 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.491e-05/0.9807, allocations: 7.938 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009487/0.9817, allocations: 230.9 kB / 1.02 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002708/0.982, allocations: 147.7 kB / 1.02 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 6.051e-05/0.982, allocations: 11.98 kB / 1.02 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.915e-05/0.9822, allocations: 55.91 kB / 1.02 GB, free: 256 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.9823, allocations: 51.75 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.953e-05/0.9823, allocations: 8 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003467/0.9827, allocations: 163.8 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.9828, allocations: 32 kB / 1.02 GB, free: 16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.9829, allocations: 55.77 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005157/0.9834, allocations: 229.8 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.9835, allocations: 0 / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.044e-06/0.9835, allocations: 8 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.898e-06/0.9835, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 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.0008501/0.9843, allocations: 458.9 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.9844, allocations: 8.031 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.708e-05/0.9845, allocations: 30.75 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.703e-05/0.9846, allocations: 20.75 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.9849, allocations: 202.1 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.9849, allocations: 12.22 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.764e-05/0.9849, allocations: 20.36 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.9851, allocations: 79.95 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.9852, allocations: 3.938 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.9852, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.9852, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.324e-05/0.9853, allocations: 39.92 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003228/0.9856, allocations: 234.5 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001269/0.9858, allocations: 77.2 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.973e-05/0.9859, allocations: 61.83 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.9859, allocations: 0 / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003118/0.9862, allocations: 124.9 kB / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.9862, allocations: 0 / 1.022 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0004152/0.9866, allocations: 181.4 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.137e-05/0.9867, allocations: 89.11 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.9869, allocations: 150.9 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.798e-05/0.987, allocations: 41.62 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.845e-05/0.987, allocations: 100.5 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.797e-05/0.9871, allocations: 35.53 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.9872, allocations: 49.7 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.9874, allocations: 330.8 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.749e-05/0.9875, allocations: 43.97 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.9877, allocations: 200.3 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.9878, allocations: 97.58 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.9879, allocations: 0 / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000254/0.9881, allocations: 165.3 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.9881, allocations: 8 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/0.9882, allocations: 0 / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.9882, allocations: 4 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.655e-05/0.9883, allocations: 7.984 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.9883, allocations: 11.94 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002928/0.9886, allocations: 66.16 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.9886, allocations: 4 kB / 1.023 GB, free: 12.49 MB / 0.7794 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.000134/0.9888, allocations: 141.7 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.9888, allocations: 19.75 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.229e-05/0.9889, allocations: 12.72 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.9889, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.9889, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-06/0.9889, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.9891, allocations: 205.5 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.9891, allocations: 0 / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.544e-05/0.9891, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.9891, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.9892, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.633e-06/0.9892, allocations: 11.92 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.9892, allocations: 0 / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.9895, allocations: 181.7 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-05/0.9895, allocations: 85.02 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.9896, allocations: 0 / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.286e-05/0.9896, allocations: 12 kB / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.9897, allocations: 3.984 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-06/0.9897, allocations: 4 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.993e-05/0.9898, allocations: 117.1 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.11e-07/0.9898, allocations: 0 / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003417/0.9901, allocations: 79.92 kB / 1.024 GB, free: 11.52 MB / 0.7794 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.0007755/0.9909, allocations: 0.7771 MB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003466/0.9913, allocations: 171.3 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.9913, allocations: 0 / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.302e-05/0.9914, allocations: 51.91 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/0.9916, allocations: 8 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.9936, allocations: 1.703 MB / 1.027 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.994, allocations: 0.708 MB / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.583e-05/0.994, allocations: 4.672 kB / 1.027 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.668e-05/0.9941, allocations: 35.42 kB / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of SimCode: time 4.21e-07/0.9941, allocations: 0 / 1.027 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/1.02, allocations: 3.913 MB / 1.031 GB, free: 4.094 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.844/8.864, allocations: 18.56 kB / 1.031 GB, free: 4.078 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchDay.occupied from file Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! Error: Could not read variable occSchWee.occupied in file Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchWee.occupied from file Buildings_10_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]