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.001432/0.001432, allocations: 77.33 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.002005/0.002005, allocations: 161.2 kB / 22.46 MB, free: 5.391 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.507/1.507, allocations: 177.1 MB / 202.8 MB, free: 9.148 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.945/2.945, allocations: 377.8 MB / 0.6221 GB, free: 12.61 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 0.9814 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.775e-05/3.911e-05, allocations: 2.281 kB / 0.9814 GB, free: 10.97 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003612/0.003651, allocations: 1.431 MB / 0.9828 GB, free: 9.527 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001118/0.004769, allocations: 458.1 kB / 0.9832 GB, free: 9.078 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.204e-05/0.004831, allocations: 0 / 0.9832 GB, free: 9.078 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.004943, allocations: 11.86 kB / 0.9832 GB, free: 9.066 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.177e-05/0.005024, allocations: 7.938 kB / 0.9832 GB, free: 9.059 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.006081, allocations: 246.1 kB / 0.9835 GB, free: 8.82 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003013/0.006382, allocations: 159.7 kB / 0.9836 GB, free: 8.664 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.408e-05/0.006436, allocations: 0 / 0.9836 GB, free: 8.664 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.006623, allocations: 71.95 kB / 0.9837 GB, free: 8.594 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.006731, allocations: 39.88 kB / 0.9837 GB, free: 8.555 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.778e-05/0.006779, allocations: 12 kB / 0.9837 GB, free: 8.543 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.007198, allocations: 187.7 kB / 0.9839 GB, free: 8.359 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.303e-05/0.007281, allocations: 27.92 kB / 0.9839 GB, free: 8.332 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 9.887e-05/0.00738, allocations: 47.89 kB / 0.984 GB, free: 8.285 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0005644/0.007944, allocations: 271.3 kB / 0.9843 GB, free: 8.02 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.007948, allocations: 7.938 kB / 0.9843 GB, free: 8.012 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.423e-06/0.007949, allocations: 0 / 0.9843 GB, free: 8.012 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.007956, allocations: 0 / 0.9843 GB, free: 8.012 MB / 0.8887 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.0007691/0.008725, allocations: 385.5 kB / 0.9846 GB, free: 7.602 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.00877, allocations: 8.031 kB / 0.9846 GB, free: 7.594 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.851e-05/0.008848, allocations: 12.89 kB / 0.9846 GB, free: 7.582 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.009167, allocations: 148 kB / 0.9848 GB, free: 7.414 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.009186, allocations: 12.38 kB / 0.9848 GB, free: 7.402 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.009214, allocations: 8.375 kB / 0.9848 GB, free: 7.395 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001889/0.009403, allocations: 79.95 kB / 0.9849 GB, free: 7.305 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.009414, allocations: 8.125 kB / 0.9849 GB, free: 7.297 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.009426, allocations: 384 / 0.9849 GB, free: 7.297 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.009435, allocations: 4.375 kB / 0.9849 GB, free: 7.293 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.619e-05/0.009531, allocations: 39.91 kB / 0.9849 GB, free: 7.254 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002763/0.009808, allocations: 154.3 kB / 0.9851 GB, free: 7.07 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.009956, allocations: 77.17 kB / 0.9852 GB, free: 6.977 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.284e-05/0.01004, allocations: 49.81 kB / 0.9852 GB, free: 6.922 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.01005, allocations: 3.984 kB / 0.9852 GB, free: 6.918 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002851/0.01034, allocations: 113 kB / 0.9853 GB, free: 6.789 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.01034, allocations: 7.938 kB / 0.9853 GB, free: 6.781 MB / 0.8887 GB Notification: Performance of matching and sorting (n=14): time 0.0004179/0.01076, allocations: 181.5 kB / 0.9855 GB, free: 6.598 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.01086, allocations: 93.03 kB / 0.9856 GB, free: 6.488 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.01103, allocations: 153.7 kB / 0.9857 GB, free: 6.328 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.838e-05/0.01108, allocations: 33.7 kB / 0.9858 GB, free: 6.289 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 8.389e-05/0.01116, allocations: 104.5 kB / 0.9859 GB, free: 6.18 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.01122, allocations: 39.72 kB / 0.9859 GB, free: 6.141 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.964e-05/0.01132, allocations: 53.64 kB / 0.986 GB, free: 6.082 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.0115, allocations: 326.8 kB / 0.9863 GB, free: 5.754 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.925e-05/0.01158, allocations: 39.97 kB / 0.9863 GB, free: 5.715 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000749/0.01232, allocations: 0.5983 MB / 0.9869 GB, free: 4.965 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002205/0.01255, allocations: 97.64 kB / 0.987 GB, free: 4.863 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01255, allocations: 0 / 0.987 GB, free: 4.863 MB / 0.8887 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003028/0.01285, allocations: 161.5 kB / 0.9871 GB, free: 4.699 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.01288, allocations: 15.92 kB / 0.9871 GB, free: 4.684 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.579e-05/0.0129, allocations: 0 / 0.9871 GB, free: 4.684 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.938e-05/0.01294, allocations: 7.938 kB / 0.9872 GB, free: 4.676 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.325e-05/0.01302, allocations: 4 kB / 0.9872 GB, free: 4.672 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.01304, allocations: 4 kB / 0.9872 GB, free: 4.668 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003096/0.01335, allocations: 71.86 kB / 0.9872 GB, free: 4.598 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.01336, allocations: 4 kB / 0.9872 GB, free: 4.594 MB / 0.8887 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.0001535/0.01351, allocations: 141.7 kB / 0.9874 GB, free: 4.445 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.01361, allocations: 7.953 kB / 0.9874 GB, free: 4.438 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.878e-05/0.01365, allocations: 24.7 kB / 0.9874 GB, free: 4.414 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.01366, allocations: 3.938 kB / 0.9874 GB, free: 4.41 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.01366, allocations: 0 / 0.9874 GB, free: 4.41 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.01367, allocations: 0 / 0.9874 GB, free: 4.41 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.01383, allocations: 137.2 kB / 0.9875 GB, free: 4.246 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.01383, allocations: 0 / 0.9875 GB, free: 4.246 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.804e-05/0.01387, allocations: 8 kB / 0.9875 GB, free: 4.238 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.01387, allocations: 0 / 0.9875 GB, free: 4.238 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.01388, allocations: 0 / 0.9875 GB, free: 4.238 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.501e-06/0.01389, allocations: 8 kB / 0.9876 GB, free: 4.23 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.01389, allocations: 3.938 kB / 0.9876 GB, free: 4.227 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/0.01418, allocations: 178.5 kB / 0.9877 GB, free: 4.031 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 3.14e-05/0.01421, allocations: 15.89 kB / 0.9877 GB, free: 4.016 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.01424, allocations: 4 kB / 0.9877 GB, free: 4.012 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.597e-05/0.01429, allocations: 4 kB / 0.9878 GB, free: 4.008 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.34e-05/0.01435, allocations: 11.92 kB / 0.9878 GB, free: 3.996 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.01436, allocations: 4 kB / 0.9878 GB, free: 3.992 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0001484/0.01451, allocations: 117.3 kB / 0.9879 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.4e-07/0.01451, allocations: 0 / 0.9879 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0004123/0.01492, allocations: 71.81 kB / 0.9879 GB, free: 3.809 MB / 0.8887 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.0004248/0.01534, allocations: 175.1 kB / 0.9881 GB, free: 3.629 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0003304/0.01568, allocations: 163.5 kB / 0.9883 GB, free: 3.457 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.01568, allocations: 4 kB / 0.9883 GB, free: 3.453 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 8.075e-05/0.01576, allocations: 39.91 kB / 0.9883 GB, free: 3.414 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001839/0.01594, allocations: 15.94 kB / 0.9883 GB, free: 3.398 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006202/0.01656, allocations: 230.6 kB / 0.9885 GB, free: 3.145 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.01669, allocations: 93.34 kB / 0.9886 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 5.219e-05/0.01674, allocations: 20.7 kB / 0.9887 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.414e-05/0.01677, allocations: 12.5 kB / 0.9887 GB, free: 2.992 MB / 0.8887 GB Notification: Performance of SimCode: time 4.7e-07/0.01677, allocations: 0 / 0.9887 GB, free: 2.992 MB / 0.8887 GB Notification: Performance of Templates: time 0.007806/0.02458, allocations: 2.693 MB / 0.9913 GB, free: 364 kB / 0.8887 GB " [Timeout remaining time 300] 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/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 8.619873441755772]