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.749/1.749, allocations: 289.7 MB / 302.2 MB, free: 2.082 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.001275/0.001275, allocations: 181.6 kB / 371.6 MB, free: 3.387 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.527/1.527, allocations: 205.1 MB / 0.6309 GB, free: 11.79 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.0009012/0.0009012, allocations: 89.53 kB / 0.745 GB, free: 54.52 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.417e-05/3.419e-05, allocations: 8 kB / 0.8663 GB, free: 14.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.218, allocations: 116.3 MB / 0.9799 GB, free: 10.53 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7472/0.9652, allocations: 139 MB / 1.116 GB, free: 44.66 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.9654, allocations: 71.52 kB / 1.116 GB, free: 44.63 MB / 0.7448 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.005068/0.9705, allocations: 2.016 MB / 1.118 GB, free: 43.44 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.91e-07/0.9705, allocations: 0.5938 kB / 1.118 GB, free: 43.44 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.9705, allocations: 0.625 kB / 1.118 GB, free: 43.44 MB / 0.7448 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.0003104/0.9709, allocations: 375.9 kB / 1.118 GB, free: 43.03 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.9709, allocations: 8.969 kB / 1.118 GB, free: 43.02 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.825e-05/0.971, allocations: 32.59 kB / 1.118 GB, free: 42.98 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.609e-05/0.971, allocations: 10.5 kB / 1.118 GB, free: 42.98 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.536e-05/0.9711, allocations: 162.4 kB / 1.118 GB, free: 42.78 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.9711, allocations: 3.766 kB / 1.118 GB, free: 42.78 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.9711, allocations: 9.031 kB / 1.118 GB, free: 42.78 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.848e-05/0.9713, allocations: 40.56 kB / 1.118 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.9713, allocations: 0 / 1.118 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.9713, allocations: 1.281 kB / 1.118 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.9713, allocations: 0.875 kB / 1.118 GB, free: 42.74 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.913e-05/0.9713, allocations: 11.14 kB / 1.118 GB, free: 42.73 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002689/0.9716, allocations: 253.1 kB / 1.119 GB, free: 42.45 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.141e-05/0.9717, allocations: 30.27 kB / 1.119 GB, free: 42.42 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.862e-05/0.9717, allocations: 20.34 kB / 1.119 GB, free: 42.4 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-06/0.9717, allocations: 3.125 kB / 1.119 GB, free: 42.4 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.882e-05/0.9718, allocations: 56.23 kB / 1.119 GB, free: 42.34 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=5): time 1.533e-06/0.9719, allocations: 0 / 1.119 GB, free: 42.34 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5): time 0.000164/0.972, allocations: 68.33 kB / 1.119 GB, free: 42.29 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.9721, allocations: 54.34 kB / 1.119 GB, free: 42.22 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.769e-05/0.9721, allocations: 93 kB / 1.119 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.9722, allocations: 28.89 kB / 1.119 GB, free: 42.09 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 2.266e-05/0.9722, allocations: 80.14 kB / 1.119 GB, free: 42.01 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.9722, allocations: 19.38 kB / 1.119 GB, free: 42 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-06/0.9722, allocations: 0 / 1.119 GB, free: 42 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.068e-05/0.9723, allocations: 314.8 kB / 1.119 GB, free: 41.68 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.982e-05/0.9723, allocations: 11.31 kB / 1.119 GB, free: 41.68 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.329e-05/0.9723, allocations: 35.27 kB / 1.119 GB, free: 41.63 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.214e-05/0.9724, allocations: 15.19 kB / 1.119 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.9724, allocations: 3.938 kB / 1.119 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.628e-05/0.9725, allocations: 70.8 kB / 1.119 GB, free: 41.56 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.9725, allocations: 5.406 kB / 1.119 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.9725, allocations: 4 kB / 1.119 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.9726, allocations: 1.781 kB / 1.119 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.005e-05/0.9726, allocations: 15.53 kB / 1.119 GB, free: 41.54 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.9726, allocations: 0 / 1.119 GB, free: 41.54 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.811e-05/0.9727, allocations: 15.34 kB / 1.119 GB, free: 41.53 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.9727, allocations: 0 / 1.119 GB, free: 41.53 MB / 0.7448 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 () * 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 5.991e-05/0.9728, allocations: 117.1 kB / 1.12 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-06/0.9728, allocations: 0 / 1.12 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.9728, allocations: 8.125 kB / 1.12 GB, free: 41.4 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.9728, allocations: 1.266 kB / 1.12 GB, free: 41.4 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.9728, allocations: 0 / 1.12 GB, free: 41.4 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.9728, allocations: 4 kB / 1.12 GB, free: 41.4 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002061/0.973, allocations: 295.6 kB / 1.12 GB, free: 41.08 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.9731, allocations: 4 kB / 1.12 GB, free: 41.07 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.977e-05/0.9731, allocations: 7.969 kB / 1.12 GB, free: 41.07 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.9731, allocations: 0 / 1.12 GB, free: 41.07 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.9731, allocations: 4 kB / 1.12 GB, free: 41.07 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.9731, allocations: 1.016 kB / 1.12 GB, free: 41.07 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.9731, allocations: 0 / 1.12 GB, free: 41.07 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001204/0.9732, allocations: 166.8 kB / 1.12 GB, free: 40.91 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.598e-05/0.9733, allocations: 81.67 kB / 1.12 GB, free: 40.81 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.9733, allocations: 0 / 1.12 GB, free: 40.81 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.805e-05/0.9734, allocations: 0 / 1.12 GB, free: 40.81 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.487e-05/0.9734, allocations: 7.469 kB / 1.12 GB, free: 40.8 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.9734, allocations: 0.75 kB / 1.12 GB, free: 40.8 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.354e-05/0.9734, allocations: 82.41 kB / 1.12 GB, free: 40.73 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9734, allocations: 0 / 1.12 GB, free: 40.73 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002842/0.9737, allocations: 43.36 kB / 1.12 GB, free: 40.69 MB / 0.7448 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 () * 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.0005536/0.9743, allocations: 0.7778 MB / 1.121 GB, free: 39.93 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 8.67e-05/0.9744, allocations: 35.75 kB / 1.121 GB, free: 39.91 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.9744, allocations: 0 / 1.121 GB, free: 39.91 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.861e-05/0.9744, allocations: 15.28 kB / 1.121 GB, free: 39.89 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001132/0.9746, allocations: 4.75 kB / 1.121 GB, free: 39.89 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003265/0.9749, allocations: 114.8 kB / 1.121 GB, free: 39.76 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.975, allocations: 0.6765 MB / 1.122 GB, free: 39.06 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.033e-05/0.975, allocations: 7.469 kB / 1.122 GB, free: 39.06 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.368e-05/0.9751, allocations: 11.44 kB / 1.122 GB, free: 39.05 MB / 0.7448 GB Notification: Performance of SimCode: time 3.91e-07/0.9751, allocations: 4.125 kB / 1.122 GB, free: 39.05 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01297/0.9881, allocations: 1.848 MB / 1.124 GB, free: 38.05 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/0.9882, allocations: 204.4 kB / 1.124 GB, free: 37.83 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/2.665, allocations: 0 / 1.124 GB, free: 37.83 MB / 0.7448 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)