Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") translateModel(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001764/0.001765, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00226/0.00226, allocations: 194.9 kB / 16.14 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.994/2.994, allocations: 472.6 MB / 0.7447 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.81 kB / 0.9113 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3512, allocations: 159.9 MB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration): time 0.00219/0.3535, allocations: 1.27 MB / 1.069 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000747/0.3542, allocations: 389 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.026e-05/0.3543, allocations: 0 / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.227e-05/0.3543, allocations: 0 / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.272e-05/0.3544, allocations: 0 / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004138/0.3548, allocations: 79.78 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.692e-05/0.3548, allocations: 15.94 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.107e-05/0.3549, allocations: 7.984 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.979e-05/0.3549, allocations: 4 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.532e-05/0.3549, allocations: 7.984 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.3549, allocations: 4 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.3551, allocations: 83.86 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.075e-05/0.3551, allocations: 15.92 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.3552, allocations: 3.984 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001676/0.3554, allocations: 83.83 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3554, allocations: 0 / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.02e-07/0.3554, allocations: 0 / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.3554, allocations: 0 / 1.069 GB, free: 8.898 MB / 0.8262 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.0004324/0.3558, allocations: 373.3 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.3559, allocations: 8.031 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.339e-05/0.3559, allocations: 4.875 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.356, allocations: 176.5 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.3561, allocations: 384 / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.3561, allocations: 4.375 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.3562, allocations: 42.23 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3562, allocations: 192 / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.3562, allocations: 3.938 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.3562, allocations: 0 / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.036e-05/0.3563, allocations: 8 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001368/0.3564, allocations: 153.7 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.539e-05/0.3565, allocations: 34.55 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.045e-05/0.3565, allocations: 8.859 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.335e-06/0.3565, allocations: 3.984 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001402/0.3567, allocations: 59.48 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 2.735e-06/0.3567, allocations: 0 / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0001952/0.3569, allocations: 69.56 kB / 1.07 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.3569, allocations: 59.33 kB / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.377e-05/0.357, allocations: 97.86 kB / 1.07 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.357, allocations: 25.7 kB / 1.07 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.35e-05/0.3571, allocations: 80.14 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.3571, allocations: 15.89 kB / 1.071 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.3571, allocations: 25.83 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.454e-05/0.3572, allocations: 310.8 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.089e-05/0.3573, allocations: 12 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.99e-05/0.3573, allocations: 31.42 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.485e-05/0.3574, allocations: 47.38 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3574, allocations: 4 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.879e-05/0.3575, allocations: 69.52 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3575, allocations: 13.66 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.3575, allocations: 160 / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.3575, allocations: 0 / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.8e-05/0.3576, allocations: 11.94 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.3576, allocations: 3.984 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.585e-05/0.3577, allocations: 12.09 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.3577, allocations: 0 / 1.071 GB, free: 6.91 MB / 0.8262 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 (y,$PRE.y,curSeed,$PRE.curSeed,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.618e-05/0.3577, allocations: 109.8 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.358e-05/0.3578, allocations: 7.922 kB / 1.071 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.425e-05/0.3578, allocations: 11.5 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3578, allocations: 0 / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3578, allocations: 0 / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3578, allocations: 0 / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.3579, allocations: 153.6 kB / 1.071 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3579, allocations: 7.938 kB / 1.071 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.144e-05/0.358, allocations: 0 / 1.071 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.358, allocations: 7.938 kB / 1.071 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.358, allocations: 0 / 1.071 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.358, allocations: 0 / 1.071 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.358, allocations: 0 / 1.071 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001251/0.3581, allocations: 92.95 kB / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.162e-05/0.3582, allocations: 77.11 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.3582, allocations: 15.88 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.369e-05/0.3582, allocations: 3.984 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.083e-05/0.3582, allocations: 0 / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.3583, allocations: 4.281 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.043e-05/0.3583, allocations: 75.28 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3583, allocations: 0 / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002427/0.3585, allocations: 31.98 kB / 1.072 GB, free: 6.223 MB / 0.8262 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 () * Number of clocked 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 (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.000315/0.3589, allocations: 161.9 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001033/0.359, allocations: 27.92 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.359, allocations: 0 / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.697e-05/0.359, allocations: 12 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.3592, allocations: 4 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002195/0.3594, allocations: 114.8 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.3596, allocations: 0.6809 MB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.989e-05/0.3597, allocations: 0 / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.642e-05/0.3597, allocations: 11.44 kB / 1.073 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3597, allocations: 0 / 1.073 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of Templates: time 0.003111/0.3628, allocations: 0.9429 MB / 1.074 GB, free: 4.223 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.makefile (rm -f Buildings_1.6_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; mkfifo Buildings_1.6_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe >> ../files/Buildings_1.6_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.sim & ./Buildings_1.6_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Occupants.BaseClasses.Validation.BinaryVariableGeneration.pipe 2>&1)