Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.493/1.493, allocations: 249.5 MB / 257 MB, free: 6.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001308/0.001308, allocations: 176.9 kB / 316.3 MB, free: 3.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.697/1.697, allocations: 205.3 MB / 0.5671 GB, free: 15.87 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008707/0.0008705, allocations: 96.55 kB / 0.6714 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.595e-05/1.597e-05, allocations: 0 / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1884, allocations: 106.3 MB / 0.8853 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7115/0.8999, allocations: 132 MB / 1.014 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.9003, allocations: 72.97 kB / 1.014 GB, free: 5.387 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 FrontEnd - DAE generated: time 0.005813/0.9061, allocations: 2.012 MB / 1.016 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.883e-06/0.9061, allocations: 0 / 1.016 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.313e-06/0.9061, allocations: 0 / 1.016 GB, free: 3.676 MB / 0.6355 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.0003904/0.9065, allocations: 374.4 kB / 1.017 GB, free: 3.266 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.9066, allocations: 8.031 kB / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.467e-05/0.9066, allocations: 4 kB / 1.017 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.9068, allocations: 167 kB / 1.017 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.955e-05/0.9068, allocations: 0 / 1.017 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.9068, allocations: 11.86 kB / 1.017 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.09e-05/0.9069, allocations: 4 kB / 1.017 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.571e-05/0.907, allocations: 34.72 kB / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.907, allocations: 0 / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.907, allocations: 0 / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.907, allocations: 0 / 1.017 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.9072, allocations: 140.9 kB / 1.017 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.338e-05/0.9072, allocations: 25.27 kB / 1.017 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.744e-05/0.9073, allocations: 11.8 kB / 1.017 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.9073, allocations: 0 / 1.017 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001117/0.9074, allocations: 65.48 kB / 1.017 GB, free: 2.711 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.9074, allocations: 0 / 1.017 GB, free: 2.711 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001604/0.9076, allocations: 59.78 kB / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.9076, allocations: 59.34 kB / 1.017 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.283e-05/0.9077, allocations: 85 kB / 1.017 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.9077, allocations: 29.7 kB / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.486e-05/0.9078, allocations: 83.58 kB / 1.017 GB, free: 2.375 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.9078, allocations: 7.891 kB / 1.017 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/0.9078, allocations: 0 / 1.017 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.9079, allocations: 314.3 kB / 1.018 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.661e-05/0.9079, allocations: 15.98 kB / 1.018 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.097e-05/0.908, allocations: 34.86 kB / 1.018 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.5e-05/0.908, allocations: 11.3 kB / 1.018 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.908, allocations: 4 kB / 1.018 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.598e-05/0.9081, allocations: 64.98 kB / 1.018 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.9081, allocations: 4 kB / 1.018 GB, free: 1.914 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.9081, allocations: 0 / 1.018 GB, free: 1.914 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.9082, allocations: 4 kB / 1.018 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.479e-05/0.9082, allocations: 4 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.9082, allocations: 7.984 kB / 1.018 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.39e-05/0.9083, allocations: 3.906 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.9083, allocations: 4 kB / 1.018 GB, free: 1.891 MB / 0.6355 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 ($PRE.y,y,$PRE.curSeed,curSeed,$whenCondition1) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.152e-05/0.9084, allocations: 108.9 kB / 1.018 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.157e-05/0.9084, allocations: 64.52 kB / 1.018 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-06/0.9085, allocations: 0 / 1.018 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.253e-05/0.9085, allocations: 8.062 kB / 1.018 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.9085, allocations: 0 / 1.018 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.9085, allocations: 3.984 kB / 1.018 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.9085, allocations: 4 kB / 1.018 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.9086, allocations: 126.2 kB / 1.018 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.9086, allocations: 2.438 kB / 1.018 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.393e-05/0.9086, allocations: 7.984 kB / 1.018 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.9087, allocations: 0 / 1.018 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.9087, allocations: 0 / 1.018 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.9087, allocations: 4 kB / 1.018 GB, free: 1.52 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.9087, allocations: 0 / 1.018 GB, free: 1.52 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.173e-05/0.9088, allocations: 83.92 kB / 1.018 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.9088, allocations: 88.59 kB / 1.018 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.9089, allocations: 4 kB / 1.018 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.002e-05/0.9089, allocations: 0 / 1.018 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.727e-05/0.9089, allocations: 0 / 1.018 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.9089, allocations: 4 kB / 1.018 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.16e-05/0.909, allocations: 79.28 kB / 1.018 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/0.909, allocations: 0 / 1.018 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002779/0.9092, allocations: 43.17 kB / 1.018 GB, free: 1.199 MB / 0.6355 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006502/0.9099, allocations: 0.6942 MB / 1.019 GB, free: 0.5 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.389e-05/0.91, allocations: 22.19 kB / 1.019 GB, free: 496 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.91, allocations: 0 / 1.019 GB, free: 496 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.599e-05/0.91, allocations: 19.17 kB / 1.019 GB, free: 480 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.359e-05/0.9101, allocations: 5.625 kB / 1.019 GB, free: 476 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003299/0.9105, allocations: 113.1 kB / 1.019 GB, free: 328 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.9107, allocations: 0.6807 MB / 1.02 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.043e-05/0.9108, allocations: 3.984 kB / 1.02 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.646e-05/0.9108, allocations: 11.44 kB / 1.02 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of SimCode: time 2.51e-07/0.9108, allocations: 0 / 1.02 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0178/0.9286, allocations: 1.505 MB / 1.021 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/0.9288, allocations: 198.4 kB / 1.022 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.398/2.327, allocations: 0 / 1.022 GB, free: 13.85 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Occupants_BaseClasses_Validation_BinaryVariableGeneration.fmu > Buildings_maint.7.0.x_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1)