Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 184.3 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.704/2.704, allocations: 443.4 MB / 0.7321 GB, free: 12.5 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/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="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_10_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_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 67.89 kB / 1.061 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.11/1.112, allocations: 160.8 MB / 1.218 GB, free: 3.723 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002545/1.115, allocations: 0.8508 MB / 1.219 GB, free: 3.07 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002192/1.117, allocations: 1.294 MB / 1.221 GB, free: 2.023 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.082e-05/1.117, allocations: 2.281 kB / 1.221 GB, free: 2.023 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.529e-05/1.117, allocations: 11.81 kB / 1.221 GB, free: 2.012 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001144/1.117, allocations: 27.41 kB / 1.221 GB, free: 1.988 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001042/1.118, allocations: 319.1 kB / 1.221 GB, free: 1.777 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.00052/1.119, allocations: 298.7 kB / 1.221 GB, free: 1.605 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/1.119, allocations: 32.86 kB / 1.221 GB, free: 1.582 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/1.119, allocations: 115.7 kB / 1.221 GB, free: 1.52 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/1.12, allocations: 110.9 kB / 1.221 GB, free: 1.438 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 7.465e-05/1.12, allocations: 25.88 kB / 1.221 GB, free: 1.438 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/1.12, allocations: 44.88 kB / 1.222 GB, free: 1.426 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.696e-05/1.12, allocations: 22.23 kB / 1.222 GB, free: 1.41 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001894/1.12, allocations: 105.9 kB / 1.222 GB, free: 1.336 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005595/1.121, allocations: 268 kB / 1.222 GB, free: 1.137 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/1.121, allocations: 0 / 1.222 GB, free: 1.137 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.945e-06/1.121, allocations: 4 kB / 1.222 GB, free: 1.133 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.446e-05/1.121, allocations: 0 / 1.222 GB, free: 1.133 MB / 0.92 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.001027/1.122, allocations: 0.532 MB / 1.222 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.566e-05/1.122, allocations: 9.312 kB / 1.222 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/1.122, allocations: 18.27 kB / 1.222 GB, free: 0.5898 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/1.122, allocations: 193.1 kB / 1.223 GB, free: 380 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/1.122, allocations: 17.44 kB / 1.223 GB, free: 372 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.813e-05/1.122, allocations: 19.84 kB / 1.223 GB, free: 368 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/1.122, allocations: 92.45 kB / 1.223 GB, free: 300 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/1.122, allocations: 4 kB / 1.223 GB, free: 296 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/1.122, allocations: 1.125 kB / 1.223 GB, free: 296 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/1.122, allocations: 6.141 kB / 1.223 GB, free: 292 kB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/1.123, allocations: 45.05 kB / 1.223 GB, free: 272 kB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/1.124, allocations: 498.1 kB / 1.223 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003176/1.124, allocations: 65.34 kB / 1.223 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.775e-05/1.124, allocations: 31.19 kB / 1.223 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/1.124, allocations: 1.219 kB / 1.223 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003737/1.125, allocations: 122.8 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.783e-06/1.125, allocations: 0 / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0005768/1.125, allocations: 173.4 kB / 1.224 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/1.125, allocations: 57.62 kB / 1.224 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002257/1.125, allocations: 166 kB / 1.224 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.553e-05/1.125, allocations: 35.02 kB / 1.224 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/1.126, allocations: 113.3 kB / 1.224 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.287e-05/1.126, allocations: 36.66 kB / 1.224 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/1.126, allocations: 73.89 kB / 1.224 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001952/1.126, allocations: 322.2 kB / 1.224 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/1.126, allocations: 97.56 kB / 1.225 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/1.127, allocations: 142.2 kB / 1.225 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/1.127, allocations: 254.6 kB / 1.225 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/1.127, allocations: 1.062 kB / 1.225 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007781/1.128, allocations: 402 kB / 1.225 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/1.128, allocations: 100.9 kB / 1.225 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/1.128, allocations: 1.656 kB / 1.225 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/1.128, allocations: 2.844 kB / 1.225 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-05/1.128, allocations: 17.33 kB / 1.225 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/1.128, allocations: 6.281 kB / 1.225 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004864/1.128, allocations: 83.53 kB / 1.225 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.794e-05/1.128, allocations: 18.36 kB / 1.225 GB, free: 14.03 MB / 0.9356 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.0001793/1.129, allocations: 149.5 kB / 1.226 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.343e-05/1.129, allocations: 18.16 kB / 1.226 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.621e-05/1.129, allocations: 15.72 kB / 1.226 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.129, allocations: 1.094 kB / 1.226 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/1.129, allocations: 5.031 kB / 1.226 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/1.129, allocations: 0 / 1.226 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002727/1.129, allocations: 220.2 kB / 1.226 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/1.129, allocations: 0 / 1.226 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.485e-05/1.129, allocations: 16 kB / 1.226 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/1.129, allocations: 0.7188 kB / 1.226 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/1.129, allocations: 6.219 kB / 1.226 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/1.129, allocations: 8.641 kB / 1.226 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/1.129, allocations: 0 / 1.226 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003341/1.129, allocations: 161.7 kB / 1.226 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.069e-05/1.13, allocations: 93.11 kB / 1.226 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/1.13, allocations: 5.5 kB / 1.226 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.006e-05/1.13, allocations: 0 / 1.226 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/1.13, allocations: 12.2 kB / 1.226 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/1.13, allocations: 17.2 kB / 1.226 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001482/1.13, allocations: 115 kB / 1.226 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.11e-07/1.13, allocations: 0 / 1.226 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003339/1.13, allocations: 52.81 kB / 1.226 GB, free: 13.26 MB / 0.9356 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.0002481/1.13, allocations: 100.9 kB / 1.226 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006732/1.131, allocations: 353.4 kB / 1.227 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.131, allocations: 4.375 kB / 1.227 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001049/1.131, allocations: 38.77 kB / 1.227 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/1.132, allocations: 30.09 kB / 1.227 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007554/1.132, allocations: 247.9 kB / 1.227 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/1.133, allocations: 0.7086 MB / 1.228 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.603e-05/1.133, allocations: 13.33 kB / 1.228 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.58e-05/1.133, allocations: 13.88 kB / 1.228 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of SimCode: time 3.1e-07/1.133, allocations: 1.719 kB / 1.228 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of Templates: time 0.007912/1.141, allocations: 2.857 MB / 1.231 GB, free: 10.34 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.561965951696038]