Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001693/0.001693, allocations: 106.7 kB / 16.36 MB, free: 6.363 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.001819/0.00182, allocations: 194 kB / 17.3 MB, free: 5.887 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.34/1.34, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.815/1.815, allocations: 292.3 MB / 0.5496 GB, free: 17.54 MB / 462.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.001548/0.001548, allocations: 75.02 kB / 0.6729 GB, free: 5.84 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2829, allocations: 114.5 MB / 0.7848 GB, free: 3.176 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.003029/0.286, allocations: 1.217 MB / 0.786 GB, free: 1.945 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009048/0.2869, allocations: 375.6 kB / 0.7863 GB, free: 1.574 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.027e-05/0.2869, allocations: 3.938 kB / 0.7863 GB, free: 1.57 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.912e-05/0.287, allocations: 4 kB / 0.7863 GB, free: 1.566 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 3.526e-05/0.287, allocations: 3.984 kB / 0.7863 GB, free: 1.562 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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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.0006535/0.2877, allocations: 95.66 kB / 0.7864 GB, free: 1.469 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 7.165e-05/0.2878, allocations: 15.98 kB / 0.7864 GB, free: 1.453 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.456e-05/0.2878, allocations: 4 kB / 0.7864 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 3.08e-05/0.2879, allocations: 11.92 kB / 0.7864 GB, free: 1.438 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 3.448e-05/0.2879, allocations: 4 kB / 0.7865 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.379e-05/0.2879, allocations: 4 kB / 0.7865 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.2881, allocations: 87.84 kB / 0.7865 GB, free: 1.344 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.2882, allocations: 15.91 kB / 0.7866 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.753e-05/0.2882, allocations: 11.94 kB / 0.7866 GB, free: 1.316 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.2885, allocations: 79.83 kB / 0.7866 GB, free: 1.238 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2885, allocations: 0 / 0.7866 GB, free: 1.238 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.405e-06/0.2885, allocations: 0 / 0.7866 GB, free: 1.238 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.577e-06/0.2885, allocations: 4 kB / 0.7866 GB, free: 1.234 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.0006146/0.2891, allocations: 369.2 kB / 0.787 GB, free: 0.8164 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/0.2892, allocations: 12.03 kB / 0.787 GB, free: 0.8047 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.54e-05/0.2892, allocations: 0.9375 kB / 0.787 GB, free: 0.8047 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.2894, allocations: 164.3 kB / 0.7872 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.2894, allocations: 4.375 kB / 0.7872 GB, free: 0.6016 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.2895, allocations: 12.31 kB / 0.7872 GB, free: 0.5898 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.2896, allocations: 38.23 kB / 0.7872 GB, free: 0.5469 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.2896, allocations: 192 / 0.7872 GB, free: 0.5469 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.2897, allocations: 3.938 kB / 0.7872 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.2897, allocations: 4 kB / 0.7872 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.944e-05/0.2897, allocations: 0 / 0.7872 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001895/0.2899, allocations: 153.7 kB / 0.7874 GB, free: 348 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 9.439e-05/0.29, allocations: 34.61 kB / 0.7874 GB, free: 304 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.514e-05/0.29, allocations: 16.8 kB / 0.7874 GB, free: 284 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.2901, allocations: 0 / 0.7874 GB, free: 284 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.2903, allocations: 63.47 kB / 0.7875 GB, free: 208 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.353e-06/0.2903, allocations: 0 / 0.7875 GB, free: 208 kB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0002254/0.2905, allocations: 61.62 kB / 0.7875 GB, free: 140 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.2906, allocations: 59.41 kB / 0.7876 GB, free: 68 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4601/0.7507, allocations: 97.78 kB / 0.7877 GB, free: 48.95 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.7508, allocations: 26.92 kB / 0.7877 GB, free: 48.91 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.454e-05/0.7508, allocations: 82.58 kB / 0.7878 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/0.7509, allocations: 11.69 kB / 0.7878 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.547e-05/0.7509, allocations: 20.39 kB / 0.7878 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.326e-05/0.751, allocations: 315.5 kB / 0.7881 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.324e-05/0.751, allocations: 7.297 kB / 0.7881 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.86e-05/0.7511, allocations: 33.05 kB / 0.7882 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.408e-05/0.7511, allocations: 48.52 kB / 0.7882 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.7511, allocations: 0 / 0.7882 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001222/0.7513, allocations: 68.8 kB / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.7513, allocations: 10.38 kB / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.7513, allocations: 0 / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.7513, allocations: 6.156 kB / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.732e-05/0.7514, allocations: 11.27 kB / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.7515, allocations: 0 / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.228e-05/0.7515, allocations: 8.688 kB / 0.7883 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.7515, allocations: 2.875 kB / 0.7883 GB, free: 48.41 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 6.682e-05/0.7516, allocations: 116.9 kB / 0.7884 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.7516, allocations: 0.75 kB / 0.7884 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.054e-05/0.7516, allocations: 7.188 kB / 0.7884 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.7517, allocations: 6.906 kB / 0.7884 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.7517, allocations: 0 / 0.7884 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.7517, allocations: 3.297 kB / 0.7884 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.7518, allocations: 157.9 kB / 0.7886 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.7518, allocations: 0 / 0.7886 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.168e-05/0.7518, allocations: 5.281 kB / 0.7886 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.7518, allocations: 0 / 0.7886 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.7518, allocations: 0 / 0.7886 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.7519, allocations: 6.812 kB / 0.7886 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7519, allocations: 4.312 kB / 0.7886 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001168/0.752, allocations: 83.06 kB / 0.7887 GB, free: 48.03 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.973e-05/0.752, allocations: 79.14 kB / 0.7888 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.752, allocations: 0 / 0.7888 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.18e-05/0.7521, allocations: 6.594 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.03e-05/0.7521, allocations: 4.906 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.7521, allocations: 5.375 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.156e-05/0.7521, allocations: 83.19 kB / 0.7889 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7521, allocations: 0 / 0.7889 GB, free: 47.86 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003271/0.7525, allocations: 30.97 kB / 0.7889 GB, free: 47.86 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.0003386/0.7528, allocations: 153 kB / 0.789 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000116/0.7529, allocations: 28.08 kB / 0.7891 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.753, allocations: 2.688 kB / 0.7891 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 3.966e-05/0.753, allocations: 16.81 kB / 0.7891 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001435/0.7531, allocations: 6.031 kB / 0.7891 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002433/0.7534, allocations: 123.9 kB / 0.7892 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.7535, allocations: 0.6763 MB / 0.7899 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.747e-05/0.7535, allocations: 10.25 kB / 0.7899 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of SimCode: time 3.41e-07/0.7536, allocations: 2.297 kB / 0.7899 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of Templates: time 0.002743/0.7563, allocations: 1.152 MB / 0.791 GB, free: 46.9 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1)