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.001693/0.001693, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001943/0.001943, allocations: 223.1 kB / 23 MB, free: 4.91 MB / 14.72 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.774/2.774, allocations: 476 MB / 0.7707 GB, free: 4.75 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 66.73 kB / 1.118 GB, free: 41.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3066, allocations: 170 MB / 1.284 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002602/0.3092, allocations: 1.418 MB / 1.285 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009378/0.3102, allocations: 474.6 kB / 1.286 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.567e-05/0.3102, allocations: 3.938 kB / 1.286 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 7.12e-05/0.3103, allocations: 15.86 kB / 1.286 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.123e-05/0.3103, allocations: 7.938 kB / 1.286 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000726/0.3111, allocations: 237 kB / 1.286 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.3113, allocations: 147.8 kB / 1.286 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.681e-05/0.3113, allocations: 8 kB / 1.286 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.669e-05/0.3114, allocations: 59.89 kB / 1.286 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.981e-05/0.3115, allocations: 35.84 kB / 1.286 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.3115, allocations: 8 kB / 1.286 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003502/0.3119, allocations: 195.7 kB / 1.286 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.411e-05/0.3119, allocations: 37.7 kB / 1.286 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.809e-05/0.312, allocations: 43.78 kB / 1.286 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003403/0.3124, allocations: 235.3 kB / 1.287 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.3124, allocations: 0 / 1.287 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3124, allocations: 7.938 kB / 1.287 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.3124, allocations: 0 / 1.287 GB, free: 9.117 MB / 0.9825 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.0005751/0.313, allocations: 377.6 kB / 1.287 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.313, allocations: 12.03 kB / 1.287 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.307e-05/0.313, allocations: 12.84 kB / 1.287 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.3133, allocations: 155.7 kB / 1.287 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.3133, allocations: 4.375 kB / 1.287 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.3133, allocations: 16.31 kB / 1.287 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001612/0.3135, allocations: 79.95 kB / 1.287 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.3135, allocations: 192 / 1.287 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.3135, allocations: 11.94 kB / 1.287 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3135, allocations: 3.984 kB / 1.287 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.054e-05/0.3136, allocations: 31.98 kB / 1.287 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002128/0.3138, allocations: 162.2 kB / 1.287 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.3139, allocations: 69.25 kB / 1.287 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.305e-05/0.314, allocations: 49.81 kB / 1.288 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.314, allocations: 0 / 1.288 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/0.3142, allocations: 115.6 kB / 1.288 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.3142, allocations: 0 / 1.288 GB, free: 7.898 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003589/0.3146, allocations: 193.4 kB / 1.288 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.3146, allocations: 93.09 kB / 1.288 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.3148, allocations: 147.9 kB / 1.288 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.3148, allocations: 33.7 kB / 1.288 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.097e-05/0.3149, allocations: 104.5 kB / 1.288 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.851e-05/0.3149, allocations: 43.61 kB / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.299e-05/0.315, allocations: 57.69 kB / 1.288 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3152, allocations: 322.8 kB / 1.289 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.837e-05/0.3153, allocations: 39.98 kB / 1.289 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005062/0.3158, allocations: 0.6002 MB / 1.289 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.3159, allocations: 93.64 kB / 1.289 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.3159, allocations: 4 kB / 1.289 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000253/0.3162, allocations: 165.4 kB / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.3162, allocations: 9.969 kB / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.3162, allocations: 4 kB / 1.289 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.3162, allocations: 0 / 1.289 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.591e-05/0.3163, allocations: 12 kB / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.3163, allocations: 0 / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/0.3166, allocations: 75.83 kB / 1.29 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.3166, allocations: 8.031 kB / 1.29 GB, free: 5.695 MB / 0.9825 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.0001328/0.3167, allocations: 137.8 kB / 1.29 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.3168, allocations: 19.83 kB / 1.29 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.3168, allocations: 12.72 kB / 1.29 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3168, allocations: 3.938 kB / 1.29 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3168, allocations: 4 kB / 1.29 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.3168, allocations: 4 kB / 1.29 GB, free: 5.504 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.3169, allocations: 125.3 kB / 1.29 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.3169, allocations: 4 kB / 1.29 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.173e-05/0.317, allocations: 4 kB / 1.29 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.317, allocations: 0 / 1.29 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.317, allocations: 11.94 kB / 1.29 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.317, allocations: 0 / 1.29 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.317, allocations: 7.922 kB / 1.29 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002733/0.3173, allocations: 185.8 kB / 1.29 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.452e-05/0.3173, allocations: 15.95 kB / 1.29 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.3173, allocations: 3.938 kB / 1.29 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.14e-05/0.3174, allocations: 4 kB / 1.29 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.562e-05/0.3174, allocations: 7.984 kB / 1.29 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/0.3174, allocations: 4 kB / 1.29 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.398e-05/0.3175, allocations: 111.2 kB / 1.29 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3175, allocations: 0 / 1.29 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000306/0.3178, allocations: 79.8 kB / 1.29 GB, free: 4.898 MB / 0.9825 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.0002474/0.3181, allocations: 166.2 kB / 1.29 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002564/0.3183, allocations: 155.4 kB / 1.291 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3183, allocations: 0 / 1.291 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.611e-05/0.3184, allocations: 39.92 kB / 1.291 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.3186, allocations: 14.22 kB / 1.291 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004511/0.319, allocations: 249.1 kB / 1.291 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.186e-05/0.3191, allocations: 92.94 kB / 1.291 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.034e-05/0.3191, allocations: 19.38 kB / 1.291 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.3191, allocations: 4 kB / 1.291 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of Templates: time 0.00465/0.3238, allocations: 2.474 MB / 1.293 GB, free: 1.645 MB / 0.9825 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 400] 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/jenkins1/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] "" 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: 11.43070609914139]