Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002364/0.002364, allocations: 79.7 kB / 20.23 MB, free: 4.191 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.002047/0.002047, allocations: 157.3 kB / 23.55 MB, free: 0.8789 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 1.557/1.557, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.933/2.933, allocations: 359 MB / 0.6048 GB, free: 10.93 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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: 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_11_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_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.295e-06/2.295e-06, allocations: 0 / 0.7863 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.756e-05/3.986e-05, allocations: 2.312 kB / 0.7863 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003979/0.004019, allocations: 1.447 MB / 0.7877 GB, free: 11.39 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001452/0.005471, allocations: 499.3 kB / 0.7882 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.962e-05/0.00553, allocations: 0 / 0.7882 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.005632, allocations: 8.781 kB / 0.7882 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.947e-05/0.005722, allocations: 11.92 kB / 0.7882 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.001138/0.00686, allocations: 244.1 kB / 0.7885 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003503/0.00721, allocations: 152.2 kB / 0.7886 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.81e-05/0.007258, allocations: 5.156 kB / 0.7886 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.007474, allocations: 71.94 kB / 0.7887 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.007601, allocations: 40.45 kB / 0.7887 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0002892/0.007891, allocations: 12.69 kB / 0.7887 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004968/0.008387, allocations: 183.7 kB / 0.7889 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 9.966e-05/0.008487, allocations: 40.8 kB / 0.789 GB, free: 10.16 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 9.993e-05/0.008587, allocations: 35.92 kB / 0.789 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0005986/0.009186, allocations: 275.9 kB / 0.7893 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.009189, allocations: 0 / 0.7893 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.683e-06/0.009191, allocations: 5.594 kB / 0.7893 GB, free: 9.848 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.009198, allocations: 0 / 0.7893 GB, free: 9.848 MB / 0.7448 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.0009278/0.01013, allocations: 483.5 kB / 0.7897 GB, free: 9.336 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.01017, allocations: 8.031 kB / 0.7897 GB, free: 9.328 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.795e-05/0.01027, allocations: 20.33 kB / 0.7897 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.01056, allocations: 152.4 kB / 0.7899 GB, free: 9.137 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.01059, allocations: 4.375 kB / 0.7899 GB, free: 9.133 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.1e-05/0.01063, allocations: 16.38 kB / 0.7899 GB, free: 9.117 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.01082, allocations: 73.61 kB / 0.79 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.01083, allocations: 192 / 0.79 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.01084, allocations: 384 / 0.79 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.01084, allocations: 384 / 0.79 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.01095, allocations: 31.86 kB / 0.79 GB, free: 9 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003305/0.01128, allocations: 184.8 kB / 0.7902 GB, free: 8.781 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.01145, allocations: 78.81 kB / 0.7903 GB, free: 8.68 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.01156, allocations: 53.06 kB / 0.7903 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.01157, allocations: 0 / 0.7903 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002555/0.01183, allocations: 112.4 kB / 0.7904 GB, free: 8.488 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=14): time 1.203e-06/0.01183, allocations: 0 / 0.7904 GB, free: 8.488 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14): time 0.0004927/0.01232, allocations: 142.6 kB / 0.7906 GB, free: 8.344 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.01242, allocations: 85.09 kB / 0.7906 GB, free: 8.242 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.01269, allocations: 223.9 kB / 0.7909 GB, free: 8.008 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.01275, allocations: 38.58 kB / 0.7909 GB, free: 7.965 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.0129, allocations: 151.2 kB / 0.791 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.834e-05/0.01298, allocations: 39.73 kB / 0.7911 GB, free: 7.77 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.01313, allocations: 59.89 kB / 0.7911 GB, free: 7.703 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0003608/0.0135, allocations: 0.5012 MB / 0.7916 GB, free: 7.191 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.973e-05/0.01359, allocations: 27.98 kB / 0.7916 GB, free: 7.164 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000727/0.01432, allocations: 0.6109 MB / 0.7922 GB, free: 6.379 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.01456, allocations: 96.03 kB / 0.7923 GB, free: 6.277 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.01457, allocations: 7.938 kB / 0.7923 GB, free: 6.27 MB / 0.7448 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003802/0.01495, allocations: 134.7 kB / 0.7925 GB, free: 6.133 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.01497, allocations: 4 kB / 0.7925 GB, free: 6.129 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.349e-05/0.01501, allocations: 7.984 kB / 0.7925 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.01503, allocations: 5.375 kB / 0.7925 GB, free: 6.117 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.01518, allocations: 19.94 kB / 0.7925 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.01518, allocations: 0 / 0.7925 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.01552, allocations: 58.33 kB / 0.7926 GB, free: 6.043 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.748e-05/0.01555, allocations: 4 kB / 0.7926 GB, free: 6.039 MB / 0.7448 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.0002026/0.01575, allocations: 169.3 kB / 0.7927 GB, free: 5.863 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.555e-05/0.0158, allocations: 23.88 kB / 0.7928 GB, free: 5.84 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.699e-05/0.01584, allocations: 22.66 kB / 0.7928 GB, free: 5.824 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.01585, allocations: 7.938 kB / 0.7928 GB, free: 5.816 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.01586, allocations: 0 / 0.7928 GB, free: 5.816 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.01586, allocations: 0 / 0.7928 GB, free: 5.816 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.01611, allocations: 148.6 kB / 0.7929 GB, free: 5.637 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.01611, allocations: 0.625 kB / 0.7929 GB, free: 5.637 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.965e-05/0.01616, allocations: 4 kB / 0.7929 GB, free: 5.633 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.01617, allocations: 4.719 kB / 0.7929 GB, free: 5.629 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.01618, allocations: 0 / 0.7929 GB, free: 5.629 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.01618, allocations: 1.219 kB / 0.7929 GB, free: 5.629 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.256e-06/0.01619, allocations: 7.938 kB / 0.7929 GB, free: 5.621 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000372/0.01656, allocations: 170.6 kB / 0.7931 GB, free: 5.43 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.905e-05/0.01659, allocations: 12.48 kB / 0.7931 GB, free: 5.418 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.914e-05/0.01662, allocations: 4 kB / 0.7931 GB, free: 5.414 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.395e-05/0.01669, allocations: 8.641 kB / 0.7931 GB, free: 5.406 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.156e-05/0.01675, allocations: 13.02 kB / 0.7931 GB, free: 5.395 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.01676, allocations: 4 kB / 0.7931 GB, free: 5.391 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001601/0.01692, allocations: 149.1 kB / 0.7933 GB, free: 5.246 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1e-07/0.01692, allocations: 1.062 kB / 0.7933 GB, free: 5.246 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0005161/0.01744, allocations: 75.86 kB / 0.7934 GB, free: 5.172 MB / 0.7448 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.0004511/0.01789, allocations: 175.3 kB / 0.7935 GB, free: 4.992 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003903/0.01828, allocations: 152.2 kB / 0.7937 GB, free: 4.828 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.01828, allocations: 2.219 kB / 0.7937 GB, free: 4.828 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.01839, allocations: 39.61 kB / 0.7937 GB, free: 4.785 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.01863, allocations: 11.98 kB / 0.7937 GB, free: 4.773 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006413/0.01927, allocations: 218.5 kB / 0.7939 GB, free: 4.527 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.01943, allocations: 91.89 kB / 0.794 GB, free: 4.41 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.918e-05/0.01949, allocations: 4.734 kB / 0.794 GB, free: 4.406 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.304e-05/0.01953, allocations: 12.5 kB / 0.794 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of SimCode: time 5.91e-07/0.01953, allocations: 4 kB / 0.794 GB, free: 4.391 MB / 0.7448 GB Notification: Performance of Templates: time 0.01121/0.03074, allocations: 2.715 MB / 0.7967 GB, free: 1.75 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.329391454928555]