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.001487/0.001487, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.001594/0.001594, allocations: 161.7 kB / 23.55 MB, free: 0.8906 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 1.477/1.477, allocations: 177.1 MB / 203.9 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 178] 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 2.814/2.814, allocations: 359 MB / 0.6048 GB, free: 10.91 MB / 0.573 GB " [Timeout remaining time 176] 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 6.913e-06/6.913e-06, allocations: 4 kB / 0.7864 GB, free: 12.77 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.259e-05/3.95e-05, allocations: 5.125 kB / 0.7864 GB, free: 12.77 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002137/0.002176, allocations: 0.8129 MB / 0.7872 GB, free: 11.97 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002032/0.004208, allocations: 1.312 MB / 0.7885 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.21e-05/0.00427, allocations: 4 kB / 0.7885 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 5.686e-05/0.004327, allocations: 12.92 kB / 0.7885 GB, free: 10.63 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.00443, allocations: 23.75 kB / 0.7885 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008818/0.005311, allocations: 317.5 kB / 0.7888 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.005713, allocations: 288.8 kB / 0.7891 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.005839, allocations: 29.61 kB / 0.7891 GB, free: 9.984 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000258/0.006097, allocations: 164.5 kB / 0.7893 GB, free: 9.824 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004387/0.006536, allocations: 87.78 kB / 0.7894 GB, free: 9.738 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 6.346e-05/0.006599, allocations: 29.09 kB / 0.7894 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 9.919e-05/0.006698, allocations: 39.98 kB / 0.7894 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.408e-05/0.006732, allocations: 19.92 kB / 0.7894 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.006865, allocations: 88.72 kB / 0.7895 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004546/0.00732, allocations: 311.1 kB / 0.7898 GB, free: 9.262 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.007324, allocations: 4 kB / 0.7898 GB, free: 9.258 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.533e-06/0.007325, allocations: 0.7812 kB / 0.7898 GB, free: 9.258 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.00733, allocations: 0 / 0.7898 GB, free: 9.258 MB / 0.7448 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.0007941/0.008124, allocations: 464 kB / 0.7903 GB, free: 8.758 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.008164, allocations: 12.03 kB / 0.7903 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.008279, allocations: 20.89 kB / 0.7903 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.00843, allocations: 126.8 kB / 0.7904 GB, free: 8.578 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.008467, allocations: 15.16 kB / 0.7904 GB, free: 8.566 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.612e-05/0.008523, allocations: 20.38 kB / 0.7905 GB, free: 8.547 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.008731, allocations: 91.08 kB / 0.7905 GB, free: 8.453 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.008742, allocations: 4 kB / 0.7906 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.008761, allocations: 7.984 kB / 0.7906 GB, free: 8.441 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.008767, allocations: 0 / 0.7906 GB, free: 8.441 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.00889, allocations: 47.98 kB / 0.7906 GB, free: 8.395 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007808/0.009671, allocations: 389.5 kB / 0.791 GB, free: 7.984 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/0.009941, allocations: 66.67 kB / 0.791 GB, free: 7.91 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.548e-05/0.01001, allocations: 24.84 kB / 0.7911 GB, free: 7.883 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.01003, allocations: 8.531 kB / 0.7911 GB, free: 7.875 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002963/0.01032, allocations: 105 kB / 0.7912 GB, free: 7.762 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=14): time 1.863e-06/0.01032, allocations: 0 / 0.7912 GB, free: 7.762 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14): time 0.0004393/0.01076, allocations: 181.7 kB / 0.7913 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.2e-05/0.01082, allocations: 67.28 kB / 0.7914 GB, free: 7.5 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.01099, allocations: 155.8 kB / 0.7916 GB, free: 7.34 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.236e-05/0.01105, allocations: 33.7 kB / 0.7916 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.01118, allocations: 113.2 kB / 0.7917 GB, free: 7.188 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.01121, allocations: 27.75 kB / 0.7917 GB, free: 7.16 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.01137, allocations: 78.34 kB / 0.7918 GB, free: 7.078 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000191/0.01156, allocations: 322.8 kB / 0.7921 GB, free: 6.754 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.01186, allocations: 186 kB / 0.7923 GB, free: 6.555 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003509/0.01221, allocations: 235 kB / 0.7925 GB, free: 6.285 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003797/0.01259, allocations: 256.5 kB / 0.7928 GB, free: 6 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.01259, allocations: 0 / 0.7928 GB, free: 6 MB / 0.7448 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008641/0.01346, allocations: 0.501 MB / 0.7932 GB, free: 5.457 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.01357, allocations: 109 kB / 0.7933 GB, free: 5.332 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.01357, allocations: 0 / 0.7933 GB, free: 5.332 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/0.0136, allocations: 4.5 kB / 0.7933 GB, free: 5.328 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.826e-05/0.01367, allocations: 12.47 kB / 0.7934 GB, free: 5.316 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.01367, allocations: 4 kB / 0.7934 GB, free: 5.312 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.01419, allocations: 88.23 kB / 0.7934 GB, free: 5.23 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.76e-05/0.01424, allocations: 15.98 kB / 0.7935 GB, free: 5.215 MB / 0.7448 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.0001676/0.0144, allocations: 141.8 kB / 0.7936 GB, free: 5.066 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.01443, allocations: 11.95 kB / 0.7936 GB, free: 5.055 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.652e-05/0.01447, allocations: 12.72 kB / 0.7936 GB, free: 5.047 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-06/0.01447, allocations: 4.531 kB / 0.7936 GB, free: 5.043 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.01448, allocations: 4.703 kB / 0.7936 GB, free: 5.039 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.01448, allocations: 0 / 0.7936 GB, free: 5.039 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.01468, allocations: 145.8 kB / 0.7938 GB, free: 4.867 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.01469, allocations: 4 kB / 0.7938 GB, free: 4.863 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.306e-05/0.01474, allocations: 17.11 kB / 0.7938 GB, free: 4.848 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.01474, allocations: 0 / 0.7938 GB, free: 4.848 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.01476, allocations: 4 kB / 0.7938 GB, free: 4.844 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.01476, allocations: 4.5 kB / 0.7938 GB, free: 4.84 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.01476, allocations: 0.9062 kB / 0.7938 GB, free: 4.84 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.01506, allocations: 175.3 kB / 0.794 GB, free: 4.652 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.152e-05/0.01509, allocations: 16.69 kB / 0.794 GB, free: 4.637 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/0.01511, allocations: 7.984 kB / 0.794 GB, free: 4.629 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.275e-05/0.01514, allocations: 3.938 kB / 0.794 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.654e-05/0.01519, allocations: 13.64 kB / 0.794 GB, free: 4.613 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.0152, allocations: 4 kB / 0.794 GB, free: 4.609 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001051/0.01531, allocations: 109.3 kB / 0.7941 GB, free: 4.504 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01531, allocations: 0 / 0.7941 GB, free: 4.504 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002948/0.0156, allocations: 48.88 kB / 0.7942 GB, free: 4.457 MB / 0.7448 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.0002028/0.01581, allocations: 111.4 kB / 0.7943 GB, free: 4.34 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006639/0.01647, allocations: 435.1 kB / 0.7947 GB, free: 3.859 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01647, allocations: 0 / 0.7947 GB, free: 3.859 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 9.281e-05/0.01656, allocations: 46.06 kB / 0.7947 GB, free: 3.816 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.01686, allocations: 35.91 kB / 0.7948 GB, free: 3.781 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005423/0.0174, allocations: 258.2 kB / 0.795 GB, free: 3.5 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001009/0.0175, allocations: 91.59 kB / 0.7951 GB, free: 3.391 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.293e-05/0.01754, allocations: 14.81 kB / 0.7951 GB, free: 3.379 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.86e-05/0.01758, allocations: 16.5 kB / 0.7951 GB, free: 3.363 MB / 0.7448 GB Notification: Performance of SimCode: time 4.01e-07/0.01758, allocations: 0 / 0.7951 GB, free: 3.363 MB / 0.7448 GB Notification: Performance of Templates: time 0.007619/0.0252, allocations: 3.041 MB / 0.7981 GB, free: 424 kB / 0.7448 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: 7.891023192089051]