Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002434/0.002434, allocations: 195.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.73/2.73, allocations: 437 MB / 0.7103 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 67.91 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7884/0.7899, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.003497/0.7935, allocations: 0.8403 MB / 1.018 GB, free: 1.668 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002421/0.796, allocations: 1.284 MB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.7961, allocations: 0 / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 6.415e-05/0.7963, allocations: 19.8 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.7964, allocations: 19.8 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.7976, allocations: 312.4 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0004997/0.7981, allocations: 311.4 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.7983, allocations: 57.33 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002683/0.7985, allocations: 107.8 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.7987, allocations: 91.69 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.652e-05/0.7988, allocations: 28 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.799, allocations: 39.98 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.335e-05/0.7991, allocations: 19.92 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.7992, allocations: 111.6 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.7997, allocations: 257.3 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.7997, allocations: 0 / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.824e-06/0.7997, allocations: 0 / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.248e-05/0.7997, allocations: 4 kB / 1.021 GB, free: 15.02 MB / 0.7794 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.0009343/0.8007, allocations: 0.5274 MB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.8007, allocations: 8.031 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.8008, allocations: 24.69 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.801, allocations: 185.8 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.801, allocations: 12.38 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.263e-05/0.8011, allocations: 19.94 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.8013, allocations: 91.36 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.8013, allocations: 0 / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.8013, allocations: 8 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.8013, allocations: 0 / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.8015, allocations: 47.92 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008027/0.8023, allocations: 0.4923 MB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002574/0.8025, allocations: 66.56 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.9e-05/0.8026, allocations: 36.97 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.8026, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002091/0.8029, allocations: 119.1 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.8029, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003903/0.8033, allocations: 169.5 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.8033, allocations: 59.41 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/0.8036, allocations: 163.6 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.769e-05/0.8036, allocations: 37.69 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.8037, allocations: 112 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.8038, allocations: 23.7 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.804, allocations: 77.58 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.8041, allocations: 326.8 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.8044, allocations: 99.94 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.8046, allocations: 147.6 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003305/0.8049, allocations: 247 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.805, allocations: 0 / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007294/0.8057, allocations: 403.4 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.785e-05/0.8058, allocations: 109 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.8058, allocations: 192 / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.8058, allocations: 8 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.994e-05/0.8059, allocations: 8 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.8059, allocations: 4 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005506/0.8065, allocations: 87.73 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.8066, allocations: 23.98 kB / 1.024 GB, free: 11 MB / 0.7794 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.0001458/0.8067, allocations: 140 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.073e-05/0.8068, allocations: 15.75 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.596e-05/0.8068, allocations: 16.83 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.8068, allocations: 4 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.597e-06/0.8068, allocations: 0 / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.8068, allocations: 0 / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/0.8071, allocations: 217.5 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.8071, allocations: 0 / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.405e-05/0.8071, allocations: 12 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.496e-05/0.8072, allocations: 7.938 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.8072, allocations: 0 / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.8072, allocations: 3.938 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8072, allocations: 0 / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.8075, allocations: 160.8 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.657e-05/0.8076, allocations: 92.94 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.58e-05/0.8076, allocations: 8 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.386e-05/0.8076, allocations: 4 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.8077, allocations: 11.98 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.8077, allocations: 4 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.106e-05/0.8078, allocations: 115.2 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.31e-07/0.8078, allocations: 7.875 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003167/0.8081, allocations: 52 kB / 1.025 GB, free: 10.05 MB / 0.7794 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.0002287/0.8084, allocations: 120.9 kB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006023/0.809, allocations: 382.1 kB / 1.026 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.809, allocations: 0 / 1.026 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.657e-05/0.8091, allocations: 55.92 kB / 1.026 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.8094, allocations: 29.38 kB / 1.026 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006659/0.8101, allocations: 239.9 kB / 1.026 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.8105, allocations: 0.7084 MB / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.499e-05/0.8106, allocations: 12.64 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.285e-05/0.8106, allocations: 19.38 kB / 1.027 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.8106, allocations: 0 / 1.027 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of Templates: time 0.007587/0.8182, allocations: 2.801 MB / 1.029 GB, free: 5.645 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches