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.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.0008134/0.0008134, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007861/0.0007861, allocations: 181.9 kB / 23.22 MB, free: 1.348 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.8998/0.8998, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.78/1.78, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 1.001 GB, free: 13.05 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.447e-05/1.603e-05, allocations: 2.281 kB / 1.001 GB, free: 13.05 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.00152/0.001536, allocations: 1.424 MB / 1.002 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.000554/0.00209, allocations: 458.9 kB / 1.003 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.208e-05/0.002122, allocations: 0 / 1.003 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 8.01e-05/0.002202, allocations: 11.88 kB / 1.003 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.555e-05/0.002257, allocations: 15.91 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005646/0.002822, allocations: 248.1 kB / 1.003 GB, free: 10.9 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.002977, allocations: 143.8 kB / 1.003 GB, free: 10.76 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 3.777e-05/0.003014, allocations: 12 kB / 1.003 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 7.577e-05/0.00309, allocations: 79.86 kB / 1.003 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 6.254e-05/0.003153, allocations: 39.89 kB / 1.003 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.003172, allocations: 8 kB / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001959/0.003368, allocations: 191.7 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.32e-05/0.003421, allocations: 35.89 kB / 1.003 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.67e-05/0.003468, allocations: 35.92 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.00374, allocations: 279.3 kB / 1.004 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.003742, allocations: 0 / 1.004 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.92e-07/0.003743, allocations: 0 / 1.004 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.003747, allocations: 0 / 1.004 GB, free: 10.09 MB / 0.9636 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.000403/0.00415, allocations: 369.6 kB / 1.004 GB, free: 9.695 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.004182, allocations: 8.75 kB / 1.004 GB, free: 9.688 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.106e-05/0.004223, allocations: 20.78 kB / 1.004 GB, free: 9.668 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.004374, allocations: 156 kB / 1.004 GB, free: 9.492 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.004385, allocations: 4.375 kB / 1.004 GB, free: 9.488 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.004404, allocations: 12.38 kB / 1.004 GB, free: 9.477 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001187/0.004523, allocations: 83.89 kB / 1.004 GB, free: 9.383 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.00453, allocations: 192 / 1.004 GB, free: 9.383 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.004539, allocations: 4.375 kB / 1.004 GB, free: 9.379 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.004543, allocations: 384 / 1.004 GB, free: 9.379 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.375e-05/0.004597, allocations: 35.92 kB / 1.004 GB, free: 9.344 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.004745, allocations: 170.1 kB / 1.005 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 7.855e-05/0.004824, allocations: 73.14 kB / 1.005 GB, free: 9.055 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.972e-05/0.004874, allocations: 57.84 kB / 1.005 GB, free: 8.992 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 8.036e-06/0.004882, allocations: 0 / 1.005 GB, free: 8.992 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001344/0.005016, allocations: 109 kB / 1.005 GB, free: 8.867 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=14): time 7.61e-07/0.005017, allocations: 0 / 1.005 GB, free: 8.867 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14): time 0.0002417/0.005259, allocations: 185.5 kB / 1.005 GB, free: 8.68 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.005302, allocations: 89.09 kB / 1.005 GB, free: 8.574 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.245e-05/0.005384, allocations: 149.8 kB / 1.005 GB, free: 8.418 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.005403, allocations: 33.7 kB / 1.005 GB, free: 8.379 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.455e-05/0.005447, allocations: 108.4 kB / 1.005 GB, free: 8.266 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.005484, allocations: 39.69 kB / 1.005 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.946e-05/0.005533, allocations: 57.64 kB / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.429e-05/0.005607, allocations: 322.8 kB / 1.006 GB, free: 7.84 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.642e-05/0.005654, allocations: 39.98 kB / 1.006 GB, free: 7.801 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.005974, allocations: 0.6041 MB / 1.006 GB, free: 7.043 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.282e-05/0.006067, allocations: 89.7 kB / 1.006 GB, free: 6.949 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.006069, allocations: 0 / 1.006 GB, free: 6.949 MB / 0.9636 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001399/0.006209, allocations: 157.4 kB / 1.007 GB, free: 6.789 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.00622, allocations: 8 kB / 1.007 GB, free: 6.781 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.006237, allocations: 4 kB / 1.007 GB, free: 6.777 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.006249, allocations: 3.938 kB / 1.007 GB, free: 6.773 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.119e-05/0.006311, allocations: 11.98 kB / 1.007 GB, free: 6.762 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.006316, allocations: 4 kB / 1.007 GB, free: 6.758 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.006458, allocations: 70.53 kB / 1.007 GB, free: 6.691 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.006465, allocations: 4 kB / 1.007 GB, free: 6.688 MB / 0.9636 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 7.666e-05/0.006542, allocations: 157.7 kB / 1.007 GB, free: 6.523 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-06/0.006552, allocations: 11.91 kB / 1.007 GB, free: 6.512 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.225e-05/0.006574, allocations: 16.78 kB / 1.007 GB, free: 6.492 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.006577, allocations: 3.938 kB / 1.007 GB, free: 6.488 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.006581, allocations: 0 / 1.007 GB, free: 6.488 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.006586, allocations: 7.984 kB / 1.007 GB, free: 6.48 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.823e-05/0.006664, allocations: 121.3 kB / 1.007 GB, free: 6.332 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.006665, allocations: 4 kB / 1.007 GB, free: 6.328 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.822e-05/0.006684, allocations: 7.984 kB / 1.007 GB, free: 6.32 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.006685, allocations: 4 kB / 1.007 GB, free: 6.316 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.006693, allocations: 8 kB / 1.007 GB, free: 6.309 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.006694, allocations: 0 / 1.007 GB, free: 6.309 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.006695, allocations: 7.875 kB / 1.007 GB, free: 6.301 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.006833, allocations: 181.8 kB / 1.007 GB, free: 6.102 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.386e-06/0.006842, allocations: 7.953 kB / 1.007 GB, free: 6.094 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.006855, allocations: 0 / 1.007 GB, free: 6.094 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.093e-05/0.006876, allocations: 11.92 kB / 1.007 GB, free: 6.082 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.129e-05/0.006907, allocations: 3.938 kB / 1.007 GB, free: 6.078 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.006913, allocations: 11.98 kB / 1.007 GB, free: 6.066 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.57e-05/0.006959, allocations: 113.3 kB / 1.007 GB, free: 5.957 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.006959, allocations: 4 kB / 1.007 GB, free: 5.953 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001834/0.007142, allocations: 71.81 kB / 1.007 GB, free: 5.883 MB / 0.9636 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.0001755/0.007318, allocations: 181.9 kB / 1.008 GB, free: 5.695 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001748/0.007492, allocations: 155.3 kB / 1.008 GB, free: 5.531 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.007494, allocations: 0 / 1.008 GB, free: 5.531 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 3.916e-05/0.007533, allocations: 39.92 kB / 1.008 GB, free: 5.492 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001164/0.007649, allocations: 8 kB / 1.008 GB, free: 5.484 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003012/0.00795, allocations: 260.3 kB / 1.008 GB, free: 5.195 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.606e-05/0.008006, allocations: 89.11 kB / 1.008 GB, free: 5.082 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.981e-05/0.008026, allocations: 12.5 kB / 1.008 GB, free: 5.066 MB / 0.9636 GB Notification: Performance of SimCode: time 3.61e-07/0.008027, allocations: 0 / 1.008 GB, free: 5.066 MB / 0.9636 GB Notification: Performance of Templates: time 0.00268/0.01071, allocations: 2.502 MB / 1.011 GB, free: 2.578 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,occSchDay.tNexNonOcc,occSchWee.tNexNonOcc,occSchDay.occupied,occSchWee.occupied Variables in the result:occSchDay.occupied,occSchDay.tNexNonOcc,occSchWee.occupied,occSchWee.tNexNonOcc,time [Calling sys.exit(0), Time elapsed: 6.550658077001572]