Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007992/0.0007992, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9368/0.9368, allocations: 177.2 MB / 202.8 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.821/1.821, allocations: 377.9 MB / 0.6221 GB, free: 8.656 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 0.9809 GB, free: 2.656 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.381e-05/1.553e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.652 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001809/0.001824, allocations: 1.428 MB / 0.9823 GB, free: 1.215 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006346/0.002459, allocations: 450.2 kB / 0.9827 GB, free: 0.7734 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.103e-05/0.0025, allocations: 4 kB / 0.9827 GB, free: 0.7695 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 8.219e-05/0.002582, allocations: 7.875 kB / 0.9828 GB, free: 0.7617 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.792e-05/0.00264, allocations: 11.97 kB / 0.9828 GB, free: 0.75 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006358/0.003276, allocations: 238.4 kB / 0.983 GB, free: 0.5195 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.003451, allocations: 151.7 kB / 0.9831 GB, free: 380 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 4.767e-05/0.003499, allocations: 11.89 kB / 0.9832 GB, free: 368 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.003707, allocations: 79.92 kB / 0.9832 GB, free: 288 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.995e-05/0.003787, allocations: 39.89 kB / 0.9833 GB, free: 248 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.003813, allocations: 12 kB / 0.9833 GB, free: 236 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002549/0.004068, allocations: 187.7 kB / 0.9835 GB, free: 48 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 6.088e-05/0.004129, allocations: 35.89 kB / 0.9835 GB, free: 12 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 6.468e-05/0.004194, allocations: 39.92 kB / 0.9835 GB, free: 15.97 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.004482, allocations: 275.4 kB / 0.9838 GB, free: 15.7 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.004485, allocations: 0 / 0.9838 GB, free: 15.7 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.724e-06/0.004486, allocations: 0 / 0.9838 GB, free: 15.7 MB / 0.948 GB Notification: Performance of Transformations before backend: time 7.735e-06/0.004494, allocations: 0 / 0.9838 GB, free: 15.7 MB / 0.948 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.0004988/0.004993, allocations: 380.1 kB / 0.9842 GB, free: 15.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.005038, allocations: 15.97 kB / 0.9842 GB, free: 15.29 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.858e-05/0.005077, allocations: 42.73 kB / 0.9842 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.479e-05/0.005122, allocations: 16.88 kB / 0.9842 GB, free: 15.22 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.005315, allocations: 145.6 kB / 0.9844 GB, free: 15.05 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.005328, allocations: 8.312 kB / 0.9844 GB, free: 15.04 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.005348, allocations: 16.38 kB / 0.9844 GB, free: 15.03 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.005491, allocations: 75.95 kB / 0.9845 GB, free: 14.94 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.0055, allocations: 4.188 kB / 0.9845 GB, free: 14.94 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.00551, allocations: 384 / 0.9845 GB, free: 14.94 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.453e-06/0.005516, allocations: 4.125 kB / 0.9845 GB, free: 14.93 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.926e-05/0.005576, allocations: 39.97 kB / 0.9845 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001944/0.00577, allocations: 193.6 kB / 0.9847 GB, free: 14.66 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 8.657e-05/0.005856, allocations: 69.25 kB / 0.9848 GB, free: 14.57 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.314e-05/0.00591, allocations: 49.81 kB / 0.9848 GB, free: 14.52 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 8.907e-06/0.005919, allocations: 0 / 0.9848 GB, free: 14.52 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/0.006071, allocations: 117 kB / 0.9849 GB, free: 14.39 MB / 0.948 GB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.006072, allocations: 0 / 0.9849 GB, free: 14.39 MB / 0.948 GB Notification: Performance of matching and sorting (n=14): time 0.000281/0.006353, allocations: 189.4 kB / 0.9851 GB, free: 14.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.006403, allocations: 85.09 kB / 0.9852 GB, free: 14.09 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.416e-05/0.006497, allocations: 153.8 kB / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.006517, allocations: 37.7 kB / 0.9854 GB, free: 13.89 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.784e-05/0.006565, allocations: 104.5 kB / 0.9855 GB, free: 13.78 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.887e-05/0.006603, allocations: 31.75 kB / 0.9855 GB, free: 13.75 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-05/0.006658, allocations: 53.69 kB / 0.9855 GB, free: 13.69 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.239e-05/0.006741, allocations: 326.8 kB / 0.9859 GB, free: 13.36 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.532e-05/0.006786, allocations: 35.98 kB / 0.9859 GB, free: 13.33 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.007045, allocations: 0.6024 MB / 0.9865 GB, free: 12.57 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.007147, allocations: 101.6 kB / 0.9866 GB, free: 12.47 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.007149, allocations: 0 / 0.9866 GB, free: 12.47 MB / 0.948 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001501/0.0073, allocations: 161.5 kB / 0.9867 GB, free: 12.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.007315, allocations: 11.94 kB / 0.9867 GB, free: 12.29 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.007333, allocations: 4 kB / 0.9867 GB, free: 12.29 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.007345, allocations: 4 kB / 0.9867 GB, free: 12.29 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.537e-05/0.007411, allocations: 4 kB / 0.9867 GB, free: 12.28 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.00742, allocations: 7.984 kB / 0.9868 GB, free: 12.27 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.007586, allocations: 79.73 kB / 0.9868 GB, free: 12.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.007594, allocations: 4 kB / 0.9868 GB, free: 12.19 MB / 0.948 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 9.685e-05/0.007691, allocations: 134.5 kB / 0.987 GB, free: 12.05 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.49e-05/0.007706, allocations: 11.95 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.576e-05/0.007732, allocations: 20.8 kB / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.007734, allocations: 0 / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.007739, allocations: 0 / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.007743, allocations: 3.938 kB / 0.987 GB, free: 12.02 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.007847, allocations: 168.6 kB / 0.9872 GB, free: 11.81 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.007849, allocations: 3.984 kB / 0.9872 GB, free: 11.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.115e-05/0.00787, allocations: 4 kB / 0.9872 GB, free: 11.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.007872, allocations: 0 / 0.9872 GB, free: 11.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.839e-06/0.007882, allocations: 11.94 kB / 0.9872 GB, free: 11.79 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.007883, allocations: 0 / 0.9872 GB, free: 11.79 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.007884, allocations: 3.938 kB / 0.9872 GB, free: 11.79 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/0.008039, allocations: 169.9 kB / 0.9873 GB, free: 11.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.179e-05/0.00805, allocations: 15.91 kB / 0.9874 GB, free: 11.58 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.008066, allocations: 3.938 kB / 0.9874 GB, free: 11.58 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.192e-05/0.008088, allocations: 7.984 kB / 0.9874 GB, free: 11.57 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.008125, allocations: 11.98 kB / 0.9874 GB, free: 11.56 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/0.00813, allocations: 4 kB / 0.9874 GB, free: 11.55 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.248e-05/0.008182, allocations: 113.8 kB / 0.9875 GB, free: 11.45 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.008183, allocations: 0 / 0.9875 GB, free: 11.45 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002227/0.008405, allocations: 71.88 kB / 0.9876 GB, free: 11.38 MB / 0.948 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.0004728/0.008878, allocations: 0.8022 MB / 0.9883 GB, free: 10.54 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001916/0.00907, allocations: 155.3 kB / 0.9885 GB, free: 10.38 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.009071, allocations: 0 / 0.9885 GB, free: 10.38 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.266e-05/0.009114, allocations: 43.92 kB / 0.9885 GB, free: 10.34 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001464/0.00926, allocations: 8 kB / 0.9885 GB, free: 10.33 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.01062, allocations: 1.712 MB / 0.9902 GB, free: 8.52 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.711e-05/0.01068, allocations: 97.06 kB / 0.9903 GB, free: 8.398 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.755e-05/0.01071, allocations: 8.719 kB / 0.9903 GB, free: 8.391 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.891e-05/0.01076, allocations: 32.48 kB / 0.9903 GB, free: 8.355 MB / 0.948 GB Notification: Performance of SimCode: time 7.92e-07/0.01076, allocations: 0 / 0.9903 GB, free: 8.355 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01659/0.02735, allocations: 4.835 MB / 0.9951 GB, free: 3.711 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.754/6.781, allocations: 5.609 kB / 0.9951 GB, free: 3.707 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable occSchDay.occupied in file Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchDay.occupied from file Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! Error: Could not read variable occSchWee.occupied in file Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchWee.occupied from file Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.197171307168901]