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.0008448/0.0008448, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.0009385/0.0009385, allocations: 165.3 kB / 23.82 MB, free: 0.7461 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.9329/0.9329, allocations: 177.1 MB / 204.2 MB, free: 5.609 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.83/1.83, allocations: 359 MB / 0.6052 GB, free: 11 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.673e-06/1.673e-06, allocations: 0 / 0.7871 GB, free: 12.45 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.515e-05, allocations: 2.312 kB / 0.7871 GB, free: 12.45 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.00158/0.001605, allocations: 0.8342 MB / 0.7879 GB, free: 11.63 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001775/0.00338, allocations: 1.336 MB / 0.7892 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.763e-05/0.003448, allocations: 4 kB / 0.7892 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 4.405e-05/0.003492, allocations: 12.42 kB / 0.7893 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.003592, allocations: 24.64 kB / 0.7893 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007263/0.004318, allocations: 317.1 kB / 0.7896 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003006/0.004619, allocations: 297.1 kB / 0.7899 GB, free: 9.645 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.004754, allocations: 29.56 kB / 0.7899 GB, free: 9.613 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.004937, allocations: 163.8 kB / 0.79 GB, free: 9.453 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.005084, allocations: 91.72 kB / 0.7901 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 4.071e-05/0.005124, allocations: 25.22 kB / 0.7902 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.169e-05/0.005206, allocations: 35.94 kB / 0.7902 GB, free: 9.305 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.609e-05/0.005242, allocations: 27.91 kB / 0.7902 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 8.986e-05/0.005332, allocations: 84.55 kB / 0.7903 GB, free: 9.195 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002723/0.005604, allocations: 227.3 kB / 0.7905 GB, free: 8.973 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.005607, allocations: 1.594 kB / 0.7905 GB, free: 8.973 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.162e-06/0.005608, allocations: 0 / 0.7905 GB, free: 8.973 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.005614, allocations: 0 / 0.7905 GB, free: 8.973 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.0005832/0.006197, allocations: 0.548 MB / 0.7911 GB, free: 8.371 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.006243, allocations: 8.938 kB / 0.7911 GB, free: 8.363 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.848e-05/0.006321, allocations: 28.84 kB / 0.7911 GB, free: 8.336 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.006523, allocations: 169 kB / 0.7912 GB, free: 8.145 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.006547, allocations: 19.7 kB / 0.7913 GB, free: 8.129 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.006576, allocations: 16.38 kB / 0.7913 GB, free: 8.113 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.006733, allocations: 95.95 kB / 0.7914 GB, free: 8.012 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.006744, allocations: 0 / 0.7914 GB, free: 8.012 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.006757, allocations: 3.938 kB / 0.7914 GB, free: 8.008 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.006768, allocations: 7.984 kB / 0.7914 GB, free: 8 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.504e-05/0.006823, allocations: 23.98 kB / 0.7914 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000504/0.007327, allocations: 435.3 kB / 0.7918 GB, free: 7.516 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.00752, allocations: 63.88 kB / 0.7919 GB, free: 7.441 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.556e-05/0.007555, allocations: 25.33 kB / 0.7919 GB, free: 7.414 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 8.727e-06/0.007564, allocations: 0 / 0.7919 GB, free: 7.414 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001521/0.007716, allocations: 108.9 kB / 0.792 GB, free: 7.293 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.007718, allocations: 0 / 0.792 GB, free: 7.293 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14): time 0.0002743/0.007992, allocations: 161.2 kB / 0.7922 GB, free: 7.133 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.008032, allocations: 59.34 kB / 0.7922 GB, free: 7.062 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.00815, allocations: 207.5 kB / 0.7924 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.00818, allocations: 33.7 kB / 0.7925 GB, free: 6.805 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.463e-05/0.008265, allocations: 156.7 kB / 0.7926 GB, free: 6.648 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.37e-05/0.008289, allocations: 27.75 kB / 0.7926 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.119e-05/0.00838, allocations: 83.31 kB / 0.7927 GB, free: 6.531 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.00851, allocations: 0.4923 MB / 0.7932 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.008695, allocations: 170.5 kB / 0.7934 GB, free: 5.844 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.008881, allocations: 258.5 kB / 0.7936 GB, free: 5.547 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002065/0.009087, allocations: 251.2 kB / 0.7938 GB, free: 5.258 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.009091, allocations: 0 / 0.7938 GB, free: 5.258 MB / 0.7448 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004627/0.009554, allocations: 477 kB / 0.7943 GB, free: 4.75 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.31e-05/0.009617, allocations: 105.5 kB / 0.7944 GB, free: 4.629 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.009624, allocations: 4 kB / 0.7944 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.009636, allocations: 1.031 kB / 0.7944 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.92e-05/0.009685, allocations: 15.94 kB / 0.7944 GB, free: 4.609 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.009692, allocations: 4.641 kB / 0.7944 GB, free: 4.605 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.009888, allocations: 65.75 kB / 0.7945 GB, free: 4.543 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.009913, allocations: 15.98 kB / 0.7945 GB, free: 4.527 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.000107/0.01002, allocations: 181.7 kB / 0.7947 GB, free: 4.34 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.823e-05/0.01004, allocations: 11.95 kB / 0.7947 GB, free: 4.328 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.896e-05/0.01007, allocations: 17.66 kB / 0.7947 GB, free: 4.316 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.01007, allocations: 0 / 0.7947 GB, free: 4.316 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.01007, allocations: 4 kB / 0.7947 GB, free: 4.312 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.01008, allocations: 4.797 kB / 0.7947 GB, free: 4.309 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.01019, allocations: 156.5 kB / 0.7949 GB, free: 4.121 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.0102, allocations: 0.9375 kB / 0.7949 GB, free: 4.121 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.749e-05/0.01022, allocations: 11.98 kB / 0.7949 GB, free: 4.109 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.01023, allocations: 1.344 kB / 0.7949 GB, free: 4.109 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.01024, allocations: 8 kB / 0.7949 GB, free: 4.102 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.01024, allocations: 3.938 kB / 0.7949 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.01024, allocations: 0 / 0.7949 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001615/0.0104, allocations: 161.3 kB / 0.795 GB, free: 3.918 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.594e-05/0.01042, allocations: 15.84 kB / 0.795 GB, free: 3.902 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.01044, allocations: 4 kB / 0.7951 GB, free: 3.898 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.731e-05/0.01045, allocations: 14.23 kB / 0.7951 GB, free: 3.887 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/0.0105, allocations: 19.91 kB / 0.7951 GB, free: 3.867 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.01051, allocations: 4 kB / 0.7951 GB, free: 3.863 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.952e-05/0.01057, allocations: 145.2 kB / 0.7952 GB, free: 3.723 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.01057, allocations: 0 / 0.7952 GB, free: 3.723 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001722/0.01074, allocations: 48 kB / 0.7953 GB, free: 3.676 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.0001155/0.01086, allocations: 113.1 kB / 0.7954 GB, free: 3.559 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003604/0.01122, allocations: 422.8 kB / 0.7958 GB, free: 3.086 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01122, allocations: 0 / 0.7958 GB, free: 3.086 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.331e-05/0.01127, allocations: 48.34 kB / 0.7958 GB, free: 3.035 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.01149, allocations: 33.16 kB / 0.7959 GB, free: 3.004 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006084/0.0121, allocations: 247.4 kB / 0.7961 GB, free: 2.73 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.542e-05/0.01215, allocations: 67.91 kB / 0.7962 GB, free: 2.645 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.657e-05/0.01219, allocations: 14.31 kB / 0.7962 GB, free: 2.629 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.01223, allocations: 12.5 kB / 0.7962 GB, free: 2.617 MB / 0.7448 GB Notification: Performance of SimCode: time 1.964e-06/0.01223, allocations: 0 / 0.7962 GB, free: 2.617 MB / 0.7448 GB Notification: Performance of Templates: time 0.006023/0.01825, allocations: 3.308 MB / 0.7994 GB, free: 15.4 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.096449955366552]