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.437/1.437, allocations: 251.9 MB / 266.9 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001212/0.001211, allocations: 183.6 kB / 326.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.174/2.174, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0009484/0.0009479, allocations: 91.75 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004188/0.0004188, allocations: 6.094 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2318, allocations: 106.3 MB / 0.9001 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1687/0.4005, allocations: 131.8 MB / 1.029 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.4008, allocations: 79.94 kB / 1.029 GB, free: 11.76 MB / 0.6823 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.005787/0.4066, allocations: 2.03 MB / 1.031 GB, free: 9.723 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.034e-06/0.4066, allocations: 0 / 1.031 GB, free: 9.723 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.4066, allocations: 0 / 1.031 GB, free: 9.723 MB / 0.6823 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.0004656/0.4071, allocations: 380.9 kB / 1.031 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.4072, allocations: 8.031 kB / 1.031 GB, free: 9.289 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.628e-05/0.4072, allocations: 34.55 kB / 1.031 GB, free: 9.246 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3e-05/0.4073, allocations: 4 kB / 1.031 GB, free: 9.242 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.4074, allocations: 167 kB / 1.031 GB, free: 9.039 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.4075, allocations: 8 kB / 1.032 GB, free: 9.031 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.4075, allocations: 0 / 1.032 GB, free: 9.031 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/0.4076, allocations: 45.62 kB / 1.032 GB, free: 8.98 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.4076, allocations: 0 / 1.032 GB, free: 8.98 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.4076, allocations: 3.984 kB / 1.032 GB, free: 8.977 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.4077, allocations: 3.984 kB / 1.032 GB, free: 8.973 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.478e-05/0.4077, allocations: 4 kB / 1.032 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003649/0.4081, allocations: 252.8 kB / 1.032 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.79e-05/0.4082, allocations: 31.23 kB / 1.032 GB, free: 8.633 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.4082, allocations: 4 kB / 1.032 GB, free: 8.629 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001392/0.4083, allocations: 59.44 kB / 1.032 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=5): time 1.483e-06/0.4084, allocations: 0 / 1.032 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5): time 0.0002237/0.4086, allocations: 65.67 kB / 1.032 GB, free: 8.488 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.4086, allocations: 59.41 kB / 1.032 GB, free: 8.418 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.398e-05/0.4087, allocations: 89 kB / 1.032 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.4087, allocations: 33.64 kB / 1.032 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.561e-05/0.4088, allocations: 84.08 kB / 1.032 GB, free: 8.199 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.4088, allocations: 23.67 kB / 1.032 GB, free: 8.176 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-06/0.4088, allocations: 0 / 1.032 GB, free: 8.176 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.409, allocations: 322.8 kB / 1.033 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.943e-05/0.409, allocations: 4.125 kB / 1.033 GB, free: 7.848 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.314e-05/0.409, allocations: 39.42 kB / 1.033 GB, free: 7.797 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.1e-05/0.4091, allocations: 12 kB / 1.033 GB, free: 7.785 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.4091, allocations: 0 / 1.033 GB, free: 7.785 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001146/0.4092, allocations: 69.61 kB / 1.033 GB, free: 7.711 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.4092, allocations: 4 kB / 1.033 GB, free: 7.707 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.4092, allocations: 4.312 kB / 1.033 GB, free: 7.703 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.4093, allocations: 4 kB / 1.033 GB, free: 7.699 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.408e-05/0.4093, allocations: 15.94 kB / 1.033 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.4093, allocations: 0 / 1.033 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.945e-05/0.4094, allocations: 11.98 kB / 1.033 GB, free: 7.672 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.4094, allocations: 0 / 1.033 GB, free: 7.672 MB / 0.6823 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.curSeed,curSeed,$whenCondition1,$PRE.$outputAlias_y,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.4095, allocations: 113.8 kB / 1.033 GB, free: 7.551 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.1e-05/0.4095, allocations: 3.906 kB / 1.033 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.4096, allocations: 11.56 kB / 1.033 GB, free: 7.535 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.4096, allocations: 4 kB / 1.033 GB, free: 7.531 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4096, allocations: 0 / 1.033 GB, free: 7.531 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.4096, allocations: 0 / 1.033 GB, free: 7.531 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002756/0.4099, allocations: 302.5 kB / 1.033 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4099, allocations: 0 / 1.033 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.072e-05/0.4099, allocations: 4 kB / 1.033 GB, free: 7.176 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.4099, allocations: 0 / 1.033 GB, free: 7.176 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.4099, allocations: 4 kB / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4099, allocations: 0 / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4099, allocations: 0 / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.4101, allocations: 167.4 kB / 1.033 GB, free: 6.992 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.4102, allocations: 81.11 kB / 1.033 GB, free: 6.895 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.4102, allocations: 0 / 1.033 GB, free: 6.895 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.187e-05/0.4102, allocations: 0 / 1.033 GB, free: 6.895 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.864e-05/0.4103, allocations: 8.078 kB / 1.033 GB, free: 6.887 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.4103, allocations: 0 / 1.033 GB, free: 6.887 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.361e-05/0.4103, allocations: 79.28 kB / 1.033 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4104, allocations: 12.03 kB / 1.033 GB, free: 6.797 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002854/0.4107, allocations: 39.88 kB / 1.033 GB, free: 6.758 MB / 0.6823 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 (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.0007844/0.4114, allocations: 0.7858 MB / 1.034 GB, free: 5.961 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001137/0.4116, allocations: 31.98 kB / 1.034 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.4116, allocations: 0 / 1.034 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 3.965e-05/0.4116, allocations: 15.94 kB / 1.034 GB, free: 5.914 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.4118, allocations: 4 kB / 1.034 GB, free: 5.91 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007996/0.4126, allocations: 0.8049 MB / 1.035 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.4129, allocations: 0.6809 MB / 1.036 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.131e-05/0.4129, allocations: 4 kB / 1.036 GB, free: 4.336 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.843e-05/0.4129, allocations: 11.44 kB / 1.036 GB, free: 4.324 MB / 0.6823 GB Notification: Performance of SimCode: time 3.41e-07/0.4129, allocations: 0 / 1.036 GB, free: 4.324 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01245/0.4254, allocations: 1.837 MB / 1.038 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/0.4257, allocations: 244.1 kB / 1.038 GB, free: 2.379 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.522/1.947, allocations: 64 / 1.038 GB, free: 2.379 MB / 0.6823 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)