Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001621/0.001621, allocations: 111.7 kB / 17.13 MB, free: 5.926 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.001762/0.001762, allocations: 204 kB / 20.09 MB, free: 2.977 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.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.012/3.012, allocations: 0.49 GB / 0.7923 GB, free: 1.328 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002093/0.002093, allocations: 71.91 kB / 1.15 GB, free: 14.02 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.086/1.088, allocations: 176.1 MB / 1.322 GB, free: 7.895 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003052/1.091, allocations: 1.437 MB / 1.323 GB, free: 6.762 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00121/1.093, allocations: 497.8 kB / 1.324 GB, free: 6.379 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.546e-05/1.093, allocations: 0 / 1.324 GB, free: 6.379 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.341e-05/1.093, allocations: 9.359 kB / 1.324 GB, free: 6.371 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.073e-05/1.093, allocations: 6.781 kB / 1.324 GB, free: 6.367 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001001/1.094, allocations: 246.6 kB / 1.324 GB, free: 6.207 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003303/1.094, allocations: 145 kB / 1.324 GB, free: 6.129 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 6.04e-05/1.094, allocations: 7.016 kB / 1.324 GB, free: 6.125 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.603e-05/1.094, allocations: 56.62 kB / 1.324 GB, free: 6.098 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/1.094, allocations: 43.11 kB / 1.324 GB, free: 6.07 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.559e-05/1.094, allocations: 10.19 kB / 1.324 GB, free: 6.07 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004648/1.095, allocations: 170.8 kB / 1.324 GB, free: 5.98 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.326e-05/1.095, allocations: 35.38 kB / 1.324 GB, free: 5.957 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 9.478e-05/1.095, allocations: 61.48 kB / 1.325 GB, free: 5.91 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000399/1.095, allocations: 235.1 kB / 1.325 GB, free: 5.77 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/1.095, allocations: 0 / 1.325 GB, free: 5.77 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.843e-06/1.095, allocations: 0 / 1.325 GB, free: 5.77 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.474e-06/1.095, allocations: 1.312 kB / 1.325 GB, free: 5.77 MB / 1.014 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.0007422/1.096, allocations: 445.8 kB / 1.325 GB, free: 5.336 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/1.096, allocations: 13.61 kB / 1.325 GB, free: 5.332 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.687e-05/1.096, allocations: 20.59 kB / 1.325 GB, free: 5.32 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/1.097, allocations: 206.2 kB / 1.325 GB, free: 5.098 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/1.097, allocations: 14.06 kB / 1.325 GB, free: 5.09 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/1.097, allocations: 9.656 kB / 1.325 GB, free: 5.09 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/1.097, allocations: 86.72 kB / 1.326 GB, free: 5.016 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/1.097, allocations: 192 / 1.326 GB, free: 5.016 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/1.097, allocations: 5.625 kB / 1.326 GB, free: 5.012 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/1.097, allocations: 0 / 1.326 GB, free: 5.012 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.074e-05/1.097, allocations: 40.2 kB / 1.326 GB, free: 4.996 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002931/1.097, allocations: 236.1 kB / 1.326 GB, free: 4.734 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/1.097, allocations: 72.14 kB / 1.326 GB, free: 4.672 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.618e-05/1.097, allocations: 54.53 kB / 1.326 GB, free: 4.637 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.203e-05/1.097, allocations: 1.25 kB / 1.326 GB, free: 4.637 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/1.098, allocations: 107.6 kB / 1.326 GB, free: 4.543 MB / 1.014 GB Notification: Performance of pre-optimization done (n=14): time 1.213e-06/1.098, allocations: 0 / 1.326 GB, free: 4.543 MB / 1.014 GB Notification: Performance of matching and sorting (n=14): time 0.0003839/1.098, allocations: 194.8 kB / 1.326 GB, free: 4.445 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/1.098, allocations: 82.23 kB / 1.326 GB, free: 4.352 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/1.098, allocations: 150.7 kB / 1.326 GB, free: 4.227 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/1.098, allocations: 33.95 kB / 1.326 GB, free: 4.191 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.31e-05/1.098, allocations: 107.8 kB / 1.327 GB, free: 4.086 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 5.53e-05/1.098, allocations: 44.8 kB / 1.327 GB, free: 4.047 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.331e-05/1.099, allocations: 51.58 kB / 1.327 GB, free: 4.012 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001659/1.099, allocations: 322.3 kB / 1.327 GB, free: 3.691 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.305e-05/1.099, allocations: 41.64 kB / 1.327 GB, free: 3.676 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/1.099, allocations: 195.8 kB / 1.327 GB, free: 3.488 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/1.099, allocations: 101.4 kB / 1.327 GB, free: 3.43 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.099, allocations: 0.9688 kB / 1.327 GB, free: 3.43 MB / 1.014 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000257/1.099, allocations: 166.4 kB / 1.327 GB, free: 3.34 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/1.099, allocations: 4.562 kB / 1.327 GB, free: 3.34 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/1.099, allocations: 7.281 kB / 1.327 GB, free: 3.336 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/1.099, allocations: 9.031 kB / 1.327 GB, free: 3.328 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.809e-05/1.1, allocations: 11.06 kB / 1.327 GB, free: 3.324 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/1.1, allocations: 1.062 kB / 1.327 GB, free: 3.324 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002952/1.1, allocations: 81.94 kB / 1.328 GB, free: 3.281 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/1.1, allocations: 3.969 kB / 1.328 GB, free: 3.281 MB / 1.014 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.0001361/1.1, allocations: 130.8 kB / 1.328 GB, free: 3.156 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/1.1, allocations: 16.75 kB / 1.328 GB, free: 3.145 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/1.1, allocations: 15.88 kB / 1.328 GB, free: 3.129 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/1.1, allocations: 2.312 kB / 1.328 GB, free: 3.129 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/1.1, allocations: 0 / 1.328 GB, free: 3.129 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/1.1, allocations: 5.156 kB / 1.328 GB, free: 3.125 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001967/1.1, allocations: 198.8 kB / 1.328 GB, free: 2.898 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/1.1, allocations: 3.938 kB / 1.328 GB, free: 2.895 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.217e-05/1.1, allocations: 6.062 kB / 1.328 GB, free: 2.895 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/1.1, allocations: 1.375 kB / 1.328 GB, free: 2.895 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/1.1, allocations: 1.406 kB / 1.328 GB, free: 2.895 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/1.1, allocations: 1.375 kB / 1.328 GB, free: 2.895 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.1, allocations: 0 / 1.328 GB, free: 2.895 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/1.101, allocations: 191.5 kB / 1.328 GB, free: 2.766 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.246e-05/1.101, allocations: 96.33 kB / 1.328 GB, free: 2.656 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/1.101, allocations: 5.188 kB / 1.328 GB, free: 2.652 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.174e-05/1.101, allocations: 6.156 kB / 1.328 GB, free: 2.648 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.983e-05/1.101, allocations: 7.328 kB / 1.328 GB, free: 2.645 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.784e-06/1.101, allocations: 2.312 kB / 1.328 GB, free: 2.645 MB / 1.014 GB Notification: Performance of sorting global known variables: time 9.198e-05/1.101, allocations: 115.9 kB / 1.328 GB, free: 2.551 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/1.101, allocations: 0 / 1.328 GB, free: 2.551 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003266/1.101, allocations: 68.56 kB / 1.328 GB, free: 2.539 MB / 1.014 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.0002841/1.101, allocations: 171.8 kB / 1.329 GB, free: 2.422 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002788/1.102, allocations: 155 kB / 1.329 GB, free: 2.324 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/1.102, allocations: 0 / 1.329 GB, free: 2.324 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 7.595e-05/1.102, allocations: 44.59 kB / 1.329 GB, free: 2.305 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000172/1.102, allocations: 10.19 kB / 1.329 GB, free: 2.297 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004788/1.102, allocations: 254.7 kB / 1.329 GB, free: 2.078 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/1.103, allocations: 0.7064 MB / 1.33 GB, free: 1.367 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.783e-05/1.103, allocations: 12.91 kB / 1.33 GB, free: 1.359 MB / 1.014 GB Notification: Performance of SimCode: time 2.71e-07/1.103, allocations: 0 / 1.33 GB, free: 1.359 MB / 1.014 GB Notification: Performance of Templates: time 0.004988/1.108, allocations: 2.45 MB / 1.332 GB, free: 112 kB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 12.103634264989523]