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.001162/0.001162, allocations: 104.5 kB / 16.29 MB, free: 6.43 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.001353/0.001353, allocations: 182.8 kB / 17.22 MB, free: 5.934 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.601/1.601, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.969/1.969, allocations: 292.3 MB / 0.5495 GB, free: 17.46 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.001576/0.001576, allocations: 63.91 kB / 0.6722 GB, free: 6.5 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.243, allocations: 114.6 MB / 0.7841 GB, free: 3.832 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.002718/0.2457, allocations: 1.202 MB / 0.7852 GB, free: 2.613 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008478/0.2466, allocations: 379.7 kB / 0.7856 GB, free: 2.238 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.316e-05/0.2467, allocations: 3.938 kB / 0.7856 GB, free: 2.234 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.777e-05/0.2467, allocations: 0 / 0.7856 GB, free: 2.234 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 4.145e-05/0.2468, allocations: 8 kB / 0.7856 GB, free: 2.227 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.0007741/0.2475, allocations: 95.59 kB / 0.7857 GB, free: 2.133 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 8.325e-05/0.2476, allocations: 19.92 kB / 0.7857 GB, free: 2.113 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.868e-05/0.2477, allocations: 3.984 kB / 0.7857 GB, free: 2.109 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 2.599e-05/0.2477, allocations: 4 kB / 0.7857 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 3.927e-05/0.2478, allocations: 11.98 kB / 0.7857 GB, free: 2.094 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.2478, allocations: 0 / 0.7857 GB, free: 2.094 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002317/0.248, allocations: 87.84 kB / 0.7858 GB, free: 2.008 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.427e-05/0.2481, allocations: 11.94 kB / 0.7858 GB, free: 1.996 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.236e-05/0.2481, allocations: 3.984 kB / 0.7858 GB, free: 1.992 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002258/0.2483, allocations: 91.81 kB / 0.7859 GB, free: 1.902 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.2483, allocations: 0 / 0.7859 GB, free: 1.902 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2484, allocations: 0 / 0.7859 GB, free: 1.902 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.2484, allocations: 0 / 0.7859 GB, free: 1.902 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.0006217/0.249, allocations: 369.5 kB / 0.7863 GB, free: 1.484 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/0.249, allocations: 8.031 kB / 0.7863 GB, free: 1.477 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.2491, allocations: 4.922 kB / 0.7863 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.2492, allocations: 168.3 kB / 0.7865 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.2493, allocations: 384 / 0.7865 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/0.2493, allocations: 12.31 kB / 0.7865 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.2494, allocations: 38.25 kB / 0.7865 GB, free: 1.215 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2495, allocations: 192 / 0.7865 GB, free: 1.215 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.2495, allocations: 3.938 kB / 0.7865 GB, free: 1.211 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.2495, allocations: 3.984 kB / 0.7865 GB, free: 1.207 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.781e-05/0.2495, allocations: 7.984 kB / 0.7865 GB, free: 1.199 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002012/0.2497, allocations: 153.7 kB / 0.7867 GB, free: 1 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 9.721e-05/0.2498, allocations: 26.58 kB / 0.7867 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.352e-05/0.2499, allocations: 24.88 kB / 0.7867 GB, free: 0.9375 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.164e-05/0.2499, allocations: 3.938 kB / 0.7867 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000188/0.2501, allocations: 51.41 kB / 0.7868 GB, free: 0.8711 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.222e-06/0.2501, allocations: 0 / 0.7868 GB, free: 0.8711 MB / 0.6544 GB Notification: Performance of matching and sorting (n=4): time 0.0002476/0.2504, allocations: 69.61 kB / 0.7868 GB, free: 0.7969 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.2504, allocations: 55.34 kB / 0.7869 GB, free: 0.7305 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.072e-05/0.2505, allocations: 101.8 kB / 0.787 GB, free: 0.6211 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.2506, allocations: 25.7 kB / 0.787 GB, free: 0.5898 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.95e-05/0.2506, allocations: 84.14 kB / 0.7871 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.2506, allocations: 7.906 kB / 0.7871 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-05/0.2507, allocations: 17.72 kB / 0.7871 GB, free: 484 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.2508, allocations: 318.8 kB / 0.7874 GB, free: 156 kB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.519e-05/0.2508, allocations: 4 kB / 0.7874 GB, free: 152 kB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.741e-05/0.2509, allocations: 39.56 kB / 0.7875 GB, free: 100 kB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.757e-05/0.251, allocations: 51.3 kB / 0.7875 GB, free: 36 kB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.251, allocations: 4 kB / 0.7875 GB, free: 32 kB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.5082/0.7592, allocations: 62.53 kB / 0.7876 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.7592, allocations: 9.312 kB / 0.7876 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.7593, allocations: 1.75 kB / 0.7876 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.7593, allocations: 1.531 kB / 0.7876 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.7594, allocations: 10.69 kB / 0.7876 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.7595, allocations: 1.469 kB / 0.7876 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.255e-05/0.7595, allocations: 7.125 kB / 0.7876 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.7595, allocations: 3.219 kB / 0.7876 GB, free: 48.44 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 9.647e-05/0.7596, allocations: 117.6 kB / 0.7877 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.7597, allocations: 4.547 kB / 0.7877 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.271e-05/0.7597, allocations: 8.281 kB / 0.7877 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.7597, allocations: 0 / 0.7877 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.7597, allocations: 0 / 0.7877 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.7597, allocations: 0 / 0.7877 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/0.7599, allocations: 161.4 kB / 0.7879 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.7599, allocations: 0.7031 kB / 0.7879 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.069e-05/0.7599, allocations: 1.938 kB / 0.7879 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.7599, allocations: 3.578 kB / 0.7879 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.7599, allocations: 0 / 0.7879 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.7599, allocations: 0 / 0.7879 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.7599, allocations: 4.625 kB / 0.7879 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001637/0.7601, allocations: 94.58 kB / 0.788 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.59e-05/0.7601, allocations: 80.23 kB / 0.7881 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.7602, allocations: 3.375 kB / 0.7881 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.301e-05/0.7602, allocations: 3 kB / 0.7881 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.7602, allocations: 2.969 kB / 0.7881 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-06/0.7602, allocations: 0 / 0.7881 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.614e-05/0.7603, allocations: 80.97 kB / 0.7881 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of sort global known variables: time 6.31e-07/0.7603, allocations: 1.312 kB / 0.7881 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003354/0.7606, allocations: 32.19 kB / 0.7882 GB, free: 47.89 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.0003681/0.761, allocations: 157 kB / 0.7883 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000126/0.7611, allocations: 27.23 kB / 0.7883 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7611, allocations: 4.766 kB / 0.7884 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 3.549e-05/0.7612, allocations: 13.69 kB / 0.7884 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001675/0.7614, allocations: 10.47 kB / 0.7884 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000246/0.7616, allocations: 102.6 kB / 0.7885 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000136/0.7618, allocations: 0.6741 MB / 0.7891 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 2.246e-05/0.7618, allocations: 2.625 kB / 0.7891 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.708e-05/0.7618, allocations: 11.09 kB / 0.7891 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.7618, allocations: 3.062 kB / 0.7891 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of Templates: time 0.003236/0.7651, allocations: 0.9519 MB / 0.7901 GB, free: 47 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 cvode -lv LOG_STATS > Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1)