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.001469/0.001469, allocations: 83.59 kB / 20.45 MB, free: 4.121 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.001549/0.001549, allocations: 165 kB / 23.82 MB, free: 0.75 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.953/0.953, allocations: 177.1 MB / 204.2 MB, free: 5.602 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.839/1.839, allocations: 359 MB / 0.6052 GB, free: 10.95 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.773e-06/1.773e-06, allocations: 0 / 0.7871 GB, free: 12.42 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.018e-05/2.195e-05, allocations: 4.469 kB / 0.7871 GB, free: 12.41 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001413/0.001435, allocations: 0.8331 MB / 0.7879 GB, free: 11.6 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001456/0.00289, allocations: 1.34 MB / 0.7892 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.72e-05/0.002948, allocations: 0 / 0.7892 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.793e-05/0.002986, allocations: 7.875 kB / 0.7892 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.203e-05/0.003068, allocations: 28.84 kB / 0.7893 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006124/0.00368, allocations: 309.6 kB / 0.7896 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002673/0.003947, allocations: 295.4 kB / 0.7899 GB, free: 9.621 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.004062, allocations: 33.56 kB / 0.7899 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.004218, allocations: 160.9 kB / 0.79 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.004358, allocations: 91.72 kB / 0.7901 GB, free: 9.34 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.734e-05/0.004396, allocations: 29.5 kB / 0.7902 GB, free: 9.312 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.043e-05/0.004466, allocations: 36 kB / 0.7902 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.803e-05/0.004494, allocations: 27.91 kB / 0.7902 GB, free: 9.25 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 7.876e-05/0.004573, allocations: 83.86 kB / 0.7903 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002217/0.004794, allocations: 227.4 kB / 0.7905 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.004797, allocations: 0.5 kB / 0.7905 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.62e-07/0.004798, allocations: 1.562 kB / 0.7905 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.004802, allocations: 0 / 0.7905 GB, free: 8.945 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.0005948/0.005397, allocations: 0.548 MB / 0.791 GB, free: 8.344 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.005431, allocations: 8.031 kB / 0.7911 GB, free: 8.336 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.829e-05/0.0055, allocations: 29.75 kB / 0.7911 GB, free: 8.309 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.936e-05/0.005589, allocations: 133 kB / 0.7912 GB, free: 8.152 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.005615, allocations: 13 kB / 0.7912 GB, free: 8.141 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.112e-05/0.005646, allocations: 20.38 kB / 0.7912 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.005784, allocations: 95.59 kB / 0.7913 GB, free: 8.02 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.005794, allocations: 3.938 kB / 0.7913 GB, free: 8.016 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.005807, allocations: 4 kB / 0.7913 GB, free: 8.012 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.005814, allocations: 0 / 0.7913 GB, free: 8.012 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.297e-05/0.005877, allocations: 34 kB / 0.7914 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005089/0.006386, allocations: 435.3 kB / 0.7918 GB, free: 7.52 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.006552, allocations: 59.03 kB / 0.7918 GB, free: 7.449 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.132e-05/0.006583, allocations: 19.81 kB / 0.7919 GB, free: 7.426 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 8.677e-06/0.006592, allocations: 6.188 kB / 0.7919 GB, free: 7.422 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001183/0.00671, allocations: 108.9 kB / 0.792 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=14): time 1.883e-06/0.006712, allocations: 3.984 kB / 0.792 GB, free: 7.297 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14): time 0.0002438/0.006956, allocations: 160.5 kB / 0.7921 GB, free: 7.137 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.919e-05/0.006985, allocations: 55.41 kB / 0.7922 GB, free: 7.07 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.007092, allocations: 212.2 kB / 0.7924 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.007118, allocations: 33.7 kB / 0.7924 GB, free: 6.809 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.015e-05/0.007188, allocations: 163.7 kB / 0.7926 GB, free: 6.645 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/0.007208, allocations: 29.45 kB / 0.7926 GB, free: 6.617 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.205e-05/0.0073, allocations: 79.33 kB / 0.7927 GB, free: 6.531 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.007409, allocations: 0.4923 MB / 0.7932 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.007563, allocations: 173 kB / 0.7933 GB, free: 5.84 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.00773, allocations: 240.6 kB / 0.7936 GB, free: 5.559 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001842/0.007914, allocations: 248 kB / 0.7938 GB, free: 5.273 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.007917, allocations: 0 / 0.7938 GB, free: 5.273 MB / 0.7448 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006811/0.008598, allocations: 480.8 kB / 0.7942 GB, free: 4.762 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.911e-05/0.008647, allocations: 102.8 kB / 0.7943 GB, free: 4.645 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.008653, allocations: 3.984 kB / 0.7944 GB, free: 4.641 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.008669, allocations: 4 kB / 0.7944 GB, free: 4.637 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.999e-05/0.008709, allocations: 15.94 kB / 0.7944 GB, free: 4.621 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.008715, allocations: 4 kB / 0.7944 GB, free: 4.617 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.00891, allocations: 66.27 kB / 0.7944 GB, free: 4.555 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.008936, allocations: 19.98 kB / 0.7945 GB, free: 4.535 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 9.5e-05/0.009031, allocations: 177.6 kB / 0.7946 GB, free: 4.352 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.009049, allocations: 19.94 kB / 0.7946 GB, free: 4.332 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.836e-05/0.009078, allocations: 19.91 kB / 0.7947 GB, free: 4.32 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.00908, allocations: 3.938 kB / 0.7947 GB, free: 4.316 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.009084, allocations: 0 / 0.7947 GB, free: 4.316 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.009089, allocations: 4 kB / 0.7947 GB, free: 4.312 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.009191, allocations: 160.5 kB / 0.7948 GB, free: 4.121 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.009192, allocations: 0 / 0.7948 GB, free: 4.121 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.225e-05/0.009214, allocations: 8 kB / 0.7948 GB, free: 4.113 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.009215, allocations: 0 / 0.7948 GB, free: 4.113 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.009224, allocations: 4 kB / 0.7948 GB, free: 4.109 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.009228, allocations: 12.42 kB / 0.7948 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.009229, allocations: 1.938 kB / 0.7948 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.009371, allocations: 164.3 kB / 0.795 GB, free: 3.914 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.037e-05/0.009381, allocations: 11.91 kB / 0.795 GB, free: 3.902 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/0.009393, allocations: 0 / 0.795 GB, free: 3.902 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.712e-05/0.00941, allocations: 11.94 kB / 0.795 GB, free: 3.891 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.009444, allocations: 11.97 kB / 0.795 GB, free: 3.879 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.009451, allocations: 10.47 kB / 0.7951 GB, free: 3.871 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.78e-05/0.009499, allocations: 141.2 kB / 0.7952 GB, free: 3.734 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.009499, allocations: 0 / 0.7952 GB, free: 3.734 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001855/0.009685, allocations: 59.92 kB / 0.7952 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.0001008/0.009786, allocations: 100.1 kB / 0.7953 GB, free: 3.566 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003321/0.01012, allocations: 423.6 kB / 0.7957 GB, free: 3.094 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.01012, allocations: 0 / 0.7957 GB, free: 3.094 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.936e-05/0.01017, allocations: 44.95 kB / 0.7958 GB, free: 3.047 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.01035, allocations: 37.03 kB / 0.7958 GB, free: 3.012 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003353/0.01068, allocations: 253.6 kB / 0.7961 GB, free: 2.734 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.463e-05/0.01072, allocations: 67.34 kB / 0.7961 GB, free: 2.648 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.979e-05/0.01075, allocations: 12.97 kB / 0.7961 GB, free: 2.633 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.519e-05/0.01077, allocations: 12.5 kB / 0.7961 GB, free: 2.621 MB / 0.7448 GB Notification: Performance of SimCode: time 5.71e-07/0.01077, allocations: 0 / 0.7961 GB, free: 2.621 MB / 0.7448 GB Notification: Performance of Templates: time 0.004343/0.01512, allocations: 3.04 MB / 0.7991 GB, free: 15.67 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.237804241012782]