Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001596/0.001596, allocations: 111.7 kB / 17.13 MB, free: 5.926 MB / 14.72 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.001877/0.001877, allocations: 204 kB / 20.09 MB, free: 2.977 MB / 14.72 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 1.556/1.556, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.94/2.94, allocations: 0.49 GB / 0.7923 GB, free: 1.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 75.89 kB / 1.15 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.033, allocations: 176.1 MB / 1.322 GB, free: 25.02 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001751/1.035, allocations: 0.8237 MB / 1.323 GB, free: 24.49 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001219/1.036, allocations: 1.34 MB / 1.324 GB, free: 23.51 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.737e-05/1.036, allocations: 2.094 kB / 1.324 GB, free: 23.51 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.855e-05/1.036, allocations: 14.81 kB / 1.324 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.077e-05/1.036, allocations: 20.12 kB / 1.324 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006731/1.037, allocations: 324 kB / 1.324 GB, free: 23.32 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000244/1.037, allocations: 294.4 kB / 1.325 GB, free: 23.2 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/1.037, allocations: 28.02 kB / 1.325 GB, free: 23.18 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/1.038, allocations: 115.8 kB / 1.325 GB, free: 23.14 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/1.038, allocations: 115 kB / 1.325 GB, free: 23.09 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.953e-05/1.038, allocations: 26.28 kB / 1.325 GB, free: 23.09 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.577e-05/1.038, allocations: 35.73 kB / 1.325 GB, free: 23.09 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.533e-05/1.038, allocations: 25.42 kB / 1.325 GB, free: 23.07 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.824e-05/1.038, allocations: 104.2 kB / 1.325 GB, free: 23.02 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002304/1.038, allocations: 268.5 kB / 1.325 GB, free: 22.93 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/1.038, allocations: 0 / 1.325 GB, free: 22.93 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.072e-06/1.038, allocations: 4 kB / 1.325 GB, free: 22.92 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.888e-06/1.038, allocations: 0 / 1.325 GB, free: 22.92 MB / 1.061 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.0005161/1.039, allocations: 0.5223 MB / 1.326 GB, free: 22.42 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/1.039, allocations: 16.27 kB / 1.326 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.987e-05/1.039, allocations: 23.12 kB / 1.326 GB, free: 22.4 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.603e-05/1.039, allocations: 182.2 kB / 1.326 GB, free: 22.2 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/1.039, allocations: 21.5 kB / 1.326 GB, free: 22.18 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/1.039, allocations: 18.44 kB / 1.326 GB, free: 22.18 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/1.039, allocations: 92.19 kB / 1.326 GB, free: 22.13 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/1.039, allocations: 4 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/1.039, allocations: 4 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/1.039, allocations: 2.969 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.604e-05/1.039, allocations: 48.5 kB / 1.326 GB, free: 22.11 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005295/1.04, allocations: 492 kB / 1.327 GB, free: 21.75 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/1.04, allocations: 75.91 kB / 1.327 GB, free: 21.7 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.412e-05/1.04, allocations: 27.47 kB / 1.327 GB, free: 21.69 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/1.04, allocations: 0 / 1.327 GB, free: 21.69 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001686/1.04, allocations: 118.1 kB / 1.327 GB, free: 21.62 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/1.04, allocations: 0 / 1.327 GB, free: 21.62 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0003616/1.041, allocations: 176.3 kB / 1.327 GB, free: 21.54 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.63e-05/1.041, allocations: 57.33 kB / 1.327 GB, free: 21.47 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/1.041, allocations: 165 kB / 1.327 GB, free: 21.35 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/1.041, allocations: 38.81 kB / 1.327 GB, free: 21.31 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.587e-05/1.041, allocations: 108.3 kB / 1.327 GB, free: 21.21 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/1.041, allocations: 24.92 kB / 1.328 GB, free: 21.2 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/1.041, allocations: 76.28 kB / 1.328 GB, free: 21.16 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.292e-05/1.041, allocations: 324.8 kB / 1.328 GB, free: 20.84 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/1.041, allocations: 94.88 kB / 1.328 GB, free: 20.82 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/1.041, allocations: 149.2 kB / 1.328 GB, free: 20.72 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/1.042, allocations: 257.2 kB / 1.328 GB, free: 20.51 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.042, allocations: 0 / 1.328 GB, free: 20.51 MB / 1.061 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000644/1.042, allocations: 416.3 kB / 1.329 GB, free: 20.28 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.928e-05/1.042, allocations: 103.7 kB / 1.329 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/1.042, allocations: 2.469 kB / 1.329 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/1.042, allocations: 1.875 kB / 1.329 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.795e-05/1.042, allocations: 12.97 kB / 1.329 GB, free: 20.17 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/1.043, allocations: 10.09 kB / 1.329 GB, free: 20.17 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004708/1.043, allocations: 75.55 kB / 1.329 GB, free: 20.16 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.608e-05/1.043, allocations: 21.17 kB / 1.329 GB, free: 20.16 MB / 1.061 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 9.545e-05/1.043, allocations: 136.4 kB / 1.329 GB, free: 20.03 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/1.043, allocations: 24.39 kB / 1.329 GB, free: 20.02 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/1.043, allocations: 19.92 kB / 1.329 GB, free: 20 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/1.043, allocations: 1.531 kB / 1.329 GB, free: 20 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/1.043, allocations: 0.5312 kB / 1.329 GB, free: 20 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/1.043, allocations: 0 / 1.329 GB, free: 20 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001388/1.043, allocations: 216.5 kB / 1.329 GB, free: 19.79 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/1.043, allocations: 0.9375 kB / 1.329 GB, free: 19.79 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.661e-05/1.043, allocations: 11.19 kB / 1.329 GB, free: 19.78 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/1.043, allocations: 1 kB / 1.329 GB, free: 19.78 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/1.043, allocations: 13.09 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/1.043, allocations: 0.6562 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/1.043, allocations: 0.5312 kB / 1.329 GB, free: 19.77 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002157/1.044, allocations: 163.5 kB / 1.33 GB, free: 19.67 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.736e-05/1.044, allocations: 92.89 kB / 1.33 GB, free: 19.56 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/1.044, allocations: 4.047 kB / 1.33 GB, free: 19.56 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.153e-05/1.044, allocations: 5.062 kB / 1.33 GB, free: 19.56 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/1.044, allocations: 8.156 kB / 1.33 GB, free: 19.56 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/1.044, allocations: 12.31 kB / 1.33 GB, free: 19.55 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.457e-05/1.044, allocations: 116.9 kB / 1.33 GB, free: 19.46 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.044, allocations: 0 / 1.33 GB, free: 19.46 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000284/1.044, allocations: 52.5 kB / 1.33 GB, free: 19.46 MB / 1.061 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.0001446/1.044, allocations: 112.3 kB / 1.33 GB, free: 19.36 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000459/1.045, allocations: 343.2 kB / 1.33 GB, free: 19.12 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/1.045, allocations: 4.062 kB / 1.33 GB, free: 19.11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.139e-05/1.045, allocations: 46.62 kB / 1.33 GB, free: 19.1 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/1.045, allocations: 23.62 kB / 1.33 GB, free: 19.09 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004422/1.045, allocations: 281.6 kB / 1.331 GB, free: 18.88 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/1.046, allocations: 0.7107 MB / 1.331 GB, free: 18.18 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.394e-05/1.046, allocations: 16.23 kB / 1.331 GB, free: 18.17 MB / 1.061 GB Notification: Performance of SimCode: time 4.21e-07/1.046, allocations: 0.5 kB / 1.331 GB, free: 18.17 MB / 1.061 GB Notification: Performance of Templates: time 0.004635/1.05, allocations: 2.278 MB / 1.334 GB, free: 17.95 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.555507390003186]