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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.83/1.83, allocations: 292.6 MB / 307.5 MB, free: 5.102 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001874/0.001874, allocations: 173.2 kB / 377.1 MB, free: 1.441 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.904/1.904, allocations: 205.4 MB / 0.6366 GB, free: 8.52 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008677/0.0008677, allocations: 90.8 kB / 0.7509 GB, free: 63.21 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003315, allocations: 8 kB / 0.8748 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2744, allocations: 116.3 MB / 0.9884 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6356/0.9101, allocations: 139.1 MB / 1.124 GB, free: 35.53 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.9103, allocations: 72.34 kB / 1.124 GB, free: 35.47 MB / 0.7292 GB [/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 FrontEnd - DAE generated: time 0.005255/0.9156, allocations: 2.039 MB / 1.126 GB, free: 33.98 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.805e-06/0.9156, allocations: 0.5312 kB / 1.126 GB, free: 33.98 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.005e-05/0.9156, allocations: 1 kB / 1.126 GB, free: 33.98 MB / 0.7292 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.0004206/0.9161, allocations: 380.2 kB / 1.127 GB, free: 33.57 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/0.9161, allocations: 12.02 kB / 1.127 GB, free: 33.55 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.229e-05/0.9162, allocations: 35 kB / 1.127 GB, free: 33.52 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.9163, allocations: 10.62 kB / 1.127 GB, free: 33.51 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.9164, allocations: 160.4 kB / 1.127 GB, free: 33.31 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.9164, allocations: 4 kB / 1.127 GB, free: 33.31 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.9164, allocations: 8 kB / 1.127 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.9166, allocations: 44.12 kB / 1.127 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.9166, allocations: 0 / 1.127 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.9166, allocations: 0 / 1.127 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.9166, allocations: 4 kB / 1.127 GB, free: 33.26 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.791e-05/0.9167, allocations: 9.453 kB / 1.127 GB, free: 33.25 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003351/0.917, allocations: 242.8 kB / 1.127 GB, free: 32.98 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 9.45e-05/0.9171, allocations: 36.92 kB / 1.127 GB, free: 32.94 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.9172, allocations: 3.469 kB / 1.127 GB, free: 32.94 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001369/0.9173, allocations: 59.69 kB / 1.127 GB, free: 32.88 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=5): time 1.393e-06/0.9173, allocations: 3.375 kB / 1.127 GB, free: 32.88 MB / 0.7292 GB Notification: Performance of matching and sorting (n=5): time 0.0002417/0.9176, allocations: 73.34 kB / 1.127 GB, free: 32.8 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/0.9176, allocations: 51.41 kB / 1.127 GB, free: 32.74 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.838e-05/0.9177, allocations: 96.56 kB / 1.127 GB, free: 32.64 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.061e-05/0.9177, allocations: 25.7 kB / 1.128 GB, free: 32.61 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 2.212e-05/0.9177, allocations: 80.14 kB / 1.128 GB, free: 32.53 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.839e-05/0.9177, allocations: 19.88 kB / 1.128 GB, free: 32.51 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-06/0.9177, allocations: 4 kB / 1.128 GB, free: 32.51 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.249e-05/0.9178, allocations: 314.8 kB / 1.128 GB, free: 32.19 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.964e-05/0.9178, allocations: 15.52 kB / 1.128 GB, free: 32.18 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.77e-05/0.9179, allocations: 36.19 kB / 1.128 GB, free: 32.14 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.765e-05/0.9179, allocations: 8 kB / 1.128 GB, free: 32.13 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.9179, allocations: 4 kB / 1.128 GB, free: 32.12 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.172e-05/0.918, allocations: 74.36 kB / 1.128 GB, free: 32.05 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.9181, allocations: 4 kB / 1.128 GB, free: 32.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.9181, allocations: 0 / 1.128 GB, free: 32.05 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.9181, allocations: 4 kB / 1.128 GB, free: 32.05 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.97e-05/0.9181, allocations: 12.44 kB / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.9182, allocations: 0 / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.83e-05/0.9182, allocations: 8.5 kB / 1.128 GB, free: 32.03 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.9182, allocations: 12.02 kB / 1.128 GB, free: 32.02 MB / 0.7292 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 6.353e-05/0.9183, allocations: 117.9 kB / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.215e-06/0.9183, allocations: 0.5625 kB / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.419e-05/0.9183, allocations: 7.562 kB / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.9183, allocations: 1.172 kB / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.9183, allocations: 4 kB / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.9184, allocations: 0 / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001886/0.9185, allocations: 301.5 kB / 1.128 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.9186, allocations: 1.062 kB / 1.128 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.463e-05/0.9186, allocations: 4 kB / 1.128 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.9186, allocations: 4 kB / 1.128 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.9186, allocations: 4.859 kB / 1.128 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.9186, allocations: 0 / 1.128 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.9186, allocations: 3.938 kB / 1.129 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.9187, allocations: 167.3 kB / 1.129 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.84e-05/0.9188, allocations: 81.02 kB / 1.129 GB, free: 31.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.9188, allocations: 4 kB / 1.129 GB, free: 31.26 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.337e-05/0.9188, allocations: 0.5 kB / 1.129 GB, free: 31.26 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.287e-05/0.9189, allocations: 4 kB / 1.129 GB, free: 31.26 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.9189, allocations: 8.172 kB / 1.129 GB, free: 31.25 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 1.686e-05/0.9189, allocations: 75.28 kB / 1.129 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9189, allocations: 0 / 1.129 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002926/0.9192, allocations: 40 kB / 1.129 GB, free: 31.14 MB / 0.7292 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.0006206/0.9198, allocations: 0.7817 MB / 1.13 GB, free: 30.37 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001126/0.92, allocations: 27.38 kB / 1.13 GB, free: 30.35 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.92, allocations: 0 / 1.13 GB, free: 30.35 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 3.609e-05/0.92, allocations: 16.97 kB / 1.13 GB, free: 30.33 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.9201, allocations: 3.609 kB / 1.13 GB, free: 30.33 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000688/0.9208, allocations: 0.8011 MB / 1.13 GB, free: 29.49 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001585/0.921, allocations: 0.6804 MB / 1.131 GB, free: 28.79 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.193e-05/0.921, allocations: 0 / 1.131 GB, free: 28.79 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.061e-05/0.9211, allocations: 15 kB / 1.131 GB, free: 28.78 MB / 0.7292 GB Notification: Performance of SimCode: time 2.21e-07/0.9211, allocations: 0 / 1.131 GB, free: 28.78 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01404/0.9351, allocations: 1.834 MB / 1.133 GB, free: 27.79 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/0.9353, allocations: 227.1 kB / 1.133 GB, free: 27.55 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/2.583, allocations: 0 / 1.133 GB, free: 27.55 MB / 0.7292 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/linux/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)