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.01038/0.01038, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.002164/0.002164, allocations: 191.2 kB / 16.67 MB, free: 5.93 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.521/2.521, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001509, allocations: 63.91 kB / 0.9504 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.138/1.139, allocations: 140.4 MB / 1.087 GB, free: 5.242 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002697/1.142, allocations: 1.412 MB / 1.089 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001086/1.143, allocations: 0.5012 MB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.155e-05/1.143, allocations: 5.031 kB / 1.089 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.973e-05/1.143, allocations: 8.797 kB / 1.089 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.933e-05/1.143, allocations: 6.906 kB / 1.089 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009368/1.144, allocations: 236 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002815/1.145, allocations: 150.7 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.81e-05/1.145, allocations: 3.156 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.807e-05/1.145, allocations: 53.98 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/1.145, allocations: 48.28 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/1.145, allocations: 10.34 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003656/1.145, allocations: 164.4 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001102/1.145, allocations: 34.19 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000117/1.146, allocations: 62.42 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004935/1.146, allocations: 226.1 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/1.146, allocations: 0 / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.643e-06/1.146, allocations: 0 / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.035e-06/1.146, allocations: 4 kB / 1.09 GB, free: 3.531 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.000673/1.147, allocations: 451 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.916e-05/1.147, allocations: 10.55 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.563e-05/1.147, allocations: 33.09 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.534e-05/1.147, allocations: 13.86 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/1.147, allocations: 210.1 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/1.147, allocations: 13.62 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.643e-05/1.147, allocations: 10.14 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/1.148, allocations: 88 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/1.148, allocations: 3.938 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/1.148, allocations: 1.125 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/1.148, allocations: 1.469 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/1.148, allocations: 44.08 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002868/1.148, allocations: 228.4 kB / 1.091 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/1.148, allocations: 83.67 kB / 1.091 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.778e-05/1.148, allocations: 54.48 kB / 1.091 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/1.148, allocations: 4.734 kB / 1.091 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/1.149, allocations: 111 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 2.014e-06/1.149, allocations: 4 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0004265/1.149, allocations: 188.9 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/1.149, allocations: 83.39 kB / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/1.149, allocations: 149.7 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/1.149, allocations: 35.05 kB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/1.149, allocations: 104.9 kB / 1.092 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.442e-05/1.149, allocations: 36.64 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.106e-05/1.15, allocations: 53.8 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.423e-05/1.15, allocations: 327.2 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.01e-05/1.15, allocations: 45.23 kB / 1.093 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002403/1.15, allocations: 197.3 kB / 1.093 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/1.15, allocations: 98.41 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.15, allocations: 0 / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002662/1.15, allocations: 165 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/1.15, allocations: 5.062 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.898e-05/1.15, allocations: 3.359 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/1.15, allocations: 1.375 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.185e-05/1.151, allocations: 11.73 kB / 1.093 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/1.151, allocations: 2.453 kB / 1.093 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/1.151, allocations: 77.92 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/1.151, allocations: 4.047 kB / 1.093 GB, free: 1.215 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.0001255/1.151, allocations: 133.9 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/1.151, allocations: 14.14 kB / 1.093 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.708e-05/1.151, allocations: 17.2 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/1.151, allocations: 1.562 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/1.151, allocations: 0.7188 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/1.151, allocations: 5.594 kB / 1.093 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/1.151, allocations: 200.8 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/1.151, allocations: 0.7031 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.734e-05/1.151, allocations: 6.578 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/1.151, allocations: 5.062 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/1.151, allocations: 2.828 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/1.151, allocations: 0.9375 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.151, allocations: 1.125 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/1.152, allocations: 187.8 kB / 1.094 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/1.152, allocations: 85.16 kB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/1.152, allocations: 14.14 kB / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.422e-05/1.152, allocations: 11.55 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.724e-05/1.152, allocations: 6.109 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/1.152, allocations: 2.719 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.483e-05/1.152, allocations: 116.5 kB / 1.094 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/1.152, allocations: 0 / 1.094 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004326/1.152, allocations: 72.25 kB / 1.094 GB, free: 0.5156 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.0007491/1.153, allocations: 0.7782 MB / 1.095 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004071/1.154, allocations: 162.9 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.154, allocations: 0 / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/1.154, allocations: 51.31 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/1.154, allocations: 7.703 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/1.157, allocations: 1.709 MB / 1.097 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/1.157, allocations: 0.706 MB / 1.097 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.176e-05/1.157, allocations: 13.22 kB / 1.097 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.355e-05/1.157, allocations: 31.53 kB / 1.097 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of SimCode: time 4.3e-07/1.157, allocations: 0 / 1.097 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0243/1.181, allocations: 3.966 MB / 1.101 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.961/9.142, allocations: 9.906 kB / 1.101 GB, free: 13.08 MB / 0.8731 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]