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.001649/0.001649, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002741/0.002742, allocations: 194.2 kB / 16.14 MB, free: 6.711 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.696/1.696, allocations: 222.9 MB / 239.8 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.097/3.097, allocations: 472.6 MB / 0.7447 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 65.94 kB / 0.9114 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4758/0.4772, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002267/0.4795, allocations: 0.8816 MB / 1.068 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001711/0.4812, allocations: 1.326 MB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.496e-05/0.4813, allocations: 4 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.694e-05/0.4814, allocations: 11.88 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.482e-05/0.4814, allocations: 15.84 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000777/0.4822, allocations: 289.4 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.4825, allocations: 263.5 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.4826, allocations: 45.41 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.4828, allocations: 99.78 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.4829, allocations: 87.69 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.774e-05/0.4829, allocations: 16 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.982e-05/0.483, allocations: 27.98 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.4831, allocations: 31.86 kB / 1.071 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.4832, allocations: 91.67 kB / 1.071 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.4835, allocations: 247.5 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4835, allocations: 0 / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4835, allocations: 0 / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.603e-06/0.4835, allocations: 0 / 1.071 GB, free: 7.457 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.000681/0.4842, allocations: 0.5312 MB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.4843, allocations: 8.031 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.886e-05/0.4843, allocations: 20.84 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.4845, allocations: 181.5 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.4845, allocations: 16.36 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.772e-05/0.4846, allocations: 23.94 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.4848, allocations: 89.66 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.4848, allocations: 0 / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.4848, allocations: 3.938 kB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.4848, allocations: 0 / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/0.4849, allocations: 51.97 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007147/0.4856, allocations: 0.4961 MB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.4859, allocations: 70.61 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.464e-05/0.486, allocations: 28.91 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.486, allocations: 0 / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001861/0.4862, allocations: 119.2 kB / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.4862, allocations: 0 / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003748/0.4866, allocations: 176.6 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.4866, allocations: 55.34 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.4868, allocations: 164.1 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.192e-05/0.4868, allocations: 33.7 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.997e-05/0.4869, allocations: 108 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.487, allocations: 35.64 kB / 1.073 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.4871, allocations: 77.66 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4872, allocations: 322.8 kB / 1.073 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.4874, allocations: 103.8 kB / 1.073 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002375/0.4877, allocations: 148.6 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.488, allocations: 244.6 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.488, allocations: 0 / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006408/0.4887, allocations: 402.3 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.277e-05/0.4888, allocations: 105 kB / 1.074 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.4888, allocations: 4 kB / 1.074 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.4888, allocations: 0 / 1.074 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.065e-05/0.4889, allocations: 15.98 kB / 1.074 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.4889, allocations: 0 / 1.074 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005121/0.4894, allocations: 95.83 kB / 1.074 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.4894, allocations: 23.92 kB / 1.074 GB, free: 3.426 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.0001261/0.4896, allocations: 126.9 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.2e-05/0.4896, allocations: 15.84 kB / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.766e-05/0.4896, allocations: 16.84 kB / 1.075 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.4897, allocations: 4 kB / 1.075 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.4897, allocations: 3.984 kB / 1.075 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.4897, allocations: 0 / 1.075 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.4899, allocations: 213.6 kB / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.4899, allocations: 0 / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.737e-05/0.49, allocations: 15.92 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.49, allocations: 3.938 kB / 1.075 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.49, allocations: 8 kB / 1.075 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.49, allocations: 0 / 1.075 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.49, allocations: 0 / 1.075 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002422/0.4902, allocations: 160.9 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.611e-05/0.4903, allocations: 96.84 kB / 1.075 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.4903, allocations: 4 kB / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.24e-05/0.4904, allocations: 7.922 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.4904, allocations: 15.92 kB / 1.075 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.4904, allocations: 8 kB / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.403e-05/0.4905, allocations: 113 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4905, allocations: 0 / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002707/0.4908, allocations: 51.94 kB / 1.075 GB, free: 2.48 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.0001924/0.491, allocations: 120.6 kB / 1.075 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005149/0.4915, allocations: 382.1 kB / 1.076 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4915, allocations: 0 / 1.076 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.433e-05/0.4916, allocations: 51.92 kB / 1.076 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.4919, allocations: 31.7 kB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005788/0.4925, allocations: 269.3 kB / 1.076 GB, free: 1.574 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.4928, allocations: 0.7126 MB / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.345e-05/0.4929, allocations: 8.656 kB / 1.077 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.4929, allocations: 23.42 kB / 1.077 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.4929, allocations: 0 / 1.077 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of Templates: time 0.006129/0.499, allocations: 2.661 MB / 1.079 GB, free: 14.18 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)