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.002434/0.002434, allocations: 79.7 kB / 20.23 MB, free: 4.191 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.002752/0.002752, allocations: 157.3 kB / 23.55 MB, free: 0.8789 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.624/1.624, allocations: 177.1 MB / 203.9 MB, free: 5.605 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.876/2.876, allocations: 359 MB / 0.6048 GB, free: 10.93 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 5.4e-06/5.4e-06, allocations: 3.984 kB / 0.7864 GB, free: 12.78 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.031e-05/3.571e-05, allocations: 2.312 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.002445/0.002481, allocations: 0.8176 MB / 0.7872 GB, free: 11.97 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002206/0.004686, allocations: 1.319 MB / 0.7885 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.004797, allocations: 4 kB / 0.7885 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 5.346e-05/0.00485, allocations: 11.86 kB / 0.7885 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001413/0.004991, allocations: 25.41 kB / 0.7885 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009863/0.005978, allocations: 313 kB / 0.7888 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0004193/0.006397, allocations: 289.9 kB / 0.7891 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.006536, allocations: 33.59 kB / 0.7891 GB, free: 9.98 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.006779, allocations: 159.8 kB / 0.7893 GB, free: 9.824 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001934/0.006973, allocations: 91.72 kB / 0.7894 GB, free: 9.734 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 6.606e-05/0.007039, allocations: 28 kB / 0.7894 GB, free: 9.707 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.007147, allocations: 35.98 kB / 0.7894 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.33e-05/0.00719, allocations: 21.67 kB / 0.7895 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.007339, allocations: 95.78 kB / 0.7895 GB, free: 9.559 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.0078, allocations: 315.1 kB / 0.7898 GB, free: 9.25 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.007803, allocations: 4 kB / 0.7898 GB, free: 9.246 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.122e-06/0.007804, allocations: 0 / 0.7898 GB, free: 9.246 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.007809, allocations: 0.5938 kB / 0.7898 GB, free: 9.246 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.000837/0.008646, allocations: 0.5477 MB / 0.7904 GB, free: 8.645 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.00869, allocations: 9.688 kB / 0.7904 GB, free: 8.637 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.008822, allocations: 24.89 kB / 0.7904 GB, free: 8.613 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001662/0.008989, allocations: 130.7 kB / 0.7905 GB, free: 8.461 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.419e-05/0.009023, allocations: 16.31 kB / 0.7906 GB, free: 8.445 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.804e-05/0.009071, allocations: 20.88 kB / 0.7906 GB, free: 8.426 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.009267, allocations: 91.67 kB / 0.7907 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.009277, allocations: 0 / 0.7907 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.009296, allocations: 12.77 kB / 0.7907 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.009301, allocations: 0 / 0.7907 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.009429, allocations: 49.12 kB / 0.7907 GB, free: 8.273 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000801/0.01023, allocations: 455.2 kB / 0.7912 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.0105, allocations: 76.48 kB / 0.7912 GB, free: 7.707 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.768e-05/0.01056, allocations: 31.73 kB / 0.7913 GB, free: 7.672 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.01058, allocations: 4 kB / 0.7913 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.0108, allocations: 118.7 kB / 0.7914 GB, free: 7.539 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.0108, allocations: 0 / 0.7914 GB, free: 7.539 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14): time 0.0004252/0.01123, allocations: 183.9 kB / 0.7916 GB, free: 7.355 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.01129, allocations: 59.34 kB / 0.7916 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.01151, allocations: 227.8 kB / 0.7918 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.006e-05/0.01156, allocations: 39.08 kB / 0.7919 GB, free: 7.004 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.01169, allocations: 159.3 kB / 0.792 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.01172, allocations: 35.72 kB / 0.792 GB, free: 6.809 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.01189, allocations: 87.83 kB / 0.7921 GB, free: 6.715 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002894/0.01218, allocations: 0.5001 MB / 0.7926 GB, free: 6.203 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003446/0.01252, allocations: 205.6 kB / 0.7928 GB, free: 5.984 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004093/0.01293, allocations: 288.8 kB / 0.7931 GB, free: 5.656 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004343/0.01337, allocations: 291.5 kB / 0.7934 GB, free: 5.328 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.01337, allocations: 0 / 0.7934 GB, free: 5.328 MB / 0.7448 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008908/0.01426, allocations: 0.5346 MB / 0.7939 GB, free: 4.75 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.01437, allocations: 103.9 kB / 0.794 GB, free: 4.633 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.01437, allocations: 4 kB / 0.794 GB, free: 4.629 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.01439, allocations: 4.719 kB / 0.794 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-05/0.01446, allocations: 16.45 kB / 0.794 GB, free: 4.609 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.01447, allocations: 0 / 0.794 GB, free: 4.609 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003946/0.01486, allocations: 69.53 kB / 0.7941 GB, free: 4.543 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/0.01491, allocations: 25.22 kB / 0.7941 GB, free: 4.52 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.0001721/0.01508, allocations: 176.5 kB / 0.7943 GB, free: 4.336 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.01511, allocations: 16.8 kB / 0.7943 GB, free: 4.32 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.732e-05/0.01515, allocations: 16.72 kB / 0.7943 GB, free: 4.309 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.01515, allocations: 1.312 kB / 0.7943 GB, free: 4.309 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.01516, allocations: 7.984 kB / 0.7943 GB, free: 4.301 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.01517, allocations: 0 / 0.7943 GB, free: 4.301 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002061/0.01537, allocations: 168.5 kB / 0.7945 GB, free: 4.102 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01537, allocations: 5.219 kB / 0.7945 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.995e-05/0.01542, allocations: 15.98 kB / 0.7945 GB, free: 4.082 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.01542, allocations: 0 / 0.7945 GB, free: 4.082 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.01544, allocations: 1.844 kB / 0.7945 GB, free: 4.082 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.01544, allocations: 3.938 kB / 0.7945 GB, free: 4.078 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.01544, allocations: 4 kB / 0.7945 GB, free: 4.074 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002879/0.01573, allocations: 184.2 kB / 0.7947 GB, free: 3.871 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.152e-05/0.01575, allocations: 11.91 kB / 0.7947 GB, free: 3.859 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.01577, allocations: 6.484 kB / 0.7947 GB, free: 3.855 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.635e-05/0.01581, allocations: 11.94 kB / 0.7947 GB, free: 3.844 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.957e-05/0.01586, allocations: 11.98 kB / 0.7947 GB, free: 3.832 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.01587, allocations: 4 kB / 0.7947 GB, free: 3.828 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001168/0.01599, allocations: 151.2 kB / 0.7949 GB, free: 3.68 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01599, allocations: 0 / 0.7949 GB, free: 3.68 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002803/0.01627, allocations: 49.06 kB / 0.7949 GB, free: 3.633 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.0001935/0.01646, allocations: 114.5 kB / 0.795 GB, free: 3.512 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007319/0.01719, allocations: 0.5084 MB / 0.7955 GB, free: 2.945 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.0172, allocations: 1.875 kB / 0.7955 GB, free: 2.945 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.0173, allocations: 59.66 kB / 0.7956 GB, free: 2.883 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.01759, allocations: 37.89 kB / 0.7956 GB, free: 2.848 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006134/0.01821, allocations: 256.2 kB / 0.7959 GB, free: 2.566 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.01833, allocations: 100 kB / 0.796 GB, free: 2.449 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.637e-05/0.01838, allocations: 13.69 kB / 0.796 GB, free: 2.438 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.01842, allocations: 15.66 kB / 0.796 GB, free: 2.426 MB / 0.7448 GB Notification: Performance of SimCode: time 4.91e-07/0.01842, allocations: 4 kB / 0.796 GB, free: 2.422 MB / 0.7448 GB Notification: Performance of Templates: time 0.007671/0.02609, allocations: 3.028 MB / 0.7989 GB, free: 15.48 MB / 0.7605 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] 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: 8.16051667893771]