Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001625/0.001626, allocations: 107.3 kB / 15.33 MB, free: 0.5039 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.00222/0.00222, allocations: 199.2 kB / 16.26 MB, free: 6.633 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.535/1.535, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.097/3.097, allocations: 472.6 MB / 0.7448 GB, free: 4.859 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 61.78 kB / 0.9115 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.522/0.5234, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003953/0.5274, allocations: 1.469 MB / 1.069 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.5287, allocations: 0.4944 MB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.993e-05/0.5288, allocations: 0 / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.5289, allocations: 11.92 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.607e-05/0.529, allocations: 7.938 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.5301, allocations: 218.9 kB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003094/0.5305, allocations: 151.8 kB / 1.07 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.072e-05/0.5305, allocations: 3.938 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.5306, allocations: 55.91 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.5308, allocations: 47.81 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.5308, allocations: 8 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004065/0.5312, allocations: 171.8 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.5314, allocations: 35.89 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.5315, allocations: 63.72 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005013/0.532, allocations: 227.7 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.532, allocations: 4 kB / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.795e-06/0.532, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.532, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 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.0008545/0.5329, allocations: 439 kB / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.533, allocations: 8.031 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.926e-05/0.5331, allocations: 12.84 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.5333, allocations: 212 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.5334, allocations: 12.36 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.5334, allocations: 16.38 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.5336, allocations: 75.95 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.5336, allocations: 4.188 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.5337, allocations: 3.938 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.5337, allocations: 0 / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001095/0.5338, allocations: 39.92 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003744/0.5342, allocations: 234.5 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.5343, allocations: 85.23 kB / 1.072 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.944e-05/0.5344, allocations: 61.69 kB / 1.072 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.5345, allocations: 0 / 1.072 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003106/0.5348, allocations: 113 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.5348, allocations: 4 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0004906/0.5353, allocations: 189.8 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.489e-05/0.5354, allocations: 89.09 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.5355, allocations: 151.2 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.5356, allocations: 37.69 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.191e-05/0.5357, allocations: 100.5 kB / 1.072 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.802e-05/0.5358, allocations: 43.53 kB / 1.072 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.106e-05/0.5359, allocations: 49.7 kB / 1.072 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.536, allocations: 326.8 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.876e-05/0.5361, allocations: 43.97 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.5363, allocations: 199.4 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.5365, allocations: 97.58 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5365, allocations: 0 / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000269/0.5368, allocations: 161.4 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.5368, allocations: 4 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.531e-05/0.5368, allocations: 4 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.5369, allocations: 7.984 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.537, allocations: 19.92 kB / 1.073 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.537, allocations: 160 / 1.073 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000295/0.5373, allocations: 79.75 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.5373, allocations: 7.984 kB / 1.073 GB, free: 4.629 MB / 0.8262 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.0001486/0.5375, allocations: 133.8 kB / 1.074 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.816e-05/0.5375, allocations: 11.84 kB / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.656e-05/0.5375, allocations: 12.72 kB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.5375, allocations: 0 / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.5376, allocations: 4 kB / 1.074 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.5376, allocations: 3.938 kB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001852/0.5378, allocations: 197.5 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.5378, allocations: 7.938 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.5378, allocations: 8 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.5378, allocations: 0 / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.5378, allocations: 3.984 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5379, allocations: 4 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.5379, allocations: 0 / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002471/0.5381, allocations: 169.9 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/0.5382, allocations: 96.89 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.5382, allocations: 4 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.28e-05/0.5383, allocations: 7.938 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.5383, allocations: 7.984 kB / 1.074 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.5384, allocations: 11.94 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.954e-05/0.5384, allocations: 113.7 kB / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5385, allocations: 3.938 kB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003575/0.5388, allocations: 75.98 kB / 1.074 GB, free: 3.668 MB / 0.8262 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.000303/0.5391, allocations: 159.2 kB / 1.074 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003077/0.5394, allocations: 163.3 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5395, allocations: 4 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.7e-05/0.5395, allocations: 43.92 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.5397, allocations: 15.86 kB / 1.075 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005356/0.5403, allocations: 255.3 kB / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.5406, allocations: 0.7041 MB / 1.076 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.116e-05/0.5407, allocations: 8.859 kB / 1.076 GB, free: 2.25 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.539e-05/0.5407, allocations: 11.44 kB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.5407, allocations: 4 kB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of Templates: time 0.006688/0.5474, allocations: 2.494 MB / 1.078 GB, free: 15.78 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches