Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.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.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001843/0.001843, allocations: 192.3 kB / 16.25 MB, free: 6.629 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.525/1.525, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.051/3.051, allocations: 472.6 MB / 0.7448 GB, free: 4.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 69.3 kB / 0.9115 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3664, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002277/0.3687, allocations: 0.8855 MB / 1.069 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001662/0.3704, allocations: 1.291 MB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.726e-05/0.3705, allocations: 4 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.969e-05/0.3706, allocations: 7.938 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.882e-05/0.3707, allocations: 15.84 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008213/0.3715, allocations: 285.7 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003053/0.3718, allocations: 315.5 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.3719, allocations: 45.41 kB / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.3721, allocations: 111.8 kB / 1.071 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.3722, allocations: 91.69 kB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.891e-05/0.3723, allocations: 28 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.289e-05/0.3724, allocations: 39.98 kB / 1.071 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.348e-05/0.3724, allocations: 27.86 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.3726, allocations: 107.7 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002927/0.3729, allocations: 255.5 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3729, allocations: 0 / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3729, allocations: 3.938 kB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.3729, allocations: 4 kB / 1.071 GB, free: 7.289 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006795/0.3736, allocations: 0.5217 MB / 1.072 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.3736, allocations: 8.031 kB / 1.072 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.98e-05/0.3737, allocations: 24.78 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.3739, allocations: 184.7 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.384e-05/0.3739, allocations: 12.38 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.741e-05/0.3739, allocations: 23.94 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.3741, allocations: 85.66 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3742, allocations: 3.984 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.3742, allocations: 7.984 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.3742, allocations: 8 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.3743, allocations: 47.92 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007159/0.375, allocations: 0.4961 MB / 1.072 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002373/0.3753, allocations: 66.62 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.483e-05/0.3753, allocations: 28.91 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.3754, allocations: 0 / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.3756, allocations: 123.2 kB / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.3756, allocations: 0 / 1.073 GB, free: 5.477 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003564/0.3759, allocations: 169.5 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.376, allocations: 55.41 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.3761, allocations: 163.2 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.3762, allocations: 33.7 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.324e-05/0.3763, allocations: 112 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.311e-05/0.3763, allocations: 31.64 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.3765, allocations: 77.61 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3766, allocations: 322.8 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.3768, allocations: 99.94 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002381/0.3771, allocations: 147.3 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.3774, allocations: 244.4 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3774, allocations: 0 / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000621/0.378, allocations: 398.3 kB / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.493e-05/0.3781, allocations: 109 kB / 1.075 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.3782, allocations: 4 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.3782, allocations: 4.188 kB / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.86e-05/0.3782, allocations: 12 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.3783, allocations: 0 / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.3788, allocations: 91.64 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.3788, allocations: 19.98 kB / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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 0.0001429/0.379, allocations: 135.5 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.379, allocations: 19.84 kB / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.871e-05/0.379, allocations: 16.83 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.379, allocations: 0 / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3791, allocations: 0 / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3791, allocations: 0 / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.3793, allocations: 217.6 kB / 1.075 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3793, allocations: 0 / 1.075 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.95e-05/0.3793, allocations: 19.92 kB / 1.075 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.3793, allocations: 7.938 kB / 1.075 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.3794, allocations: 4 kB / 1.075 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3794, allocations: 0 / 1.075 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3794, allocations: 0 / 1.075 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002416/0.3796, allocations: 163.9 kB / 1.075 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.856e-05/0.3797, allocations: 100.7 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.3797, allocations: 7.984 kB / 1.075 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.065e-05/0.3797, allocations: 0 / 1.075 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.3798, allocations: 19.98 kB / 1.075 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.3798, allocations: 4 kB / 1.075 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.749e-05/0.3799, allocations: 116.1 kB / 1.075 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3799, allocations: 0 / 1.075 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002766/0.3802, allocations: 51.94 kB / 1.076 GB, free: 2.312 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002022/0.3804, allocations: 115 kB / 1.076 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005203/0.3809, allocations: 386.2 kB / 1.076 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3809, allocations: 0 / 1.076 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.14e-05/0.381, allocations: 51.92 kB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.3813, allocations: 34.52 kB / 1.076 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005052/0.3818, allocations: 279.7 kB / 1.076 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.3821, allocations: 0.7084 MB / 1.077 GB, free: 0.6641 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.622e-05/0.3822, allocations: 16.62 kB / 1.077 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.052e-05/0.3822, allocations: 15.44 kB / 1.077 GB, free: 0.6328 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3822, allocations: 0 / 1.077 GB, free: 0.6328 MB / 0.8262 GB Notification: Performance of Templates: time 0.006011/0.3882, allocations: 2.773 MB / 1.08 GB, free: 13.89 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1)