Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.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.001793/0.001793, allocations: 104.3 kB / 19.7 MB, free: 2.004 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.001463/0.001463, allocations: 221 kB / 23 MB, free: 4.918 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.442/1.442, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.132/3.132, allocations: 0.4892 GB / 0.7951 GB, free: 35.7 MB / 0.6231 GB " [Timeout remaining time 177] 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.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") [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.002095/0.002095, allocations: 74.67 kB / 1.154 GB, free: 25.56 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3713, allocations: 176.1 MB / 1.326 GB, free: 1.895 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002596/0.3739, allocations: 1.238 MB / 1.327 GB, free: 0.6484 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009128/0.3748, allocations: 375.2 kB / 1.328 GB, free: 288 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.42e-05/0.3749, allocations: 0 / 1.328 GB, free: 288 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 8.212e-05/0.375, allocations: 0 / 1.328 GB, free: 288 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 1.861e-05/0.375, allocations: 3.938 kB / 1.328 GB, free: 284 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005498/0.3755, allocations: 103.7 kB / 1.328 GB, free: 180 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 7.775e-05/0.3756, allocations: 15.94 kB / 1.328 GB, free: 164 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.467e-05/0.3756, allocations: 3.984 kB / 1.328 GB, free: 160 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.678e-05/0.3757, allocations: 7.984 kB / 1.328 GB, free: 152 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.663e-05/0.3757, allocations: 15.92 kB / 1.328 GB, free: 136 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.3757, allocations: 4 kB / 1.328 GB, free: 132 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002834/0.376, allocations: 115.8 kB / 1.328 GB, free: 16 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 6.416e-05/0.3761, allocations: 20.06 kB / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.322e-05/0.3761, allocations: 27.78 kB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.3764, allocations: 119.4 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3764, allocations: 0 / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3764, allocations: 0 / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.3764, allocations: 0 / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0005571/0.3769, allocations: 364.5 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.377, allocations: 8.031 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.3771, allocations: 16.88 kB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.3772, allocations: 118.4 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.3772, allocations: 4.375 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.3772, allocations: 4.375 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.3774, allocations: 142.2 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.3774, allocations: 192 / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.3774, allocations: 3.938 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.3775, allocations: 7.938 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.616e-05/0.3775, allocations: 63.86 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.3777, allocations: 121.2 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.3778, allocations: 86.56 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.781e-05/0.3779, allocations: 68.88 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.3779, allocations: 0 / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.3782, allocations: 172 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of pre-optimization done (n=37): time 1.212e-06/0.3782, allocations: 4 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of matching and sorting (n=37): time 0.0005683/0.3787, allocations: 415.6 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.503e-05/0.3788, allocations: 83.38 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.3789, allocations: 117.8 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.379, allocations: 49.69 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.712e-05/0.379, allocations: 88.8 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.785e-05/0.3791, allocations: 99.3 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.3792, allocations: 89.67 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.3794, allocations: 338.8 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.3796, allocations: 140.6 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.3798, allocations: 209 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.3803, allocations: 405.2 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3803, allocations: 4 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0005669/0.3809, allocations: 442.4 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.3809, allocations: 7.984 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.3809, allocations: 4 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.3809, allocations: 3.938 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.381, allocations: 19.94 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.381, allocations: 7.984 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.46e-05/0.3811, allocations: 27.73 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.3811, allocations: 24.14 kB / 1.332 GB, free: 11.94 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 71 (y,$PRE.y,state[33],$PRE.state[33],state[32],$PRE.state[32],state[31],$PRE.state[31],state[30],$PRE.state[30],state[29],$PRE.state[29],state[28],$PRE.state[28],state[27],$PRE.state[27],state[26],$PRE.state[26],state[25],$PRE.state[25],state[24],$PRE.state[24],state[23],$PRE.state[23],state[22],$PRE.state[22],state[21],$PRE.state[21],state[20],$PRE.state[20],state[19],$PRE.state[19],state[18],$PRE.state[18],state[17],$PRE.state[17],state[16],$PRE.state[16],state[15],$PRE.state[15],state[14],$PRE.state[14],state[13],$PRE.state[13],state[12],$PRE.state[12],state[11],$PRE.state[11],state[10],$PRE.state[10],state[9],$PRE.state[9],state[8],$PRE.state[8],state[7],$PRE.state[7],state[6],$PRE.state[6],state[5],$PRE.state[5],state[4],$PRE.state[4],state[3],$PRE.state[3],state[2],$PRE.state[2],state[1],$PRE.state[1],r,$PRE.r,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * 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.0001849/0.3813, allocations: 169.8 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.895e-05/0.3813, allocations: 11.89 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.862e-05/0.3814, allocations: 13.48 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3814, allocations: 11.98 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3814, allocations: 0 / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3814, allocations: 0 / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.3815, allocations: 117.2 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3815, allocations: 3.984 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.368e-05/0.3815, allocations: 7.875 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3815, allocations: 0 / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.3815, allocations: 4 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3815, allocations: 3.938 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3815, allocations: 0 / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000398/0.3819, allocations: 331.6 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.814e-05/0.3819, allocations: 19.84 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.382, allocations: 27.92 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.934e-05/0.382, allocations: 3.938 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.331e-05/0.382, allocations: 4 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-06/0.382, allocations: 0 / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.6e-05/0.3821, allocations: 83.27 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3821, allocations: 0 / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003015/0.3824, allocations: 43.94 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,y,state[1],state[2],state[3],state[4],state[5],state[6],state[7],state[8],state[9],state[10],state[11],state[12],state[13],state[14],state[15],state[16],state[17],state[18],state[19],state[20],state[21],state[22],state[23],state[24],state[25],state[26],state[27],state[28],state[29],state[30],state[31],state[32],state[33],r) * Number of discrete states: 33 (state[1],state[2],state[3],state[4],state[5],state[6],state[7],state[8],state[9],state[10],state[11],state[12],state[13],state[14],state[15],state[16],state[17],state[18],state[19],state[20],state[21],state[22],state[23],state[24],state[25],state[26],state[27],state[28],state[29],state[30],state[31],state[32],state[33]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * 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.0004562/0.3828, allocations: 209 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003877/0.3832, allocations: 272.5 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3832, allocations: 4 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.013e-05/0.3833, allocations: 71.92 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000154/0.3835, allocations: 4.312 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004777/0.3839, allocations: 317.1 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.938e-05/0.384, allocations: 97.19 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.885e-05/0.3841, allocations: 19.44 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of SimCode: time 5.01e-07/0.3841, allocations: 0 / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of Templates: time 0.004887/0.389, allocations: 2.075 MB / 1.336 GB, free: 7.953 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.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: 11.587261273059994]