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.001666/0.001667, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001944/0.001944, allocations: 187.3 kB / 16.25 MB, free: 6.617 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.537/1.537, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.7448 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 63.48 kB / 0.9115 GB, free: 33.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3863/0.3876, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002822/0.3905, allocations: 0.8777 MB / 1.069 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002131/0.3926, allocations: 1.295 MB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.989e-05/0.3928, allocations: 7.938 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.575e-05/0.3928, allocations: 7.922 kB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.393, allocations: 7.875 kB / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009351/0.3939, allocations: 313.4 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004163/0.3943, allocations: 299.5 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.3945, allocations: 45.41 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.3947, allocations: 123.7 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.3948, allocations: 83.7 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.369e-05/0.3949, allocations: 28 kB / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.395, allocations: 39.98 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.742e-05/0.395, allocations: 31.84 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.3952, allocations: 103.7 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003361/0.3955, allocations: 259.5 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3955, allocations: 0 / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.807e-06/0.3955, allocations: 0 / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.872e-06/0.3955, allocations: 3.938 kB / 1.071 GB, free: 7.258 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.0007524/0.3963, allocations: 0.5235 MB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3964, allocations: 8.031 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.602e-05/0.3964, allocations: 20.84 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.3966, allocations: 184.7 kB / 1.072 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.3966, allocations: 16.38 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/0.3967, allocations: 27.92 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.3969, allocations: 85.66 kB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3969, allocations: 0 / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.3969, allocations: 4 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.3969, allocations: 4 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/0.3971, allocations: 43.97 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000773/0.3979, allocations: 0.4922 MB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.3981, allocations: 74.55 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.477e-05/0.3982, allocations: 24.92 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.3982, allocations: 0 / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.3984, allocations: 123.2 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.3984, allocations: 0 / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003534/0.3988, allocations: 176.4 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.3988, allocations: 51.41 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.399, allocations: 169.2 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.399, allocations: 37.64 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.3991, allocations: 104 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.947e-05/0.3991, allocations: 27.66 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.3993, allocations: 81.66 kB / 1.073 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3994, allocations: 330.8 kB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.3996, allocations: 91.95 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.3998, allocations: 145.8 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004055/0.4003, allocations: 260.7 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.4003, allocations: 4 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006074/0.4009, allocations: 394.4 kB / 1.074 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.401, allocations: 101 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.974e-06/0.401, allocations: 4 kB / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.4011, allocations: 0 / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.783e-05/0.4011, allocations: 19.92 kB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.4011, allocations: 0 / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005042/0.4016, allocations: 91.84 kB / 1.075 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-05/0.4017, allocations: 23.98 kB / 1.075 GB, free: 3.238 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.0001245/0.4018, allocations: 133.8 kB / 1.075 GB, free: 3.098 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.215e-05/0.4019, allocations: 15.84 kB / 1.075 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.786e-05/0.4019, allocations: 12.84 kB / 1.075 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-06/0.4019, allocations: 3.984 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.4019, allocations: 0 / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.4019, allocations: 4 kB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.4021, allocations: 225.6 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.4021, allocations: 0 / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.711e-05/0.4022, allocations: 8 kB / 1.075 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.4022, allocations: 3.938 kB / 1.075 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.4022, allocations: 7.984 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4022, allocations: 0 / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4022, allocations: 0 / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.4024, allocations: 164.8 kB / 1.075 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.763e-05/0.4025, allocations: 96.86 kB / 1.075 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.4025, allocations: 3.938 kB / 1.075 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.027e-05/0.4026, allocations: 0 / 1.075 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.627e-05/0.4026, allocations: 15.98 kB / 1.075 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.4026, allocations: 7.984 kB / 1.075 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.501e-05/0.4027, allocations: 116.1 kB / 1.075 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4027, allocations: 0 / 1.075 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002693/0.403, allocations: 55.92 kB / 1.076 GB, free: 2.281 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.0001804/0.4032, allocations: 115.3 kB / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005712/0.4037, allocations: 386 kB / 1.076 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4037, allocations: 0 / 1.076 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.581e-05/0.4038, allocations: 55.92 kB / 1.076 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.4041, allocations: 30.77 kB / 1.076 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004875/0.4046, allocations: 270.3 kB / 1.076 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.4049, allocations: 0.7084 MB / 1.077 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.532e-05/0.405, allocations: 12.64 kB / 1.077 GB, free: 0.6328 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.142e-05/0.405, allocations: 15.44 kB / 1.077 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.405, allocations: 0 / 1.077 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of Templates: time 0.005995/0.411, allocations: 2.784 MB / 1.08 GB, free: 13.86 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)