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.001049/0.001049, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001457/0.001457, allocations: 173 kB / 24.28 MB, free: 276 kB / 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.9566/0.9566, allocations: 177.1 MB / 204.6 MB, free: 5.629 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.859/1.859, allocations: 359 MB / 0.6055 GB, free: 11 MB / 0.573 GB " [Timeout remaining time 177] 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 3.065e-06/3.065e-06, allocations: 0 / 0.7871 GB, free: 12.77 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.961e-05/3.267e-05, allocations: 2.906 kB / 0.7871 GB, free: 12.77 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002565/0.002598, allocations: 0.8306 MB / 0.7879 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001348/0.003946, allocations: 1.331 MB / 0.7892 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.391e-05/0.004, allocations: 0 / 0.7892 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.727e-05/0.004037, allocations: 12.8 kB / 0.7892 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.118e-05/0.004118, allocations: 23.75 kB / 0.7893 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005838/0.004702, allocations: 313.6 kB / 0.7896 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002537/0.004956, allocations: 297.3 kB / 0.7898 GB, free: 9.98 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.005074, allocations: 33.55 kB / 0.7899 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.005276, allocations: 155.8 kB / 0.79 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.005455, allocations: 95.7 kB / 0.7901 GB, free: 9.699 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5e-05/0.005505, allocations: 24 kB / 0.7901 GB, free: 9.676 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.721e-05/0.005582, allocations: 36.56 kB / 0.7902 GB, free: 9.641 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.02e-05/0.005612, allocations: 29.34 kB / 0.7902 GB, free: 9.613 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 8.837e-05/0.0057, allocations: 83.8 kB / 0.7903 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002318/0.005932, allocations: 231.4 kB / 0.7905 GB, free: 9.305 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.005936, allocations: 0 / 0.7905 GB, free: 9.305 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.292e-06/0.005937, allocations: 1.156 kB / 0.7905 GB, free: 9.305 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.005942, allocations: 0 / 0.7905 GB, free: 9.305 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.000532/0.006474, allocations: 0.5441 MB / 0.791 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.006522, allocations: 9.406 kB / 0.791 GB, free: 8.699 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.129e-05/0.006613, allocations: 32.78 kB / 0.7911 GB, free: 8.668 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.006734, allocations: 129 kB / 0.7912 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.006763, allocations: 16.38 kB / 0.7912 GB, free: 8.5 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/0.006793, allocations: 18.12 kB / 0.7912 GB, free: 8.484 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001383/0.006931, allocations: 98.22 kB / 0.7913 GB, free: 8.379 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.00694, allocations: 0 / 0.7913 GB, free: 8.379 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.006952, allocations: 4 kB / 0.7913 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.006962, allocations: 1.094 kB / 0.7913 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.457e-05/0.007027, allocations: 27.98 kB / 0.7914 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006167/0.007643, allocations: 443.8 kB / 0.7918 GB, free: 7.879 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.007861, allocations: 56.98 kB / 0.7918 GB, free: 7.812 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.974e-05/0.007901, allocations: 23.8 kB / 0.7919 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 9.518e-06/0.007911, allocations: 4 kB / 0.7919 GB, free: 7.781 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/0.008063, allocations: 112.9 kB / 0.792 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=14): time 2.434e-06/0.008065, allocations: 0 / 0.792 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14): time 0.000264/0.008329, allocations: 154.1 kB / 0.7921 GB, free: 7.504 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.008365, allocations: 55.34 kB / 0.7922 GB, free: 7.438 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.008474, allocations: 211.5 kB / 0.7924 GB, free: 7.215 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.008502, allocations: 37.69 kB / 0.7924 GB, free: 7.172 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.698e-05/0.008579, allocations: 159.2 kB / 0.7926 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.008602, allocations: 27.8 kB / 0.7926 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.629e-05/0.008688, allocations: 79.33 kB / 0.7927 GB, free: 6.898 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.0088, allocations: 0.493 MB / 0.7931 GB, free: 6.395 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.008962, allocations: 173 kB / 0.7933 GB, free: 6.207 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.009143, allocations: 245.4 kB / 0.7935 GB, free: 5.922 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.009337, allocations: 247.1 kB / 0.7938 GB, free: 5.637 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.009339, allocations: 0.5312 kB / 0.7938 GB, free: 5.637 MB / 0.7448 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000458/0.009797, allocations: 481.1 kB / 0.7942 GB, free: 5.125 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.448e-05/0.009861, allocations: 107.2 kB / 0.7943 GB, free: 5.004 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.009868, allocations: 0.8438 kB / 0.7943 GB, free: 5.004 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.009884, allocations: 4 kB / 0.7943 GB, free: 5 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.464e-05/0.009939, allocations: 17.2 kB / 0.7944 GB, free: 4.984 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/0.009948, allocations: 4 kB / 0.7944 GB, free: 4.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.01016, allocations: 61.86 kB / 0.7944 GB, free: 4.922 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.01019, allocations: 23.98 kB / 0.7944 GB, free: 4.898 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.0001199/0.01031, allocations: 181.8 kB / 0.7946 GB, free: 4.711 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.814e-05/0.01033, allocations: 11.95 kB / 0.7946 GB, free: 4.699 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.001e-05/0.01036, allocations: 20.7 kB / 0.7946 GB, free: 4.684 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.01036, allocations: 1.531 kB / 0.7947 GB, free: 4.684 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.01037, allocations: 0 / 0.7947 GB, free: 4.684 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.01037, allocations: 0 / 0.7947 GB, free: 4.684 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.01052, allocations: 160.5 kB / 0.7948 GB, free: 4.492 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.01052, allocations: 0 / 0.7948 GB, free: 4.492 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.981e-05/0.01055, allocations: 10.81 kB / 0.7948 GB, free: 4.484 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.01056, allocations: 0 / 0.7948 GB, free: 4.484 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.01057, allocations: 12 kB / 0.7948 GB, free: 4.473 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.01057, allocations: 7.875 kB / 0.7948 GB, free: 4.465 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01057, allocations: 0 / 0.7948 GB, free: 4.465 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001829/0.01076, allocations: 164.3 kB / 0.795 GB, free: 4.281 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.4e-05/0.01077, allocations: 15.89 kB / 0.795 GB, free: 4.266 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.01079, allocations: 4.5 kB / 0.795 GB, free: 4.262 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.323e-05/0.01081, allocations: 7.938 kB / 0.795 GB, free: 4.254 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.01085, allocations: 13.77 kB / 0.795 GB, free: 4.242 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.01086, allocations: 7.984 kB / 0.795 GB, free: 4.234 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.946e-05/0.01092, allocations: 141.2 kB / 0.7952 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8e-08/0.01092, allocations: 0 / 0.7952 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001866/0.01111, allocations: 53.28 kB / 0.7952 GB, free: 4.047 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.0001652/0.01127, allocations: 113.2 kB / 0.7953 GB, free: 3.926 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003551/0.01163, allocations: 427.9 kB / 0.7957 GB, free: 3.449 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01163, allocations: 0.6562 kB / 0.7957 GB, free: 3.449 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.258e-05/0.01168, allocations: 42.52 kB / 0.7958 GB, free: 3.406 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.0119, allocations: 38.8 kB / 0.7958 GB, free: 3.371 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003838/0.01228, allocations: 246.8 kB / 0.7961 GB, free: 3.098 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.731e-05/0.01232, allocations: 67.34 kB / 0.7961 GB, free: 3.012 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.409e-05/0.01235, allocations: 8.969 kB / 0.7961 GB, free: 3 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.692e-05/0.01238, allocations: 18.56 kB / 0.7961 GB, free: 2.984 MB / 0.7448 GB Notification: Performance of SimCode: time 1.092e-06/0.01238, allocations: 0 / 0.7961 GB, free: 2.984 MB / 0.7448 GB Notification: Performance of Templates: time 0.004729/0.01711, allocations: 3.03 MB / 0.7991 GB, free: 36 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=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.199689124012366]