Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_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.001392/0.001392, 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.001453/0.001453, allocations: 196.5 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002081/0.002081, allocations: 286.7 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9251/0.9251, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 100.5 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1374, allocations: 86.98 MB / 0.6803 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002493/0.14, allocations: 1.406 MB / 0.6817 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008346/0.1408, allocations: 0.4887 MB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.329e-05/0.1409, allocations: 0 / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.681e-05/0.141, allocations: 11.92 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.334e-05/0.141, allocations: 7.922 kB / 0.6822 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007959/0.1418, allocations: 230.9 kB / 0.6824 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.1421, allocations: 152.4 kB / 0.6825 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.08e-05/0.1421, allocations: 0.9062 kB / 0.6825 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.888e-05/0.1422, allocations: 59.89 kB / 0.6826 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.667e-05/0.1423, allocations: 41.27 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.1423, allocations: 12 kB / 0.6826 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002747/0.1426, allocations: 164.4 kB / 0.6828 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.215e-05/0.1427, allocations: 39.89 kB / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.522e-05/0.1428, allocations: 59.78 kB / 0.6829 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.1432, allocations: 227.5 kB / 0.6831 GB, free: 13.74 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1432, allocations: 4 kB / 0.6831 GB, free: 13.74 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1432, allocations: 0 / 0.6831 GB, free: 13.74 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1432, allocations: 3.984 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB 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.0005568/0.1438, allocations: 447 kB / 0.6835 GB, free: 13.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.1438, allocations: 12.03 kB / 0.6835 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.613e-05/0.1439, allocations: 30.75 kB / 0.6836 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.508e-05/0.1439, allocations: 20.84 kB / 0.6836 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.1441, allocations: 212 kB / 0.6838 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.1441, allocations: 8.375 kB / 0.6838 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/0.1442, allocations: 12.38 kB / 0.6838 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001403/0.1443, allocations: 83.89 kB / 0.6839 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1443, allocations: 3.938 kB / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.1444, allocations: 0 / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1444, allocations: 0 / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.309e-05/0.1444, allocations: 39.97 kB / 0.6839 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002212/0.1447, allocations: 230.6 kB / 0.6842 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.1448, allocations: 85.16 kB / 0.6842 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.223e-05/0.1449, allocations: 53.81 kB / 0.6843 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.1449, allocations: 3.938 kB / 0.6843 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001955/0.1451, allocations: 121 kB / 0.6844 GB, free: 12.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.173e-06/0.1451, allocations: 0 / 0.6844 GB, free: 12.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003183/0.1454, allocations: 189.8 kB / 0.6846 GB, free: 12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.1455, allocations: 89.08 kB / 0.6847 GB, free: 11.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.1456, allocations: 151.7 kB / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.1456, allocations: 37.69 kB / 0.6849 GB, free: 11.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.883e-05/0.1457, allocations: 108.5 kB / 0.685 GB, free: 11.59 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.66e-05/0.1458, allocations: 35.55 kB / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.119e-05/0.1458, allocations: 49.7 kB / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.912e-05/0.1459, allocations: 318.8 kB / 0.6853 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.82e-05/0.146, allocations: 47.97 kB / 0.6854 GB, free: 11.13 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.1462, allocations: 201.8 kB / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.1463, allocations: 97.58 kB / 0.6857 GB, free: 10.78 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1464, allocations: 0 / 0.6857 GB, free: 10.78 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002306/0.1466, allocations: 165.3 kB / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.1466, allocations: 8 kB / 0.6858 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/0.1466, allocations: 4 kB / 0.6858 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.1467, allocations: 0 / 0.6858 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.012e-05/0.1467, allocations: 11.98 kB / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.1468, allocations: 0 / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.147, allocations: 82.62 kB / 0.6859 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.1471, allocations: 7.938 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB 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.0001082/0.1472, allocations: 135.1 kB / 0.6861 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.1472, allocations: 15.84 kB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.1472, allocations: 12.72 kB / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1472, allocations: 4 kB / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1473, allocations: 0 / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1473, allocations: 8 kB / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001442/0.1474, allocations: 197.4 kB / 0.6863 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1474, allocations: 0 / 0.6863 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.599e-05/0.1475, allocations: 8 kB / 0.6863 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1475, allocations: 0 / 0.6863 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.1475, allocations: 7.984 kB / 0.6863 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1475, allocations: 0 / 0.6863 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1475, allocations: 3.938 kB / 0.6863 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002179/0.1477, allocations: 181.8 kB / 0.6865 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.617e-05/0.1478, allocations: 81.02 kB / 0.6866 GB, free: 9.762 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.1478, allocations: 8 kB / 0.6866 GB, free: 9.754 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.981e-05/0.1478, allocations: 0 / 0.6866 GB, free: 9.754 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.396e-05/0.1479, allocations: 7.984 kB / 0.6866 GB, free: 9.746 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.1479, allocations: 4 kB / 0.6866 GB, free: 9.742 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.155e-05/0.148, allocations: 121.1 kB / 0.6867 GB, free: 9.625 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.148, allocations: 0 / 0.6867 GB, free: 9.625 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002912/0.1483, allocations: 75.98 kB / 0.6868 GB, free: 9.551 MB / 494.1 MB 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.0005628/0.1488, allocations: 0.7957 MB / 0.6875 GB, free: 8.727 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.1491, allocations: 167.3 kB / 0.6877 GB, free: 8.551 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1491, allocations: 0 / 0.6877 GB, free: 8.551 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.779e-05/0.1492, allocations: 47.92 kB / 0.6878 GB, free: 8.504 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001544/0.1493, allocations: 5.875 kB / 0.6878 GB, free: 8.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.1509, allocations: 1.691 MB / 0.6894 GB, free: 6.715 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.1511, allocations: 0.7118 MB / 0.6901 GB, free: 5.977 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.489e-05/0.1512, allocations: 8.672 kB / 0.6901 GB, free: 5.965 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.309e-05/0.1512, allocations: 27.42 kB / 0.6901 GB, free: 5.941 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1512, allocations: 0 / 0.6901 GB, free: 5.941 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05551/0.2067, allocations: 3.943 MB / 0.694 GB, free: 2.125 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.293/8.5, allocations: 10.66 kB / 0.694 GB, free: 2.117 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule.fmu > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)