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.001608/0.001608, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 187.1 kB / 16.62 MB, free: 6.613 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.465/1.465, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.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.874/1.874, allocations: 292.3 MB / 0.549 GB, free: 12.78 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.001451/0.001451, allocations: 67.41 kB / 0.6722 GB, free: 26.05 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2543, allocations: 114.6 MB / 0.7841 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002473/0.2568, allocations: 1.197 MB / 0.7853 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008364/0.2577, allocations: 387.5 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.549e-05/0.2577, allocations: 0 / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.2577, allocations: 0 / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.694e-05/0.2578, allocations: 0 / 0.7856 GB, free: 11.19 MB / 0.6075 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.0005758/0.2584, allocations: 103.6 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.073e-05/0.2584, allocations: 19.97 kB / 0.7858 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.945e-05/0.2585, allocations: 4 kB / 0.7858 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.068e-05/0.2585, allocations: 3.938 kB / 0.7858 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.35e-05/0.2586, allocations: 7.984 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.2586, allocations: 0 / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002212/0.2588, allocations: 99.84 kB / 0.7859 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.158e-05/0.2588, allocations: 4 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.774e-05/0.2589, allocations: 11.92 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001967/0.2591, allocations: 83.81 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2591, allocations: 0 / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.984e-06/0.2591, allocations: 0 / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.2591, allocations: 0 / 0.786 GB, free: 10.86 MB / 0.6075 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.0005148/0.2596, allocations: 369.2 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.2597, allocations: 8.031 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.133e-05/0.2597, allocations: 16.83 kB / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.2598, allocations: 164.3 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.2599, allocations: 384 / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.2599, allocations: 4.375 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001158/0.26, allocations: 38.25 kB / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.26, allocations: 192 / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.26, allocations: 3.938 kB / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.2601, allocations: 0 / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.281e-05/0.2601, allocations: 11.92 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001931/0.2603, allocations: 157.7 kB / 0.7867 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.985e-05/0.2604, allocations: 30.52 kB / 0.7867 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.385e-05/0.2604, allocations: 12.94 kB / 0.7868 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.2605, allocations: 0 / 0.7868 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001449/0.2606, allocations: 55.39 kB / 0.7868 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.332e-06/0.2606, allocations: 4 kB / 0.7868 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0002012/0.2608, allocations: 73.55 kB / 0.7869 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.2609, allocations: 51.41 kB / 0.7869 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.261, allocations: 101.8 kB / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.261, allocations: 29.69 kB / 0.7871 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.91e-05/0.2611, allocations: 84.14 kB / 0.7871 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.2611, allocations: 11.81 kB / 0.7871 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.2611, allocations: 17.72 kB / 0.7872 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.2613, allocations: 323 kB / 0.7875 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.959e-05/0.2613, allocations: 8 kB / 0.7875 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.384e-05/0.2613, allocations: 31.44 kB / 0.7875 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.757e-05/0.2614, allocations: 43.36 kB / 0.7875 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2614, allocations: 8 kB / 0.7876 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.765e-05/0.2615, allocations: 65.62 kB / 0.7876 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2615, allocations: 8.719 kB / 0.7876 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2615, allocations: 0 / 0.7876 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.2616, allocations: 4 kB / 0.7876 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.851e-05/0.2616, allocations: 11.92 kB / 0.7876 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2616, allocations: 4 kB / 0.7876 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.44e-05/0.2617, allocations: 4 kB / 0.7877 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.2617, allocations: 4.094 kB / 0.7877 GB, free: 8.879 MB / 0.6075 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 7.862e-05/0.2618, allocations: 113.8 kB / 0.7878 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.2618, allocations: 7.938 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.448e-05/0.2618, allocations: 7.5 kB / 0.7878 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2618, allocations: 0 / 0.7878 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.2618, allocations: 0 / 0.7878 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2618, allocations: 0 / 0.7878 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.262, allocations: 153.7 kB / 0.7879 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.262, allocations: 0 / 0.7879 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.471e-05/0.262, allocations: 7.984 kB / 0.7879 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.262, allocations: 7.938 kB / 0.7879 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.262, allocations: 0 / 0.7879 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.262, allocations: 3.938 kB / 0.7879 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.262, allocations: 0 / 0.7879 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/0.2622, allocations: 89.02 kB / 0.788 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.2622, allocations: 81.11 kB / 0.7881 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.2622, allocations: 7.875 kB / 0.7881 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.207e-05/0.2623, allocations: 0 / 0.7881 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.899e-05/0.2623, allocations: 7.938 kB / 0.7881 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.2623, allocations: 4 kB / 0.7881 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.275e-05/0.2624, allocations: 79.27 kB / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2624, allocations: 0 / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000228/0.2626, allocations: 28 kB / 0.7882 GB, free: 8.188 MB / 0.6075 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.0003202/0.2629, allocations: 161.4 kB / 0.7884 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001235/0.2631, allocations: 35.92 kB / 0.7884 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2631, allocations: 0 / 0.7884 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 3.821e-05/0.2631, allocations: 15.92 kB / 0.7884 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.2633, allocations: 0 / 0.7884 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002375/0.2635, allocations: 104.9 kB / 0.7885 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.2638, allocations: 0.6768 MB / 0.7892 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.114e-05/0.2638, allocations: 8.188 kB / 0.7892 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.428e-05/0.2638, allocations: 7.438 kB / 0.7892 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2638, allocations: 0 / 0.7892 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of Templates: time 0.003364/0.2672, allocations: 0.957 MB / 0.7901 GB, free: 6.18 MB / 0.6075 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)