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.001121/0.001121, allocations: 103 kB / 16.36 MB, free: 6.461 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.001051/0.001051, allocations: 193.7 kB / 17.3 MB, free: 5.812 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.316/1.316, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.837/1.837, allocations: 292.3 MB / 0.5496 GB, free: 17.38 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.001486/0.001486, allocations: 79.17 kB / 0.6729 GB, free: 5.883 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2129, allocations: 114.6 MB / 0.7848 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002303/0.2152, allocations: 1.198 MB / 0.7859 GB, free: 1.992 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0007455/0.216, allocations: 375.7 kB / 0.7863 GB, free: 1.621 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.475e-05/0.216, allocations: 3.938 kB / 0.7863 GB, free: 1.617 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.975e-05/0.216, allocations: 0 / 0.7863 GB, free: 1.617 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 3.074e-05/0.2161, allocations: 0 / 0.7863 GB, free: 1.617 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.0005602/0.2166, allocations: 107.6 kB / 0.7864 GB, free: 1.512 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 5.527e-05/0.2167, allocations: 11.92 kB / 0.7864 GB, free: 1.5 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.619e-05/0.2168, allocations: 12 kB / 0.7864 GB, free: 1.488 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 2.159e-05/0.2168, allocations: 7.984 kB / 0.7864 GB, free: 1.48 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 2.694e-05/0.2168, allocations: 3.984 kB / 0.7864 GB, free: 1.477 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.2168, allocations: 4 kB / 0.7865 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001896/0.217, allocations: 91.84 kB / 0.7865 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.915e-05/0.2171, allocations: 11.92 kB / 0.7866 GB, free: 1.371 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.875e-05/0.2171, allocations: 4 kB / 0.7866 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.2173, allocations: 79.83 kB / 0.7866 GB, free: 1.289 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2173, allocations: 0 / 0.7866 GB, free: 1.289 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2173, allocations: 4 kB / 0.7866 GB, free: 1.285 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.047e-06/0.2173, allocations: 0 / 0.7866 GB, free: 1.285 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.0004393/0.2178, allocations: 373.2 kB / 0.787 GB, free: 0.8633 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2178, allocations: 12.03 kB / 0.787 GB, free: 0.8516 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.186e-05/0.2178, allocations: 0.9375 kB / 0.787 GB, free: 0.8516 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.2179, allocations: 168.3 kB / 0.7872 GB, free: 0.6484 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.218, allocations: 8.312 kB / 0.7872 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.218, allocations: 384 / 0.7872 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.822e-05/0.2181, allocations: 38.25 kB / 0.7872 GB, free: 0.5977 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.2181, allocations: 192 / 0.7872 GB, free: 0.5977 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.2181, allocations: 11.92 kB / 0.7872 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.2181, allocations: 4 kB / 0.7872 GB, free: 0.582 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.99e-05/0.2182, allocations: 0 / 0.7872 GB, free: 0.582 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001463/0.2183, allocations: 153.7 kB / 0.7874 GB, free: 392 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 8.315e-05/0.2184, allocations: 34.55 kB / 0.7874 GB, free: 348 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.101e-05/0.2185, allocations: 8.859 kB / 0.7874 GB, free: 336 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.2185, allocations: 7.938 kB / 0.7874 GB, free: 328 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001449/0.2186, allocations: 55.5 kB / 0.7875 GB, free: 260 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.392e-06/0.2186, allocations: 0 / 0.7875 GB, free: 260 kB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.000191/0.2188, allocations: 65.8 kB / 0.7875 GB, free: 188 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.2189, allocations: 59.34 kB / 0.7876 GB, free: 116 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.187e-05/0.219, allocations: 97.84 kB / 0.7877 GB, free: 8 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.3462/0.5651, allocations: 29.7 kB / 0.7877 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.51e-05/0.5652, allocations: 80.98 kB / 0.7878 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.551e-05/0.5653, allocations: 8.688 kB / 0.7878 GB, free: 48.72 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.5653, allocations: 19.83 kB / 0.7878 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.322e-05/0.5654, allocations: 316.6 kB / 0.7881 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.32e-05/0.5654, allocations: 9.594 kB / 0.7881 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.38e-05/0.5655, allocations: 33.48 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.247e-05/0.5655, allocations: 46.88 kB / 0.7882 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.5655, allocations: 0.8438 kB / 0.7882 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001119/0.5657, allocations: 70.62 kB / 0.7883 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.5657, allocations: 12.28 kB / 0.7883 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.5657, allocations: 0 / 0.7883 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.5657, allocations: 6.125 kB / 0.7883 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.231e-05/0.5658, allocations: 6.75 kB / 0.7883 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.5658, allocations: 0 / 0.7883 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.851e-05/0.5658, allocations: 6.5 kB / 0.7883 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.5659, allocations: 2.844 kB / 0.7883 GB, free: 48.3 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 5.619e-05/0.5659, allocations: 119.2 kB / 0.7884 GB, free: 48.19 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.5659, allocations: 1.938 kB / 0.7884 GB, free: 48.19 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.813e-05/0.566, allocations: 10 kB / 0.7884 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.566, allocations: 3.938 kB / 0.7884 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.566, allocations: 1.938 kB / 0.7884 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.566, allocations: 0 / 0.7884 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.973e-05/0.5661, allocations: 159.9 kB / 0.7886 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.5661, allocations: 2.719 kB / 0.7886 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.129e-05/0.5661, allocations: 2.531 kB / 0.7886 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.5661, allocations: 0.5938 kB / 0.7886 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.5661, allocations: 2.875 kB / 0.7886 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.5661, allocations: 3.938 kB / 0.7886 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5662, allocations: 6.781 kB / 0.7886 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.5663, allocations: 79.36 kB / 0.7887 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.046e-05/0.5663, allocations: 79.45 kB / 0.7888 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.5663, allocations: 2.844 kB / 0.7888 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.298e-05/0.5663, allocations: 8.031 kB / 0.7888 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.5664, allocations: 0 / 0.7888 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.5664, allocations: 6.844 kB / 0.7888 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.147e-05/0.5664, allocations: 79.75 kB / 0.7889 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5664, allocations: 1.312 kB / 0.7889 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002812/0.5667, allocations: 29.53 kB / 0.7889 GB, free: 47.75 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.0002675/0.567, allocations: 160.2 kB / 0.789 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001033/0.5671, allocations: 29.86 kB / 0.7891 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.5671, allocations: 3.172 kB / 0.7891 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 3.281e-05/0.5671, allocations: 12.28 kB / 0.7891 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.5673, allocations: 5.109 kB / 0.7891 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002091/0.5675, allocations: 99.91 kB / 0.7892 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.979e-05/0.5676, allocations: 0.6792 MB / 0.7898 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 1.911e-05/0.5676, allocations: 7.719 kB / 0.7898 GB, free: 46.88 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.283e-05/0.5676, allocations: 7.938 kB / 0.7899 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of SimCode: time 2.9e-07/0.5676, allocations: 0 / 0.7899 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of Templates: time 0.002886/0.5705, allocations: 0.9548 MB / 0.7908 GB, free: 46.84 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1)