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.00149/0.001491, allocations: 108 kB / 15.61 MB, free: 152 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.001666/0.001667, allocations: 195.2 kB / 16.53 MB, free: 6.664 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 / 222.4 MB, free: 4.605 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.674/1.674, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001415/0.001415, allocations: 67.22 kB / 0.6716 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1695, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.00221/0.1717, allocations: 1.202 MB / 0.7846 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007008/0.1725, allocations: 383.5 kB / 0.785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.05e-05/0.1725, allocations: 0 / 0.785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.679e-05/0.1725, allocations: 7.938 kB / 0.785 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.652e-05/0.1726, allocations: 0 / 0.785 GB, free: 11.8 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.0005026/0.1731, allocations: 103.6 kB / 0.7851 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.334e-05/0.1731, allocations: 15.98 kB / 0.7851 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.841e-05/0.1732, allocations: 7.938 kB / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.761e-05/0.1732, allocations: 3.984 kB / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 2.412e-05/0.1732, allocations: 4 kB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.1732, allocations: 0 / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.1734, allocations: 95.84 kB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.763e-05/0.1735, allocations: 7.984 kB / 0.7852 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.769e-05/0.1735, allocations: 11.94 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.1737, allocations: 83.81 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1737, allocations: 0 / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.172e-06/0.1737, allocations: 0 / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.1737, allocations: 0 / 0.7853 GB, free: 11.47 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.0004147/0.1741, allocations: 377.4 kB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.1741, allocations: 8.031 kB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.937e-05/0.1742, allocations: 34.75 kB / 0.7857 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.355e-05/0.1742, allocations: 0.9375 kB / 0.7857 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.76e-05/0.1743, allocations: 164.4 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.1744, allocations: 8.375 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.1744, allocations: 4.359 kB / 0.7859 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.738e-05/0.1745, allocations: 42.19 kB / 0.7859 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.1745, allocations: 3.938 kB / 0.7859 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.1745, allocations: 4 kB / 0.7859 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1745, allocations: 3.938 kB / 0.7859 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.051e-05/0.1745, allocations: 4 kB / 0.786 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.1749, allocations: 245 kB / 0.7862 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.096e-05/0.175, allocations: 38.44 kB / 0.7862 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.446e-05/0.175, allocations: 16.95 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.175, allocations: 3.984 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001266/0.1752, allocations: 63.41 kB / 0.7863 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 2.786e-06/0.1752, allocations: 0 / 0.7863 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0001859/0.1754, allocations: 77.52 kB / 0.7864 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.766e-05/0.1755, allocations: 59.34 kB / 0.7864 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.686e-05/0.1755, allocations: 93.86 kB / 0.7865 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.1755, allocations: 29.7 kB / 0.7866 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.333e-05/0.1756, allocations: 80.14 kB / 0.7866 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.1756, allocations: 11.89 kB / 0.7866 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.424e-05/0.1756, allocations: 25.84 kB / 0.7867 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.351e-05/0.1757, allocations: 310.8 kB / 0.787 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.418e-05/0.1758, allocations: 19.97 kB / 0.787 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.502e-05/0.1758, allocations: 31.44 kB / 0.787 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.515e-05/0.1759, allocations: 51.36 kB / 0.7871 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1759, allocations: 3.938 kB / 0.7871 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001026/0.176, allocations: 77.52 kB / 0.7871 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.176, allocations: 11.11 kB / 0.7871 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.176, allocations: 0 / 0.7871 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.1761, allocations: 4 kB / 0.7872 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.584e-05/0.1761, allocations: 7.938 kB / 0.7872 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.433e-06/0.1761, allocations: 4 kB / 0.7872 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.358e-05/0.1762, allocations: 3.938 kB / 0.7872 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.1762, allocations: 8.062 kB / 0.7872 GB, free: 9.312 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.104e-05/0.1762, allocations: 117.8 kB / 0.7873 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.1763, allocations: 3.984 kB / 0.7873 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.991e-05/0.1763, allocations: 7.562 kB / 0.7873 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1763, allocations: 0 / 0.7873 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1763, allocations: 0 / 0.7873 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1763, allocations: 4 kB / 0.7873 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002765/0.1766, allocations: 294.5 kB / 0.7876 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1766, allocations: 4 kB / 0.7876 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.951e-05/0.1766, allocations: 7.984 kB / 0.7876 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1766, allocations: 0 / 0.7876 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1766, allocations: 3.938 kB / 0.7876 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1767, allocations: 0 / 0.7876 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1767, allocations: 320 / 0.7876 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001508/0.1768, allocations: 167.4 kB / 0.7878 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.1769, allocations: 81.09 kB / 0.7878 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.049e-05/0.1769, allocations: 7.938 kB / 0.7878 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.964e-05/0.177, allocations: 7.938 kB / 0.7879 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.467e-05/0.177, allocations: 0 / 0.7879 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.177, allocations: 4 kB / 0.7879 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.102e-05/0.177, allocations: 79.27 kB / 0.7879 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.177, allocations: 0 / 0.7879 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002743/0.1773, allocations: 35.94 kB / 0.788 GB, free: 8.398 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.0005961/0.1779, allocations: 0.7564 MB / 0.7887 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001082/0.178, allocations: 36 kB / 0.7887 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.178, allocations: 0 / 0.7887 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 4.947e-05/0.1781, allocations: 19.92 kB / 0.7888 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/0.1783, allocations: 10.53 kB / 0.7888 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.1793, allocations: 1.254 MB / 0.79 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.1796, allocations: 0.6807 MB / 0.7907 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 1.704e-05/0.1796, allocations: 4 kB / 0.7907 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.509e-05/0.1796, allocations: 11.44 kB / 0.7907 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.1796, allocations: 0 / 0.7907 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01694/0.1966, allocations: 1.863 MB / 0.7925 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.15/7.346, allocations: 16.22 kB / 0.7925 GB, free: 3.738 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)