Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008007/0.0008007, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001112/0.001913, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007352/0.0007352, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009518/0.001687, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9179/0.9179, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09053/1.008, allocations: 53.66 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.405/2.405, allocations: 446.7 MB / 0.6745 GB, free: 6.242 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2418/2.646, allocations: 145.9 MB / 0.817 GB, free: 4.23 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 3.938 kB / 0.8183 GB, free: 2.914 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/2.74e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.91 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001698/0.001726, allocations: 0.8714 MB / 0.8192 GB, free: 2.035 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.002911, allocations: 1.345 MB / 0.8205 GB, free: 0.6758 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.208e-05/0.002963, allocations: 0 / 0.8205 GB, free: 0.6758 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 3.062e-05/0.002994, allocations: 11.81 kB / 0.8205 GB, free: 0.6641 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 5.082e-05/0.003045, allocations: 23.78 kB / 0.8205 GB, free: 0.6406 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004528/0.003498, allocations: 311.2 kB / 0.8208 GB, free: 344 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.00026/0.003758, allocations: 283.5 kB / 0.8211 GB, free: 60 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.003868, allocations: 30.27 kB / 0.8211 GB, free: 28 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.004062, allocations: 179.7 kB / 0.8213 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.004206, allocations: 83.8 kB / 0.8214 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.157e-05/0.004248, allocations: 24 kB / 0.8214 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.004353, allocations: 55.91 kB / 0.8214 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.872e-05/0.004382, allocations: 15.94 kB / 0.8214 GB, free: 15.68 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 7.439e-05/0.004456, allocations: 63.86 kB / 0.8215 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.004702, allocations: 171.5 kB / 0.8217 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.023e-05/0.004722, allocations: 0 / 0.8217 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.103e-06/0.004723, allocations: 0 / 0.8217 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.595e-05/0.004739, allocations: 0 / 0.8217 GB, free: 15.45 MB / 0.8073 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.0005982/0.005338, allocations: 465.1 kB / 0.8221 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.005376, allocations: 8.625 kB / 0.8221 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.00543, allocations: 28.91 kB / 0.8221 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.005604, allocations: 146.2 kB / 0.8223 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.005628, allocations: 16.38 kB / 0.8223 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.005655, allocations: 20.38 kB / 0.8223 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.005783, allocations: 90.28 kB / 0.8224 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.005792, allocations: 0 / 0.8224 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.005801, allocations: 3.984 kB / 0.8224 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.005807, allocations: 4 kB / 0.8224 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.595e-05/0.005843, allocations: 16 kB / 0.8224 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003493/0.006192, allocations: 259.9 kB / 0.8227 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.006333, allocations: 54.42 kB / 0.8227 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.323e-05/0.006356, allocations: 24.84 kB / 0.8228 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 6.733e-06/0.006363, allocations: 0 / 0.8228 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001255/0.006489, allocations: 99.31 kB / 0.8228 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=14): time 2.414e-06/0.006491, allocations: 3.984 kB / 0.8229 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14): time 0.0001665/0.006658, allocations: 101.6 kB / 0.8229 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.006697, allocations: 59.41 kB / 0.823 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.665e-05/0.006784, allocations: 161.1 kB / 0.8232 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.006812, allocations: 37.7 kB / 0.8232 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.358e-05/0.006866, allocations: 112.4 kB / 0.8233 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.006888, allocations: 31.78 kB / 0.8233 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.476e-05/0.006962, allocations: 73.64 kB / 0.8234 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.02e-05/0.007043, allocations: 322.8 kB / 0.8237 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.007151, allocations: 145.1 kB / 0.8238 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.00728, allocations: 207 kB / 0.824 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.007437, allocations: 224.9 kB / 0.8243 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.007442, allocations: 7.938 kB / 0.8243 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000302/0.007744, allocations: 387.6 kB / 0.8246 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.64e-05/0.00782, allocations: 101.1 kB / 0.8247 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.007829, allocations: 4 kB / 0.8247 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.00784, allocations: 3.938 kB / 0.8247 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.577e-05/0.007895, allocations: 15.94 kB / 0.8248 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.007902, allocations: 4 kB / 0.8248 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.008098, allocations: 68.02 kB / 0.8248 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.008122, allocations: 15.98 kB / 0.8248 GB, free: 11.87 MB / 0.8073 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.0001031/0.008225, allocations: 129.8 kB / 0.825 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.00824, allocations: 11.98 kB / 0.825 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.00827, allocations: 8.781 kB / 0.825 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.008275, allocations: 7.938 kB / 0.825 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.008279, allocations: 3.984 kB / 0.825 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.008283, allocations: 4 kB / 0.825 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.008387, allocations: 93.86 kB / 0.8251 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.008388, allocations: 0 / 0.8251 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.178e-05/0.00842, allocations: 15.98 kB / 0.8251 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.123e-05/0.008431, allocations: 15.84 kB / 0.8251 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.008433, allocations: 0 / 0.8251 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-06/0.008438, allocations: 4 kB / 0.8251 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.00844, allocations: 4 kB / 0.8251 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.008443, allocations: 7.875 kB / 0.8251 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004048/0.008848, allocations: 110.8 kB / 0.8252 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.008861, allocations: 4 kB / 0.8252 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.911e-05/0.00888, allocations: 8 kB / 0.8253 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.576e-05/0.008906, allocations: 11.97 kB / 0.8253 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.044e-06/0.008913, allocations: 7.938 kB / 0.8253 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.208e-05/0.008935, allocations: 27.28 kB / 0.8253 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.008935, allocations: 0 / 0.8253 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001467/0.009082, allocations: 48 kB / 0.8253 GB, free: 11.3 MB / 0.8073 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.0001353/0.009217, allocations: 96.27 kB / 0.8254 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002755/0.009493, allocations: 404.2 kB / 0.8258 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.009499, allocations: 4 kB / 0.8258 GB, free: 10.75 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.508e-05/0.009534, allocations: 40.77 kB / 0.8259 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001651/0.009699, allocations: 36.23 kB / 0.8259 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005091/0.01021, allocations: 228.5 kB / 0.8261 GB, free: 10.42 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.883e-05/0.01025, allocations: 75.19 kB / 0.8262 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.238e-05/0.01028, allocations: 13.11 kB / 0.8262 GB, free: 10.31 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.01041, allocations: 99.31 kB / 0.8263 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of SimCode: time 8.01e-07/0.01041, allocations: 0 / 0.8263 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of Templates: time 0.005115/0.01552, allocations: 3.385 MB / 0.8296 GB, free: 6.902 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.206023161299527]