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.001647/0.001647, allocations: 108 kB / 15.6 MB, free: 132 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.002342/0.002342, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.459/1.459, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.525/2.525, allocations: 390.3 MB / 0.6647 GB, free: 308 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001553, allocations: 59.91 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8255/0.8271, allocations: 140.4 MB / 0.9497 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002735/0.8298, allocations: 1.414 MB / 0.9511 GB, free: 8.211 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009002/0.8308, allocations: 0.4954 MB / 0.9516 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.952e-05/0.8308, allocations: 1.562 kB / 0.9516 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.659e-05/0.8309, allocations: 5.25 kB / 0.9516 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.29e-05/0.831, allocations: 14.48 kB / 0.9516 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007387/0.8318, allocations: 229 kB / 0.9518 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000215/0.832, allocations: 145 kB / 0.952 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.396e-05/0.832, allocations: 7.953 kB / 0.952 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.529e-05/0.8321, allocations: 57.31 kB / 0.952 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.214e-05/0.8322, allocations: 34.62 kB / 0.9521 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.523e-05/0.8322, allocations: 9.281 kB / 0.9521 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003024/0.8326, allocations: 183.2 kB / 0.9522 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.273e-05/0.8326, allocations: 30.69 kB / 0.9523 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.91e-05/0.8327, allocations: 51.11 kB / 0.9523 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003053/0.833, allocations: 233.7 kB / 0.9525 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.833, allocations: 0 / 0.9525 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.314e-06/0.8331, allocations: 1.438 kB / 0.9525 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.8331, allocations: 0 / 0.9525 GB, free: 7.23 MB / 0.7169 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.0005804/0.8337, allocations: 445.8 kB / 0.953 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.8337, allocations: 14.53 kB / 0.953 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.8338, allocations: 40.17 kB / 0.953 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.599e-05/0.8338, allocations: 16.91 kB / 0.953 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.834, allocations: 213.3 kB / 0.9532 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.834, allocations: 6.75 kB / 0.9532 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.8341, allocations: 12.41 kB / 0.9533 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.8343, allocations: 82.58 kB / 0.9533 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.8343, allocations: 5.219 kB / 0.9533 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.8343, allocations: 3.984 kB / 0.9533 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.679e-06/0.8343, allocations: 9.203 kB / 0.9533 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.276e-05/0.8344, allocations: 35.45 kB / 0.9534 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002336/0.8346, allocations: 228.5 kB / 0.9536 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.8348, allocations: 83.53 kB / 0.9537 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.017e-05/0.8349, allocations: 56.38 kB / 0.9537 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.8349, allocations: 5.406 kB / 0.9537 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002268/0.8351, allocations: 111.5 kB / 0.9538 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.8351, allocations: 0 / 0.9538 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.000365/0.8355, allocations: 186.6 kB / 0.954 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.8356, allocations: 86.8 kB / 0.9541 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.8357, allocations: 153.4 kB / 0.9543 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.8357, allocations: 33.67 kB / 0.9543 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.775e-05/0.8358, allocations: 107.2 kB / 0.9544 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.46e-05/0.8358, allocations: 35.69 kB / 0.9544 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.886e-05/0.8359, allocations: 52.94 kB / 0.9545 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.721e-05/0.836, allocations: 325.8 kB / 0.9548 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.005e-05/0.8361, allocations: 37.64 kB / 0.9548 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.8363, allocations: 203.8 kB / 0.955 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.8364, allocations: 102.6 kB / 0.9551 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.8365, allocations: 4 kB / 0.9551 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002294/0.8367, allocations: 161.6 kB / 0.9553 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.8367, allocations: 5.344 kB / 0.9553 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.411e-05/0.8367, allocations: 1.938 kB / 0.9553 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.8368, allocations: 2.344 kB / 0.9553 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-05/0.8368, allocations: 9.719 kB / 0.9553 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.8369, allocations: 1.281 kB / 0.9553 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.8371, allocations: 71.81 kB / 0.9554 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.812e-05/0.8372, allocations: 15.61 kB / 0.9554 GB, free: 4.695 MB / 0.7169 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.0001084/0.8373, allocations: 131.8 kB / 0.9555 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.305e-05/0.8373, allocations: 16.34 kB / 0.9555 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.627e-05/0.8374, allocations: 20.27 kB / 0.9555 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.8374, allocations: 1.281 kB / 0.9555 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.8374, allocations: 0 / 0.9555 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.8374, allocations: 1.25 kB / 0.9555 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.8375, allocations: 194.6 kB / 0.9557 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.8375, allocations: 0 / 0.9557 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.658e-05/0.8376, allocations: 10.81 kB / 0.9557 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.8376, allocations: 0 / 0.9557 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.8376, allocations: 2.188 kB / 0.9557 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.8376, allocations: 1.25 kB / 0.9557 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.8376, allocations: 5.125 kB / 0.9557 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002341/0.8379, allocations: 191.9 kB / 0.9559 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.8379, allocations: 92.25 kB / 0.956 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.8379, allocations: 5.078 kB / 0.956 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.036e-05/0.838, allocations: 2.406 kB / 0.956 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.425e-05/0.838, allocations: 15.42 kB / 0.956 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-06/0.8381, allocations: 2.312 kB / 0.956 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.721e-05/0.8381, allocations: 117 kB / 0.9561 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8381, allocations: 0 / 0.9561 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000336/0.8385, allocations: 73.09 kB / 0.9562 GB, free: 3.949 MB / 0.7169 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.0005095/0.839, allocations: 0.777 MB / 0.957 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002472/0.8392, allocations: 167 kB / 0.9571 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.8393, allocations: 3.938 kB / 0.9571 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.755e-05/0.8393, allocations: 48.61 kB / 0.9572 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001667/0.8395, allocations: 7.703 kB / 0.9572 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.841, allocations: 1.706 MB / 0.9589 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.8412, allocations: 0.7002 MB / 0.9595 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.019e-05/0.8412, allocations: 11.22 kB / 0.9596 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.67e-05/0.8413, allocations: 32.48 kB / 0.9596 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.8413, allocations: 0 / 0.9596 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02329/0.8646, allocations: 3.922 MB / 0.9634 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.951, allocations: 9 kB / 0.9634 GB, free: 14.94 MB / 0.7325 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]