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: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_8_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_8_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 105.4 kB / 15.7 MB, free: 24 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.001272/0.001272, allocations: 192.9 kB / 16.64 MB, free: 6.594 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.493/1.493, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.776/1.776, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001485/0.001486, allocations: 73.77 kB / 0.6718 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2026, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.00226/0.2049, allocations: 1.205 MB / 0.7848 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007276/0.2056, allocations: 371.6 kB / 0.7852 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.399e-05/0.2057, allocations: 7.938 kB / 0.7852 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.523e-05/0.2057, allocations: 7.922 kB / 0.7852 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.945e-05/0.2057, allocations: 3.984 kB / 0.7852 GB, free: 11.68 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.0004732/0.2062, allocations: 103.6 kB / 0.7853 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.667e-05/0.2063, allocations: 8 kB / 0.7853 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.795e-05/0.2063, allocations: 4 kB / 0.7853 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.015e-05/0.2064, allocations: 11.98 kB / 0.7853 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 2.568e-05/0.2064, allocations: 7.922 kB / 0.7853 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.071e-05/0.2064, allocations: 0 / 0.7853 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.2066, allocations: 95.84 kB / 0.7854 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.297e-05/0.2066, allocations: 7.984 kB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.49e-05/0.2066, allocations: 8 kB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.2068, allocations: 79.83 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2068, allocations: 0 / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2068, allocations: 0 / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.2068, allocations: 0 / 0.7855 GB, free: 11.36 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.0004122/0.2072, allocations: 381.4 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2073, allocations: 11.97 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.784e-05/0.2073, allocations: 34.75 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.288e-05/0.2074, allocations: 4.938 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.864e-05/0.2074, allocations: 168.3 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.2075, allocations: 4.375 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.444e-06/0.2075, allocations: 384 / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.426e-05/0.2076, allocations: 46.23 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.2076, allocations: 7.938 kB / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-06/0.2076, allocations: 3.938 kB / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.2076, allocations: 0 / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.854e-05/0.2076, allocations: 4 kB / 0.7861 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002797/0.2079, allocations: 249 kB / 0.7864 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.081e-05/0.208, allocations: 38.44 kB / 0.7864 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.477e-05/0.2081, allocations: 20.94 kB / 0.7864 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.075e-06/0.2081, allocations: 0 / 0.7864 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/0.2083, allocations: 59.41 kB / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.103e-06/0.2083, allocations: 0 / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0001941/0.2085, allocations: 81.52 kB / 0.7866 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.2085, allocations: 51.41 kB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.191e-05/0.2086, allocations: 93.86 kB / 0.7867 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.2086, allocations: 25.7 kB / 0.7867 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.018e-05/0.2087, allocations: 88.12 kB / 0.7868 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.2087, allocations: 8.031 kB / 0.7868 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/0.2087, allocations: 21.72 kB / 0.7868 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.2089, allocations: 318.8 kB / 0.7871 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.013e-05/0.2089, allocations: 8 kB / 0.7871 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.662e-05/0.209, allocations: 35.42 kB / 0.7872 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.787e-05/0.209, allocations: 47.38 kB / 0.7872 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.209, allocations: 3.938 kB / 0.7872 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001351/0.2092, allocations: 81.52 kB / 0.7873 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.2092, allocations: 4 kB / 0.7873 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2092, allocations: 3.938 kB / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.2092, allocations: 4 kB / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.409e-05/0.2093, allocations: 8 kB / 0.7873 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.2093, allocations: 0 / 0.7873 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.423e-05/0.2093, allocations: 3.938 kB / 0.7873 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.2093, allocations: 8.062 kB / 0.7873 GB, free: 9.207 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 (curSeed,$PRE.curSeed,$whenCondition1,$outputAlias_y,$PRE.$outputAlias_y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.024e-05/0.2094, allocations: 122.4 kB / 0.7874 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.275e-05/0.2094, allocations: 8.016 kB / 0.7875 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.274e-05/0.2095, allocations: 3.562 kB / 0.7875 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.2095, allocations: 4 kB / 0.7875 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2095, allocations: 0 / 0.7875 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.2095, allocations: 0 / 0.7875 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002637/0.2097, allocations: 302.5 kB / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2098, allocations: 8.25 kB / 0.7878 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.673e-05/0.2098, allocations: 4 kB / 0.7878 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.2098, allocations: 4 kB / 0.7878 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.2098, allocations: 0 / 0.7878 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.2098, allocations: 4 kB / 0.7878 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2098, allocations: 0 / 0.7878 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001342/0.2099, allocations: 167.3 kB / 0.7879 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.059e-05/0.21, allocations: 81.11 kB / 0.788 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.21, allocations: 4 kB / 0.788 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.348e-05/0.2101, allocations: 4 kB / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.2101, allocations: 4 kB / 0.788 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-06/0.2101, allocations: 3.984 kB / 0.788 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.176e-05/0.2101, allocations: 75.28 kB / 0.7881 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2101, allocations: 0 / 0.7881 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002822/0.2104, allocations: 35.94 kB / 0.7881 GB, free: 8.285 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,$outputAlias_y,curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.0006256/0.2111, allocations: 0.7568 MB / 0.7889 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001126/0.2112, allocations: 31.98 kB / 0.7889 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2112, allocations: 0 / 0.7889 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 4.292e-05/0.2112, allocations: 27.91 kB / 0.7889 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.2115, allocations: 4.125 kB / 0.7889 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.2127, allocations: 1.251 MB / 0.7902 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.213, allocations: 0.6768 MB / 0.7908 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.192e-05/0.2131, allocations: 8 kB / 0.7908 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.861e-05/0.2131, allocations: 15.42 kB / 0.7908 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.2131, allocations: 0 / 0.7908 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01657/0.2297, allocations: 1.878 MB / 0.7927 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.703, allocations: 15.02 kB / 0.7927 GB, free: 3.625 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_8_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1)