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.001074/0.001074, allocations: 103.4 kB / 16.27 MB, free: 5.977 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.001212/0.001212, allocations: 191.3 kB / 17.2 MB, free: 5.602 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.319/1.319, allocations: 205.1 MB / 223.1 MB, free: 12.28 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.747/1.747, allocations: 292.3 MB / 0.5495 GB, free: 17.52 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.002638/0.002638, allocations: 70.83 kB / 0.6722 GB, free: 6.605 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.303, allocations: 114.6 MB / 0.784 GB, free: 3.934 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002832/0.3059, allocations: 1.193 MB / 0.7852 GB, free: 2.727 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009943/0.3069, allocations: 395.5 kB / 0.7856 GB, free: 2.336 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.744e-05/0.307, allocations: 4 kB / 0.7856 GB, free: 2.332 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.634e-05/0.307, allocations: 3.938 kB / 0.7856 GB, free: 2.328 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 3.925e-05/0.3071, allocations: 0 / 0.7856 GB, free: 2.328 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.0006082/0.3077, allocations: 87.72 kB / 0.7857 GB, free: 2.242 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 6.491e-05/0.3078, allocations: 19.86 kB / 0.7857 GB, free: 2.223 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.076e-05/0.3078, allocations: 7.984 kB / 0.7857 GB, free: 2.215 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 2.396e-05/0.3078, allocations: 4 kB / 0.7857 GB, free: 2.211 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 3.255e-05/0.3079, allocations: 7.984 kB / 0.7857 GB, free: 2.203 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.3079, allocations: 4 kB / 0.7857 GB, free: 2.199 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002103/0.3081, allocations: 91.84 kB / 0.7858 GB, free: 2.109 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.095e-05/0.3082, allocations: 7.938 kB / 0.7858 GB, free: 2.102 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.219e-05/0.3082, allocations: 7.984 kB / 0.7858 GB, free: 2.094 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002102/0.3084, allocations: 83.81 kB / 0.7859 GB, free: 2.012 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3084, allocations: 0 / 0.7859 GB, free: 2.012 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.244e-06/0.3084, allocations: 0 / 0.7859 GB, free: 2.012 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.3085, allocations: 4 kB / 0.7859 GB, free: 2.008 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.0005253/0.309, allocations: 365.5 kB / 0.7862 GB, free: 1.594 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.309, allocations: 12.03 kB / 0.7862 GB, free: 1.582 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.937e-05/0.3091, allocations: 4.922 kB / 0.7863 GB, free: 1.578 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.3092, allocations: 172.3 kB / 0.7864 GB, free: 1.371 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.3092, allocations: 8.375 kB / 0.7864 GB, free: 1.363 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.3093, allocations: 384 / 0.7864 GB, free: 1.363 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.3094, allocations: 34.25 kB / 0.7865 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3094, allocations: 4.125 kB / 0.7865 GB, free: 1.32 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.3094, allocations: 3.938 kB / 0.7865 GB, free: 1.316 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.3095, allocations: 4 kB / 0.7865 GB, free: 1.312 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.633e-05/0.3095, allocations: 7.984 kB / 0.7865 GB, free: 1.305 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.3097, allocations: 153.7 kB / 0.7866 GB, free: 1.105 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 9.037e-05/0.3098, allocations: 26.58 kB / 0.7866 GB, free: 1.07 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.733e-05/0.3098, allocations: 20.88 kB / 0.7867 GB, free: 1.047 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.3098, allocations: 0 / 0.7867 GB, free: 1.047 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001474/0.31, allocations: 59.34 kB / 0.7867 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.31, allocations: 0 / 0.7867 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0002068/0.3102, allocations: 73.55 kB / 0.7868 GB, free: 0.8984 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.3103, allocations: 55.41 kB / 0.7868 GB, free: 0.832 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.386e-05/0.3103, allocations: 93.84 kB / 0.7869 GB, free: 0.7305 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.3104, allocations: 33.7 kB / 0.787 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.385e-05/0.3104, allocations: 80.14 kB / 0.787 GB, free: 0.6094 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.3104, allocations: 3.906 kB / 0.787 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.3105, allocations: 21.72 kB / 0.7871 GB, free: 0.5781 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3106, allocations: 323 kB / 0.7874 GB, free: 260 kB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.983e-05/0.3107, allocations: 4 kB / 0.7874 GB, free: 256 kB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.958e-05/0.3107, allocations: 35.38 kB / 0.7874 GB, free: 208 kB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.438e-05/0.3108, allocations: 47.36 kB / 0.7875 GB, free: 148 kB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3108, allocations: 4 kB / 0.7875 GB, free: 144 kB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001457/0.3109, allocations: 69.53 kB / 0.7875 GB, free: 68 kB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.311, allocations: 7.938 kB / 0.7875 GB, free: 60 kB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.311, allocations: 4 kB / 0.7875 GB, free: 56 kB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.311, allocations: 0 / 0.7875 GB, free: 56 kB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.969e-05/0.3111, allocations: 7.984 kB / 0.7875 GB, free: 48 kB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.3111, allocations: 4 kB / 0.7876 GB, free: 44 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.463e-05/0.3111, allocations: 4 kB / 0.7876 GB, free: 40 kB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.3111, allocations: 4 kB / 0.7876 GB, free: 36 kB / 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 0.4432/0.7544, allocations: 117.4 kB / 0.7877 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/0.7545, allocations: 5.484 kB / 0.7877 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.7545, allocations: 4.094 kB / 0.7877 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.7545, allocations: 0.9062 kB / 0.7877 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.7545, allocations: 0 / 0.7877 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.7546, allocations: 0.9688 kB / 0.7877 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.7547, allocations: 157.9 kB / 0.7878 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.7548, allocations: 2.422 kB / 0.7878 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.194e-05/0.7548, allocations: 1.844 kB / 0.7878 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.7548, allocations: 2.625 kB / 0.7878 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.7548, allocations: 0 / 0.7878 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.7548, allocations: 6.219 kB / 0.7878 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.7548, allocations: 3.109 kB / 0.7878 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001825/0.755, allocations: 90.73 kB / 0.7879 GB, free: 48.08 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.879e-05/0.7551, allocations: 77.11 kB / 0.788 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.7551, allocations: 4.969 kB / 0.788 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.684e-05/0.7551, allocations: 2.281 kB / 0.788 GB, free: 47.99 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.7552, allocations: 7.453 kB / 0.788 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-06/0.7552, allocations: 5.344 kB / 0.788 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.196e-05/0.7552, allocations: 75.28 kB / 0.7881 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.132e-06/0.7552, allocations: 1 kB / 0.7881 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003462/0.7556, allocations: 35.8 kB / 0.7881 GB, free: 47.91 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.0003583/0.7559, allocations: 147.4 kB / 0.7883 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001406/0.7561, allocations: 30.45 kB / 0.7883 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.7561, allocations: 0.6875 kB / 0.7883 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 4.257e-05/0.7561, allocations: 17.3 kB / 0.7883 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001429/0.7563, allocations: 5.406 kB / 0.7883 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002482/0.7566, allocations: 124 kB / 0.7884 GB, free: 47.7 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001227/0.7567, allocations: 0.6753 MB / 0.7891 GB, free: 47.01 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.784e-05/0.7567, allocations: 10.69 kB / 0.7891 GB, free: 47 MB / 0.6544 GB Notification: Performance of SimCode: time 4.31e-07/0.7567, allocations: 0 / 0.7891 GB, free: 47 MB / 0.6544 GB Notification: Performance of Templates: time 0.002963/0.7597, allocations: 1.15 MB / 0.7902 GB, free: 46.96 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)