Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008229/0.0008229, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008093/0.0008093, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 18.57 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.8684/0.8684, allocations: 177.1 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.618/1.618, allocations: 359 MB / 0.6044 GB, free: 11.08 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 0.9518 GB, free: 1.832 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.971e-05/2.163e-05, allocations: 2.281 kB / 0.9518 GB, free: 1.828 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001267/0.001289, allocations: 0.8009 MB / 0.9525 GB, free: 1.023 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001239/0.002528, allocations: 1.311 MB / 0.9538 GB, free: 15.7 MB / 0.8698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.82e-05/0.002587, allocations: 0 / 0.9538 GB, free: 15.7 MB / 0.8698 GB Notification: Performance of NFTyping.typeComponents: time 3.92e-05/0.002626, allocations: 7.875 kB / 0.9538 GB, free: 15.69 MB / 0.8698 GB Notification: Performance of NFTyping.typeBindings: time 7.266e-05/0.002698, allocations: 27.72 kB / 0.9539 GB, free: 15.66 MB / 0.8698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005608/0.003259, allocations: 331.5 kB / 0.9542 GB, free: 15.35 MB / 0.8698 GB Notification: Performance of NFFlatten.flatten: time 0.0002397/0.003499, allocations: 295.5 kB / 0.9545 GB, free: 15.06 MB / 0.8698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.003604, allocations: 29.59 kB / 0.9545 GB, free: 15.02 MB / 0.8698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.003743, allocations: 163.8 kB / 0.9546 GB, free: 14.86 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.003866, allocations: 87.78 kB / 0.9547 GB, free: 14.78 MB / 0.8698 GB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.003899, allocations: 28 kB / 0.9547 GB, free: 14.75 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 6.758e-05/0.003967, allocations: 43.97 kB / 0.9548 GB, free: 14.71 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 2.883e-05/0.003996, allocations: 27.86 kB / 0.9548 GB, free: 14.68 MB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 7.93e-05/0.004075, allocations: 83.84 kB / 0.9549 GB, free: 14.6 MB / 0.8698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002685/0.004343, allocations: 311.2 kB / 0.9552 GB, free: 14.29 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.004345, allocations: 0 / 0.9552 GB, free: 14.29 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.162e-06/0.004347, allocations: 0 / 0.9552 GB, free: 14.29 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.004351, allocations: 0 / 0.9552 GB, free: 14.29 MB / 0.8698 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.0004825/0.004834, allocations: 458.8 kB / 0.9556 GB, free: 13.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.004874, allocations: 8.031 kB / 0.9556 GB, free: 13.79 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.467e-05/0.004949, allocations: 32.83 kB / 0.9557 GB, free: 13.76 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.005061, allocations: 122.2 kB / 0.9558 GB, free: 13.61 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.912e-05/0.0051, allocations: 12.38 kB / 0.9558 GB, free: 13.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/0.005133, allocations: 20.38 kB / 0.9558 GB, free: 13.58 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001471/0.00528, allocations: 101.5 kB / 0.9559 GB, free: 13.48 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.005289, allocations: 3.984 kB / 0.9559 GB, free: 13.47 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.005299, allocations: 0 / 0.9559 GB, free: 13.47 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.005304, allocations: 4 kB / 0.9559 GB, free: 13.47 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.454e-05/0.005379, allocations: 43.98 kB / 0.956 GB, free: 13.43 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/0.005824, allocations: 380.1 kB / 0.9563 GB, free: 13.02 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.006005, allocations: 66.55 kB / 0.9564 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.786e-05/0.006043, allocations: 32.91 kB / 0.9564 GB, free: 12.91 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.006053, allocations: 4 kB / 0.9564 GB, free: 12.91 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000137/0.00619, allocations: 123.4 kB / 0.9565 GB, free: 12.78 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.006192, allocations: 0 / 0.9565 GB, free: 12.78 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14): time 0.0002702/0.006462, allocations: 164 kB / 0.9567 GB, free: 12.61 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.006496, allocations: 55.41 kB / 0.9568 GB, free: 12.55 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.572e-05/0.006581, allocations: 155.6 kB / 0.9569 GB, free: 12.39 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.006609, allocations: 33.7 kB / 0.9569 GB, free: 12.35 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.85e-05/0.006668, allocations: 116.5 kB / 0.957 GB, free: 12.23 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.006689, allocations: 35.72 kB / 0.9571 GB, free: 12.2 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.022e-05/0.00677, allocations: 77.61 kB / 0.9572 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.393e-05/0.006854, allocations: 322.8 kB / 0.9575 GB, free: 11.79 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.007022, allocations: 185 kB / 0.9576 GB, free: 11.59 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.007201, allocations: 238.9 kB / 0.9579 GB, free: 11.32 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000202/0.007403, allocations: 253.2 kB / 0.9581 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.007405, allocations: 0 / 0.9581 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007003/0.008105, allocations: 0.4916 MB / 0.9586 GB, free: 10.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.759e-05/0.008153, allocations: 97.03 kB / 0.9587 GB, free: 10.38 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.008159, allocations: 4 kB / 0.9587 GB, free: 10.38 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.008171, allocations: 0 / 0.9587 GB, free: 10.38 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.473e-05/0.008216, allocations: 12 kB / 0.9587 GB, free: 10.37 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.008223, allocations: 7.922 kB / 0.9587 GB, free: 10.36 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.00846, allocations: 87.98 kB / 0.9588 GB, free: 10.27 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.008488, allocations: 27.92 kB / 0.9588 GB, free: 10.25 MB / 0.8698 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 8.908e-05/0.008577, allocations: 125.8 kB / 0.9589 GB, free: 10.11 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.476e-05/0.008592, allocations: 15.91 kB / 0.9589 GB, free: 10.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.588e-05/0.008618, allocations: 20.7 kB / 0.959 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.008621, allocations: 4 kB / 0.959 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.008628, allocations: 4 kB / 0.959 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.008632, allocations: 0 / 0.959 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.008732, allocations: 145.3 kB / 0.9591 GB, free: 9.902 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.008734, allocations: 0 / 0.9591 GB, free: 9.902 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.497e-05/0.008759, allocations: 19.92 kB / 0.9591 GB, free: 9.883 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.008761, allocations: 0 / 0.9591 GB, free: 9.883 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.008769, allocations: 0 / 0.9591 GB, free: 9.883 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.008772, allocations: 7.938 kB / 0.9591 GB, free: 9.875 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.008773, allocations: 0 / 0.9591 GB, free: 9.875 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/0.008935, allocations: 165 kB / 0.9593 GB, free: 9.695 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.266e-05/0.008948, allocations: 11.89 kB / 0.9593 GB, free: 9.684 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.943e-05/0.008968, allocations: 11.98 kB / 0.9593 GB, free: 9.672 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.79e-05/0.008985, allocations: 3.938 kB / 0.9593 GB, free: 9.668 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.952e-05/0.009025, allocations: 11.98 kB / 0.9593 GB, free: 9.656 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.872e-06/0.009032, allocations: 4 kB / 0.9593 GB, free: 9.652 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.984e-05/0.009082, allocations: 109.1 kB / 0.9594 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5e-08/0.009082, allocations: 0 / 0.9594 GB, free: 9.547 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001885/0.00927, allocations: 55.89 kB / 0.9595 GB, free: 9.492 MB / 0.8698 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.0001405/0.009411, allocations: 114.2 kB / 0.9596 GB, free: 9.371 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00036/0.009771, allocations: 435.1 kB / 0.96 GB, free: 8.891 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.173e-06/0.009772, allocations: 0 / 0.96 GB, free: 8.891 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.411e-05/0.009826, allocations: 43.92 kB / 0.9601 GB, free: 8.848 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/0.01001, allocations: 31.95 kB / 0.9601 GB, free: 8.816 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003621/0.01037, allocations: 269.3 kB / 0.9603 GB, free: 8.52 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.671e-05/0.01043, allocations: 102.3 kB / 0.9604 GB, free: 8.402 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.378e-05/0.01045, allocations: 12.5 kB / 0.9605 GB, free: 8.391 MB / 0.8698 GB Notification: Performance of SimCode: time 5.31e-07/0.01045, allocations: 4 kB / 0.9605 GB, free: 8.387 MB / 0.8698 GB Notification: Performance of Templates: time 0.002701/0.01315, allocations: 2.28 MB / 0.9627 GB, free: 6.125 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 6.34806452691555]