Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.001166/0.001167, 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.001695/0.001695, allocations: 195.4 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.72/1.72, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.139/3.139, allocations: 472.6 MB / 0.7447 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 66.69 kB / 0.9114 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.3894, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002374/0.3918, allocations: 0.8779 MB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001861/0.3937, allocations: 1.326 MB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.525e-05/0.3938, allocations: 4 kB / 1.07 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.339e-05/0.3939, allocations: 7.922 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.394, allocations: 7.875 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008044/0.3948, allocations: 310.3 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002361/0.3951, allocations: 255.5 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.3952, allocations: 45.39 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.3954, allocations: 99.78 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.3955, allocations: 91.64 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.667e-05/0.3956, allocations: 20 kB / 1.07 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.3e-05/0.3957, allocations: 27.98 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.134e-05/0.3957, allocations: 23.86 kB / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.3958, allocations: 91.67 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003027/0.3962, allocations: 255.5 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3962, allocations: 0 / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.32e-07/0.3962, allocations: 0 / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.3962, allocations: 0 / 1.071 GB, free: 7.477 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.0007594/0.3969, allocations: 0.5236 MB / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.397, allocations: 8.031 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.046e-05/0.3971, allocations: 28.84 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.3972, allocations: 176.7 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.384e-05/0.3973, allocations: 16.38 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/0.3973, allocations: 27.92 kB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001852/0.3975, allocations: 87.14 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3975, allocations: 0 / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.3976, allocations: 4 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3976, allocations: 4 kB / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.3977, allocations: 43.97 kB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007172/0.3984, allocations: 0.4961 MB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002575/0.3987, allocations: 74.61 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.95e-05/0.3987, allocations: 28.91 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.3988, allocations: 4 kB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.399, allocations: 114.3 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.412e-06/0.399, allocations: 0 / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003829/0.3994, allocations: 173.5 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.3995, allocations: 55.39 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.3997, allocations: 168.1 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.3997, allocations: 41.64 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.994e-05/0.3998, allocations: 112 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.823e-05/0.3998, allocations: 27.66 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.4, allocations: 73.66 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4001, allocations: 326.8 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.4003, allocations: 91.95 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.4006, allocations: 144.8 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.4009, allocations: 252.5 kB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.4009, allocations: 11.94 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006235/0.4015, allocations: 400.1 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.697e-05/0.4016, allocations: 97.03 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.4016, allocations: 4 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.4016, allocations: 0 / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.208e-05/0.4017, allocations: 19.98 kB / 1.074 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.4017, allocations: 3.938 kB / 1.074 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005213/0.4023, allocations: 87.84 kB / 1.074 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.4023, allocations: 23.98 kB / 1.074 GB, free: 3.453 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.0001378/0.4024, allocations: 130.9 kB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.129e-05/0.4025, allocations: 15.84 kB / 1.075 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.108e-05/0.4025, allocations: 20.84 kB / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.4025, allocations: 3.938 kB / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4025, allocations: 0 / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4025, allocations: 3.984 kB / 1.075 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.4027, allocations: 209.6 kB / 1.075 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.4027, allocations: 0 / 1.075 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.452e-05/0.4028, allocations: 15.94 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.4028, allocations: 3.938 kB / 1.075 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.4028, allocations: 11.98 kB / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.4028, allocations: 0 / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4028, allocations: 4 kB / 1.075 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.4031, allocations: 160.9 kB / 1.075 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.4031, allocations: 92.86 kB / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.4031, allocations: 0 / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.522e-05/0.4032, allocations: 8 kB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.4032, allocations: 11.92 kB / 1.075 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.4032, allocations: 7.984 kB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.917e-05/0.4033, allocations: 121 kB / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4033, allocations: 0 / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002642/0.4036, allocations: 51.94 kB / 1.075 GB, free: 2.5 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.0001817/0.4038, allocations: 112.6 kB / 1.075 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004748/0.4043, allocations: 382 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4043, allocations: 0 / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.422e-05/0.4044, allocations: 52.3 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.4047, allocations: 31.92 kB / 1.076 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004831/0.4052, allocations: 275.6 kB / 1.076 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.4054, allocations: 0.7048 MB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.053e-05/0.4055, allocations: 16.58 kB / 1.077 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.4055, allocations: 15.44 kB / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.4055, allocations: 4 kB / 1.077 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of Templates: time 0.006105/0.4116, allocations: 2.658 MB / 1.079 GB, free: 14.2 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1)