Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007776/0.007776, allocations: 98.66 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 192.8 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.473/1.473, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.593/1.593, allocations: 251.7 MB / 0.5094 GB, free: 3.047 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 71.84 kB / 0.7258 GB, free: 9.078 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2868, allocations: 104.7 MB / 0.828 GB, free: 280 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002423/0.2893, allocations: 1.203 MB / 0.8292 GB, free: 15.06 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008252/0.2901, allocations: 387.9 kB / 0.8296 GB, free: 14.68 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.876e-05/0.2902, allocations: 3.938 kB / 0.8296 GB, free: 14.68 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.264e-05/0.2902, allocations: 3.984 kB / 0.8296 GB, free: 14.67 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 3.661e-05/0.2903, allocations: 0 / 0.8296 GB, free: 14.67 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:127:7-213:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.random'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:851:5-931:39:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift64star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/Random.mo:499:7-563:23:writable] Warning: Pure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState' contains a call to impure function 'Modelica.Math.Random.Utilities.initialStateWithXorshift64star'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:2:1-32:29:writable] Warning: Pure function 'Buildings.Occupants.BaseClasses.binaryVariableGeneration' contains a call to impure function 'Modelica.Math.Random.Generators.Xorshift1024star.initialState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.000594/0.2909, allocations: 91.59 kB / 0.8297 GB, free: 14.58 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 7.633e-05/0.291, allocations: 15.98 kB / 0.8297 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.391e-05/0.291, allocations: 4 kB / 0.8297 GB, free: 14.56 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 2.554e-05/0.291, allocations: 7.984 kB / 0.8297 GB, free: 14.55 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 3.212e-05/0.2911, allocations: 11.94 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.2911, allocations: 0 / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.2913, allocations: 95.84 kB / 0.8298 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.978e-05/0.2913, allocations: 3.984 kB / 0.8298 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.101e-05/0.2914, allocations: 7.938 kB / 0.8298 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.2916, allocations: 79.88 kB / 0.8299 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2916, allocations: 0 / 0.8299 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.565e-06/0.2916, allocations: 0 / 0.8299 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.2916, allocations: 0 / 0.8299 GB, free: 14.36 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005928/0.2922, allocations: 383.6 kB / 0.8302 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.2923, allocations: 12.03 kB / 0.8302 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.215e-05/0.2923, allocations: 4.938 kB / 0.8302 GB, free: 13.91 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.2925, allocations: 164.4 kB / 0.8304 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.2925, allocations: 4.375 kB / 0.8304 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.942e-05/0.2925, allocations: 8.312 kB / 0.8304 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001189/0.2926, allocations: 38.23 kB / 0.8305 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2927, allocations: 192 / 0.8305 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.2927, allocations: 3.938 kB / 0.8305 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.2927, allocations: 0 / 0.8305 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.131e-05/0.2927, allocations: 8 kB / 0.8305 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001843/0.2929, allocations: 153.7 kB / 0.8306 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.293, allocations: 34.61 kB / 0.8306 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.651e-05/0.2931, allocations: 16.8 kB / 0.8307 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.2931, allocations: 0 / 0.8307 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001291/0.2932, allocations: 59.48 kB / 0.8307 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.253e-06/0.2932, allocations: 0 / 0.8307 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0002036/0.2934, allocations: 69.53 kB / 0.8308 GB, free: 13.24 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.2935, allocations: 55.39 kB / 0.8308 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.895e-05/0.2936, allocations: 97.8 kB / 0.8309 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.2936, allocations: 29.7 kB / 0.831 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.223e-05/0.2936, allocations: 84.14 kB / 0.831 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.2937, allocations: 3.906 kB / 0.831 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.308e-05/0.2937, allocations: 25.83 kB / 0.8311 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.945e-05/0.2938, allocations: 318.8 kB / 0.8314 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.957e-05/0.2938, allocations: 7.938 kB / 0.8314 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.746e-05/0.2939, allocations: 35.42 kB / 0.8314 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.823e-05/0.2939, allocations: 47.38 kB / 0.8315 GB, free: 12.48 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.294, allocations: 0 / 0.8315 GB, free: 12.48 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.296e-05/0.294, allocations: 69.61 kB / 0.8315 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.2941, allocations: 7.938 kB / 0.8315 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.2941, allocations: 0 / 0.8315 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.2941, allocations: 7.938 kB / 0.8315 GB, free: 12.39 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.978e-05/0.2942, allocations: 7.938 kB / 0.8315 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2942, allocations: 4 kB / 0.8316 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.678e-05/0.2942, allocations: 11.94 kB / 0.8316 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.2942, allocations: 4.234 kB / 0.8316 GB, free: 12.36 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (y,$PRE.y,curSeed,$PRE.curSeed,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * 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 8.581e-05/0.2943, allocations: 109.8 kB / 0.8317 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.557e-05/0.2943, allocations: 15.92 kB / 0.8317 GB, free: 12.23 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.2944, allocations: 7.484 kB / 0.8317 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.2944, allocations: 0 / 0.8317 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2944, allocations: 0 / 0.8317 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2944, allocations: 0 / 0.8317 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.2945, allocations: 157.7 kB / 0.8318 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2945, allocations: 4 kB / 0.8318 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.225e-05/0.2945, allocations: 4 kB / 0.8319 GB, free: 12 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2946, allocations: 3.938 kB / 0.8319 GB, free: 12 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.2946, allocations: 0 / 0.8319 GB, free: 12 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2946, allocations: 0 / 0.8319 GB, free: 12 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2946, allocations: 0 / 0.8319 GB, free: 12 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.2947, allocations: 85.05 kB / 0.8319 GB, free: 11.9 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.399e-05/0.2948, allocations: 81.11 kB / 0.832 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.538e-05/0.2948, allocations: 3.938 kB / 0.832 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.939e-05/0.2948, allocations: 4 kB / 0.832 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.69e-05/0.2948, allocations: 3.984 kB / 0.832 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-06/0.2948, allocations: 4 kB / 0.832 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.714e-05/0.2949, allocations: 75.28 kB / 0.8321 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.2949, allocations: 0 / 0.8321 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002257/0.2951, allocations: 31.98 kB / 0.8321 GB, free: 11.68 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,y,curSeed) * Number of discrete states: 0 () * 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.0003327/0.2955, allocations: 160.7 kB / 0.8323 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000114/0.2956, allocations: 35.86 kB / 0.8323 GB, free: 11.49 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2956, allocations: 0 / 0.8323 GB, free: 11.49 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 3.234e-05/0.2956, allocations: 8 kB / 0.8323 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.2958, allocations: 4.234 kB / 0.8323 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002232/0.296, allocations: 107.5 kB / 0.8324 GB, free: 11.35 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.2962, allocations: 0.6846 MB / 0.8331 GB, free: 10.64 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 2.019e-05/0.2962, allocations: 4 kB / 0.8331 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.635e-05/0.2963, allocations: 7.438 kB / 0.8331 GB, free: 10.62 MB / 0.6544 GB Notification: Performance of SimCode: time 2.11e-07/0.2963, allocations: 0 / 0.8331 GB, free: 10.62 MB / 0.6544 GB Notification: Performance of Templates: time 0.003358/0.2996, allocations: 0.9612 MB / 0.8341 GB, free: 9.668 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1)