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.0009535/0.0009536, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.008194/0.008194, allocations: 169.8 kB / 16.26 MB, free: 6.613 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.686/1.686, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.001/3.001, allocations: 473.4 MB / 0.7469 GB, free: 6.086 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004214/0.0004214, allocations: 10.16 kB / 0.9158 GB, free: 33.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4791/0.4796, allocations: 162.2 MB / 1.074 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001454/0.4811, allocations: 0.5389 MB / 1.075 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001944/0.483, allocations: 1.315 MB / 1.076 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.826e-05/0.4831, allocations: 4 kB / 1.076 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.41e-05/0.4832, allocations: 11.92 kB / 1.076 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.804e-05/0.4833, allocations: 11.81 kB / 1.076 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009254/0.4842, allocations: 297.1 kB / 1.076 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003057/0.4845, allocations: 259.5 kB / 1.077 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.4847, allocations: 41.41 kB / 1.077 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.4848, allocations: 99.8 kB / 1.077 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.485, allocations: 79.64 kB / 1.077 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5e-05/0.485, allocations: 16 kB / 1.077 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.996e-05/0.4851, allocations: 24 kB / 1.077 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.815e-05/0.4852, allocations: 27.84 kB / 1.077 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.4853, allocations: 109.4 kB / 1.077 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.4856, allocations: 247.5 kB / 1.077 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.4856, allocations: 0 / 1.077 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.194e-06/0.4857, allocations: 0 / 1.077 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.4857, allocations: 0 / 1.077 GB, free: 4.453 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.0006545/0.4863, allocations: 492.2 kB / 1.078 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4864, allocations: 8.031 kB / 1.078 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.867e-05/0.4865, allocations: 20.75 kB / 1.078 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.4866, allocations: 189.4 kB / 1.078 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.4867, allocations: 16.38 kB / 1.078 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.318e-05/0.4867, allocations: 19.94 kB / 1.078 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001874/0.4869, allocations: 87.38 kB / 1.078 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.487, allocations: 0 / 1.078 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.487, allocations: 7.984 kB / 1.078 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.487, allocations: 0 / 1.078 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.4871, allocations: 47.98 kB / 1.078 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007994/0.4879, allocations: 0.4962 MB / 1.078 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.4882, allocations: 70.62 kB / 1.079 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.98e-05/0.4882, allocations: 28.84 kB / 1.079 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.4883, allocations: 0 / 1.079 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002184/0.4885, allocations: 123.2 kB / 1.079 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.4885, allocations: 0 / 1.079 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003687/0.4889, allocations: 165.5 kB / 1.079 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.4889, allocations: 71.33 kB / 1.079 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.4891, allocations: 159.5 kB / 1.079 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.4891, allocations: 33.7 kB / 1.079 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.271e-05/0.4892, allocations: 108 kB / 1.079 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.4893, allocations: 31.64 kB / 1.079 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.64e-05/0.4893, allocations: 37.7 kB / 1.079 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.4895, allocations: 326.8 kB / 1.08 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.4897, allocations: 87.95 kB / 1.08 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.4899, allocations: 149.9 kB / 1.08 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.4902, allocations: 260.1 kB / 1.08 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4903, allocations: 4 kB / 1.08 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006482/0.4909, allocations: 399.9 kB / 1.08 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.592e-05/0.491, allocations: 101 kB / 1.081 GB, free: 0.6406 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.491, allocations: 4 kB / 1.081 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.491, allocations: 0 / 1.081 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.108e-05/0.4911, allocations: 19.92 kB / 1.081 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.4911, allocations: 0 / 1.081 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005726/0.4917, allocations: 123.9 kB / 1.081 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.9e-05/0.4918, allocations: 23.97 kB / 1.081 GB, free: 484 kB / 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.0001589/0.4919, allocations: 133.8 kB / 1.081 GB, free: 340 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.492, allocations: 11.84 kB / 1.081 GB, free: 328 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.263e-05/0.492, allocations: 12.84 kB / 1.081 GB, free: 312 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.492, allocations: 0 / 1.081 GB, free: 312 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.492, allocations: 0 / 1.081 GB, free: 312 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.492, allocations: 11.98 kB / 1.081 GB, free: 300 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.4922, allocations: 217.5 kB / 1.081 GB, free: 32 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.4923, allocations: 0 / 1.081 GB, free: 32 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.574e-05/0.4923, allocations: 11.98 kB / 1.081 GB, free: 20 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.4923, allocations: 3.938 kB / 1.081 GB, free: 16 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.4923, allocations: 4 kB / 1.081 GB, free: 12 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.4923, allocations: 0 / 1.081 GB, free: 12 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.4923, allocations: 0 / 1.081 GB, free: 12 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002515/0.4926, allocations: 163.6 kB / 1.081 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.579e-05/0.4927, allocations: 96.86 kB / 1.081 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.4927, allocations: 0 / 1.081 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.617e-05/0.4927, allocations: 7.984 kB / 1.081 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.4928, allocations: 15.92 kB / 1.081 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-06/0.4928, allocations: 4 kB / 1.081 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.441e-05/0.4929, allocations: 117.4 kB / 1.081 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4929, allocations: 0 / 1.081 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002735/0.4932, allocations: 51.94 kB / 1.082 GB, free: 15.53 MB / 0.8419 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.0002422/0.4934, allocations: 119 kB / 1.082 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005406/0.494, allocations: 389.9 kB / 1.082 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.494, allocations: 0 / 1.082 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.414e-05/0.4941, allocations: 47.98 kB / 1.082 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.4944, allocations: 24.36 kB / 1.082 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005097/0.4949, allocations: 284 kB / 1.082 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.4952, allocations: 0.7126 MB / 1.083 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 5.148e-05/0.4953, allocations: 12.64 kB / 1.083 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.113e-05/0.4953, allocations: 15.44 kB / 1.083 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of SimCode: time 4.41e-07/0.4953, allocations: 0 / 1.083 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of Templates: time 0.006326/0.5017, allocations: 2.657 MB / 1.086 GB, free: 11.23 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)