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.001507/0.001507, allocations: 79.83 kB / 19.18 MB, free: 2.512 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.001758/0.001758, allocations: 165.7 kB / 22.46 MB, free: 5.379 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.479/1.479, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 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.787/2.787, allocations: 359 MB / 0.6037 GB, free: 14.96 MB / 0.5762 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.114e-06/2.114e-06, allocations: 0 / 0.9509 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.171e-05/3.382e-05, allocations: 4.391 kB / 0.9509 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002902/0.002936, allocations: 1.408 MB / 0.9523 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001366/0.004301, allocations: 486.1 kB / 0.9528 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.677e-05/0.004358, allocations: 0 / 0.9528 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.004497, allocations: 11.92 kB / 0.9528 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.732e-05/0.004594, allocations: 7.875 kB / 0.9528 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.005763, allocations: 250.5 kB / 0.953 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000351/0.006114, allocations: 147.8 kB / 0.9532 GB, free: 9.293 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.006222, allocations: 7.984 kB / 0.9532 GB, free: 9.285 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.006372, allocations: 75.89 kB / 0.9533 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.006498, allocations: 43.88 kB / 0.9533 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.276e-05/0.006541, allocations: 8 kB / 0.9533 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003717/0.006913, allocations: 187.7 kB / 0.9535 GB, free: 8.977 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.773e-05/0.00699, allocations: 27.92 kB / 0.9535 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.381e-05/0.007074, allocations: 39.91 kB / 0.9536 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004631/0.007537, allocations: 275.3 kB / 0.9538 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.007542, allocations: 0 / 0.9538 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.92e-07/0.007543, allocations: 0 / 0.9538 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.007554, allocations: 0 / 0.9538 GB, free: 8.641 MB / 0.8575 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.0007223/0.008276, allocations: 377.6 kB / 0.9542 GB, free: 8.238 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.008321, allocations: 8.031 kB / 0.9542 GB, free: 8.23 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.134e-05/0.008382, allocations: 24.75 kB / 0.9542 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.008642, allocations: 153.6 kB / 0.9544 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.008661, allocations: 8.375 kB / 0.9544 GB, free: 8.023 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.008695, allocations: 8.375 kB / 0.9544 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.008897, allocations: 80.59 kB / 0.9544 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.108e-06/0.008906, allocations: 192 / 0.9544 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.008921, allocations: 4.375 kB / 0.9544 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.008925, allocations: 4.375 kB / 0.9545 GB, free: 7.918 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.009033, allocations: 43.84 kB / 0.9545 GB, free: 7.875 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002525/0.009285, allocations: 154.3 kB / 0.9546 GB, free: 7.691 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.009439, allocations: 81.17 kB / 0.9547 GB, free: 7.594 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.952e-05/0.009519, allocations: 45.81 kB / 0.9548 GB, free: 7.543 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-06/0.009528, allocations: 0 / 0.9548 GB, free: 7.543 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002578/0.009786, allocations: 113 kB / 0.9549 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.009787, allocations: 0 / 0.9549 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.000411/0.0102, allocations: 185.8 kB / 0.955 GB, free: 7.227 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.108e-05/0.01029, allocations: 89.09 kB / 0.9551 GB, free: 7.121 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.01046, allocations: 152.2 kB / 0.9553 GB, free: 6.965 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.0105, allocations: 37.69 kB / 0.9553 GB, free: 6.922 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.955e-05/0.01059, allocations: 108.4 kB / 0.9554 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.664e-05/0.01064, allocations: 39.69 kB / 0.9555 GB, free: 6.77 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.01074, allocations: 53.64 kB / 0.9555 GB, free: 6.711 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001961/0.01094, allocations: 326.8 kB / 0.9558 GB, free: 6.383 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.042e-05/0.01103, allocations: 43.97 kB / 0.9559 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.01156, allocations: 0.5982 MB / 0.9564 GB, free: 5.59 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.01173, allocations: 97.62 kB / 0.9565 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.01173, allocations: 0 / 0.9565 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002669/0.012, allocations: 157.5 kB / 0.9567 GB, free: 5.328 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.01201, allocations: 8 kB / 0.9567 GB, free: 5.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-05/0.01204, allocations: 7.984 kB / 0.9567 GB, free: 5.312 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.01206, allocations: 3.938 kB / 0.9567 GB, free: 5.309 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.059e-05/0.01215, allocations: 15.94 kB / 0.9567 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.249e-06/0.01216, allocations: 0 / 0.9567 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002952/0.01245, allocations: 67.86 kB / 0.9568 GB, free: 5.227 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.01247, allocations: 8 kB / 0.9568 GB, free: 5.219 MB / 0.8575 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.0001547/0.01262, allocations: 141.8 kB / 0.9569 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.077e-05/0.01264, allocations: 7.953 kB / 0.9569 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.675e-05/0.01268, allocations: 16.77 kB / 0.957 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.01268, allocations: 3.938 kB / 0.957 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.01269, allocations: 0 / 0.957 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.0127, allocations: 15.94 kB / 0.957 GB, free: 5.027 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.01284, allocations: 129.2 kB / 0.9571 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.01285, allocations: 4 kB / 0.9571 GB, free: 4.867 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.508e-05/0.01288, allocations: 4 kB / 0.9571 GB, free: 4.863 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.01288, allocations: 0 / 0.9571 GB, free: 4.863 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.01291, allocations: 4 kB / 0.9571 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.01291, allocations: 0 / 0.9571 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.01291, allocations: 7.875 kB / 0.9571 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.01317, allocations: 176.9 kB / 0.9573 GB, free: 4.66 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.666e-05/0.01319, allocations: 11.91 kB / 0.9573 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.01321, allocations: 3.984 kB / 0.9573 GB, free: 4.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.279e-05/0.01325, allocations: 11.94 kB / 0.9573 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.883e-05/0.01332, allocations: 11.92 kB / 0.9573 GB, free: 4.621 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.01333, allocations: 4 kB / 0.9573 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.983e-05/0.01343, allocations: 113.1 kB / 0.9574 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01343, allocations: 0 / 0.9574 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003455/0.01377, allocations: 75.81 kB / 0.9575 GB, free: 4.434 MB / 0.8575 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.0003384/0.01411, allocations: 181.5 kB / 0.9577 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003126/0.01443, allocations: 155.3 kB / 0.9578 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01443, allocations: 0 / 0.9578 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.301e-05/0.0145, allocations: 43.92 kB / 0.9579 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001793/0.01468, allocations: 11.94 kB / 0.9579 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005176/0.0152, allocations: 230.7 kB / 0.9581 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.01531, allocations: 93.05 kB / 0.9582 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.132e-05/0.01535, allocations: 8.719 kB / 0.9582 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.27e-05/0.01538, allocations: 12.5 kB / 0.9582 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of SimCode: time 5.01e-07/0.01538, allocations: 7.938 kB / 0.9582 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of Templates: time 0.006942/0.02233, allocations: 2.697 MB / 0.9609 GB, free: 0.9883 MB / 0.8575 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=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/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.461802393198013]