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.00759/0.00759, allocations: 100.7 kB / 15.73 MB, free: 6.016 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.001693/0.001693, allocations: 185.8 kB / 16.67 MB, free: 5.934 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.548/2.548, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 67.89 kB / 1.018 GB, free: 9.926 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.37/1.372, allocations: 151.6 MB / 1.166 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.004466/1.377, allocations: 1.424 MB / 1.168 GB, free: 2.363 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001257/1.378, allocations: 0.4968 MB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.161e-05/1.378, allocations: 0 / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001371/1.378, allocations: 3.938 kB / 1.168 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.29e-05/1.379, allocations: 15.92 kB / 1.168 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001018/1.38, allocations: 226 kB / 1.168 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003112/1.38, allocations: 155.7 kB / 1.168 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.164e-05/1.38, allocations: 7.984 kB / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.893e-05/1.38, allocations: 51.91 kB / 1.168 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/1.38, allocations: 39.83 kB / 1.168 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.205e-05/1.38, allocations: 12 kB / 1.168 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003378/1.381, allocations: 175.8 kB / 1.169 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.000106/1.381, allocations: 31.91 kB / 1.169 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001079/1.381, allocations: 51.78 kB / 1.169 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000427/1.381, allocations: 235 kB / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/1.381, allocations: 0 / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of FrontEnd: time 5.571e-06/1.381, allocations: 0 / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.131e-05/1.381, allocations: 3.938 kB / 1.169 GB, free: 0.8828 MB / 0.8887 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.0008394/1.382, allocations: 458.6 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 7.014e-05/1.382, allocations: 12.92 kB / 1.169 GB, free: 380 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.428e-05/1.382, allocations: 34.75 kB / 1.169 GB, free: 336 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.835e-05/1.382, allocations: 8.891 kB / 1.169 GB, free: 328 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/1.383, allocations: 225.8 kB / 1.17 GB, free: 64 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/1.383, allocations: 8.375 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.183e-05/1.383, allocations: 8.375 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002271/1.383, allocations: 80.03 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/1.383, allocations: 3.938 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/1.383, allocations: 4 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/1.383, allocations: 0 / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/1.383, allocations: 43.91 kB / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003316/1.383, allocations: 230.5 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001418/1.384, allocations: 77.23 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.523e-05/1.384, allocations: 53.81 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/1.384, allocations: 4 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003215/1.384, allocations: 121 kB / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 3.837e-06/1.384, allocations: 0 / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0004162/1.385, allocations: 189.4 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.065e-05/1.385, allocations: 89.09 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001757/1.385, allocations: 156.2 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/1.385, allocations: 33.7 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.56e-05/1.385, allocations: 100.5 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.761e-05/1.385, allocations: 31.73 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.294e-05/1.385, allocations: 53.7 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001404/1.385, allocations: 326.8 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.269e-05/1.385, allocations: 39.98 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/1.386, allocations: 205 kB / 1.171 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001469/1.386, allocations: 97.58 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.386, allocations: 4 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002406/1.386, allocations: 161.5 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/1.386, allocations: 8 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.342e-05/1.386, allocations: 4 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/1.386, allocations: 0 / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.478e-05/1.386, allocations: 15.92 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/1.386, allocations: 3.938 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/1.386, allocations: 75.8 kB / 1.172 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/1.386, allocations: 4 kB / 1.172 GB, free: 13.64 MB / 0.9044 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.0001339/1.387, allocations: 141.9 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.95e-05/1.387, allocations: 11.89 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.696e-05/1.387, allocations: 20.72 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/1.387, allocations: 0 / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/1.387, allocations: 0 / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/1.387, allocations: 3.984 kB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/1.387, allocations: 201.5 kB / 1.172 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/1.387, allocations: 0 / 1.172 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.179e-05/1.387, allocations: 11.92 kB / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/1.387, allocations: 4 kB / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/1.387, allocations: 0 / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/1.387, allocations: 3.938 kB / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/1.387, allocations: 0 / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002368/1.387, allocations: 187.6 kB / 1.172 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.843e-05/1.387, allocations: 89.02 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/1.387, allocations: 4 kB / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.902e-05/1.387, allocations: 7.984 kB / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.034e-05/1.387, allocations: 4 kB / 1.172 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/1.387, allocations: 0 / 1.172 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.156e-05/1.387, allocations: 119.2 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/1.387, allocations: 0 / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003014/1.388, allocations: 75.86 kB / 1.173 GB, free: 12.68 MB / 0.9044 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.0006799/1.388, allocations: 0.7769 MB / 1.173 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002802/1.389, allocations: 167.3 kB / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.389, allocations: 0 / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.761e-05/1.389, allocations: 47.92 kB / 1.174 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001724/1.389, allocations: 8 kB / 1.174 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/1.391, allocations: 1.711 MB / 1.175 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/1.391, allocations: 0.7041 MB / 1.176 GB, free: 9.109 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.414e-05/1.391, allocations: 12.66 kB / 1.176 GB, free: 9.094 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.369e-05/1.391, allocations: 31.42 kB / 1.176 GB, free: 9.062 MB / 0.9044 GB Notification: Performance of SimCode: time 4.248e-06/1.391, allocations: 0 / 1.176 GB, free: 9.062 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/1.413, allocations: 3.972 MB / 1.18 GB, free: 5.219 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.263/9.676, allocations: 4.578 kB / 1.18 GB, free: 5.215 MB / 0.9044 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]