Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009303/0.0009303, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001064/0.001064, allocations: 181 kB / 23.36 MB, free: 1.129 MB / 18.57 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.044/1.044, allocations: 177.1 MB / 203.8 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.411/2.411, allocations: 438.8 MB / 0.6826 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 0.8385 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.848e-05/1.97e-05, allocations: 2.312 kB / 0.8385 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.001658/0.001678, allocations: 1.259 MB / 0.8398 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0005808/0.002259, allocations: 378.6 kB / 0.8401 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.534e-05/0.002284, allocations: 0 / 0.8401 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 6.732e-05/0.002352, allocations: 4 kB / 0.8401 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 1.714e-05/0.002369, allocations: 3.938 kB / 0.8401 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004065/0.002775, allocations: 103.6 kB / 0.8402 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 6.537e-05/0.002841, allocations: 23.92 kB / 0.8403 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 2.954e-05/0.00287, allocations: 3.984 kB / 0.8403 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 3.246e-05/0.002903, allocations: 11.98 kB / 0.8403 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 2.612e-05/0.002929, allocations: 7.922 kB / 0.8403 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.002941, allocations: 4 kB / 0.8403 GB, free: 12.49 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001852/0.003126, allocations: 127.7 kB / 0.8404 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 3.459e-05/0.003161, allocations: 19.92 kB / 0.8404 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.908e-05/0.00318, allocations: 11.94 kB / 0.8404 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.003328, allocations: 119.6 kB / 0.8405 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.003331, allocations: 3.984 kB / 0.8406 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.11e-07/0.003332, allocations: 0 / 0.8406 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.166e-06/0.003335, allocations: 0 / 0.8406 GB, free: 12.21 MB / 0.8073 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.0003219/0.003657, allocations: 335.1 kB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.003687, allocations: 16.56 kB / 0.8409 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.89e-05/0.003756, allocations: 8.875 kB / 0.8409 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.052e-05/0.003836, allocations: 121.6 kB / 0.841 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.00385, allocations: 4.375 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.003861, allocations: 8.359 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.527e-05/0.003956, allocations: 84.53 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.003963, allocations: 4.188 kB / 0.8411 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-06/0.003969, allocations: 4.375 kB / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.003973, allocations: 384 / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.911e-05/0.003992, allocations: 20.53 kB / 0.8411 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.04e-05/0.004063, allocations: 79.72 kB / 0.8412 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.08e-05/0.004114, allocations: 50.48 kB / 0.8413 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.505e-05/0.004139, allocations: 24.86 kB / 0.8413 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 5.65e-06/0.004144, allocations: 4 kB / 0.8413 GB, free: 11.37 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.993e-05/0.004234, allocations: 108 kB / 0.8414 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=37): time 6.81e-07/0.004235, allocations: 0 / 0.8414 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of matching and sorting (n=37): time 0.0001816/0.004417, allocations: 209.9 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.004463, allocations: 79.39 kB / 0.8417 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.627e-05/0.004519, allocations: 118.6 kB / 0.8418 GB, free: 10.82 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.004544, allocations: 53.62 kB / 0.8418 GB, free: 10.77 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.601e-05/0.00457, allocations: 88.78 kB / 0.8419 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.494e-05/0.004625, allocations: 91.27 kB / 0.842 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.447e-05/0.00469, allocations: 93.59 kB / 0.8421 GB, free: 10.49 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.004768, allocations: 338.7 kB / 0.8424 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.717e-05/0.004815, allocations: 51.47 kB / 0.8425 GB, free: 10.1 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.711e-05/0.004892, allocations: 113.3 kB / 0.8426 GB, free: 9.965 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.005042, allocations: 211 kB / 0.8428 GB, free: 9.742 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.005045, allocations: 0 / 0.8428 GB, free: 9.742 MB / 0.8073 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0002057/0.00525, allocations: 254.9 kB / 0.843 GB, free: 9.484 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/0.00526, allocations: 8.156 kB / 0.843 GB, free: 9.477 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.005265, allocations: 0 / 0.843 GB, free: 9.477 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.005277, allocations: 4 kB / 0.843 GB, free: 9.473 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.005418, allocations: 75.84 kB / 0.8431 GB, free: 9.398 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.005422, allocations: 4 kB / 0.8431 GB, free: 9.395 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.849e-05/0.005461, allocations: 31.73 kB / 0.8431 GB, free: 9.363 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.005472, allocations: 11.94 kB / 0.8431 GB, free: 9.352 MB / 0.8073 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 9.515e-05/0.005567, allocations: 168.6 kB / 0.8433 GB, free: 9.176 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.624e-06/0.005574, allocations: 7.938 kB / 0.8433 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.029e-05/0.005595, allocations: 9.312 kB / 0.8433 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.005596, allocations: 0 / 0.8433 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.005598, allocations: 0 / 0.8433 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.005602, allocations: 7.984 kB / 0.8433 GB, free: 9.152 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.181e-05/0.005674, allocations: 85.61 kB / 0.8434 GB, free: 9.051 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.005675, allocations: 0 / 0.8434 GB, free: 9.051 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.663e-06/0.005681, allocations: 8 kB / 0.8434 GB, free: 9.043 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.005683, allocations: 0 / 0.8434 GB, free: 9.043 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-06/0.005687, allocations: 0 / 0.8434 GB, free: 9.043 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.005688, allocations: 0 / 0.8434 GB, free: 9.043 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.005689, allocations: 0 / 0.8434 GB, free: 9.043 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001412/0.00583, allocations: 193 kB / 0.8436 GB, free: 8.836 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.199e-05/0.005842, allocations: 19.84 kB / 0.8436 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.005862, allocations: 19.98 kB / 0.8436 GB, free: 8.797 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.246e-06/0.00587, allocations: 0 / 0.8436 GB, free: 8.797 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.242e-05/0.005882, allocations: 0 / 0.8436 GB, free: 8.797 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.005886, allocations: 4 kB / 0.8436 GB, free: 8.793 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.084e-05/0.005897, allocations: 16.84 kB / 0.8437 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.005897, allocations: 0 / 0.8437 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001645/0.006061, allocations: 47.94 kB / 0.8437 GB, free: 8.727 MB / 0.8073 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.000287/0.006348, allocations: 217 kB / 0.8439 GB, free: 8.531 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001415/0.00649, allocations: 139.8 kB / 0.844 GB, free: 8.395 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.006493, allocations: 0 / 0.844 GB, free: 8.395 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.854e-05/0.006521, allocations: 44.83 kB / 0.8441 GB, free: 8.348 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.84e-05/0.006579, allocations: 11.92 kB / 0.8441 GB, free: 8.336 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002618/0.006841, allocations: 233.9 kB / 0.8443 GB, free: 8.078 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.521e-05/0.006876, allocations: 80.14 kB / 0.8444 GB, free: 7.98 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.315e-05/0.0069, allocations: 12.64 kB / 0.8444 GB, free: 7.969 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.755e-05/0.006937, allocations: 63.31 kB / 0.8445 GB, free: 7.906 MB / 0.8073 GB Notification: Performance of SimCode: time 6.41e-07/0.006938, allocations: 0 / 0.8445 GB, free: 7.906 MB / 0.8073 GB Notification: Performance of Templates: time 0.003101/0.01004, allocations: 1.706 MB / 0.8461 GB, free: 6.223 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.259921120014042]