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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001036/0.001036, allocations: 98.88 kB / 16.02 MB, free: 76 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.001261/0.001261, allocations: 181.6 kB / 16.92 MB, free: 6.918 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.398/1.398, allocations: 223.3 MB / 241 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.723/2.723, allocations: 437.8 MB / 0.7128 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003953/0.0003955, allocations: 12 kB / 0.8735 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6781/0.6786, allocations: 153.8 MB / 1.024 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001366/0.68, allocations: 0.547 MB / 1.024 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.6819, allocations: 1.312 MB / 1.026 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.539e-05/0.682, allocations: 4 kB / 1.026 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.002e-05/0.682, allocations: 3.938 kB / 1.026 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001004/0.6822, allocations: 15.86 kB / 1.026 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008425/0.683, allocations: 309 kB / 1.026 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002601/0.6833, allocations: 255.5 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.6834, allocations: 53.33 kB / 1.026 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.6836, allocations: 95.73 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.6837, allocations: 79.7 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.641e-05/0.6837, allocations: 16 kB / 1.026 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.929e-05/0.6838, allocations: 27.98 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.566e-05/0.6839, allocations: 15.91 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.684, allocations: 117.3 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.6842, allocations: 177.5 kB / 1.027 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.6842, allocations: 0 / 1.027 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.114e-06/0.6842, allocations: 0 / 1.027 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.6842, allocations: 4 kB / 1.027 GB, free: 12.83 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.0005378/0.6848, allocations: 488.1 kB / 1.027 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.6848, allocations: 8.031 kB / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.185e-05/0.6849, allocations: 24.84 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.685, allocations: 185.3 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.6851, allocations: 8.375 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.6851, allocations: 23.94 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001805/0.6853, allocations: 99.3 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.6853, allocations: 0 / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.6854, allocations: 4 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.6854, allocations: 0 / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001/0.6855, allocations: 47.98 kB / 1.027 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006477/0.6861, allocations: 0.4883 MB / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.6864, allocations: 74.56 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.177e-05/0.6864, allocations: 32.84 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.6864, allocations: 0 / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001692/0.6866, allocations: 123.2 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.6866, allocations: 0 / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003253/0.687, allocations: 174.7 kB / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.687, allocations: 55.41 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.6871, allocations: 169 kB / 1.029 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.6872, allocations: 29.7 kB / 1.029 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.436e-05/0.6873, allocations: 108 kB / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.6873, allocations: 27.7 kB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.407e-05/0.6874, allocations: 33.7 kB / 1.029 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.6875, allocations: 326.8 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.6877, allocations: 91.94 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.6879, allocations: 147.6 kB / 1.029 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.6882, allocations: 256.4 kB / 1.03 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.6882, allocations: 4 kB / 1.03 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006116/0.6889, allocations: 394.4 kB / 1.03 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.818e-05/0.6889, allocations: 101.8 kB / 1.03 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.6889, allocations: 4 kB / 1.03 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.689, allocations: 8.188 kB / 1.03 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.372e-05/0.689, allocations: 19.88 kB / 1.03 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.689, allocations: 0 / 1.03 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005555/0.6896, allocations: 123.7 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.6896, allocations: 19.98 kB / 1.03 GB, free: 8.863 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.0001223/0.6898, allocations: 142.3 kB / 1.03 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.6898, allocations: 15.75 kB / 1.03 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.178e-05/0.6898, allocations: 16.83 kB / 1.03 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.6899, allocations: 0 / 1.03 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.6899, allocations: 0 / 1.03 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.6899, allocations: 0 / 1.03 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.6901, allocations: 221.5 kB / 1.031 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.6901, allocations: 0 / 1.031 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.267e-05/0.6901, allocations: 11.98 kB / 1.031 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.6901, allocations: 3.938 kB / 1.031 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.6901, allocations: 11.98 kB / 1.031 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.6901, allocations: 3.938 kB / 1.031 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.6902, allocations: 0 / 1.031 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.6904, allocations: 165.8 kB / 1.031 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.76e-05/0.6904, allocations: 92.95 kB / 1.031 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.6905, allocations: 3.984 kB / 1.031 GB, free: 8.094 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.263e-05/0.6905, allocations: 4 kB / 1.031 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.6905, allocations: 15.98 kB / 1.031 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.6906, allocations: 4 kB / 1.031 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.17e-05/0.6907, allocations: 118.8 kB / 1.031 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6907, allocations: 0 / 1.031 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002683/0.6909, allocations: 51.91 kB / 1.031 GB, free: 7.906 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.0001591/0.6911, allocations: 111.2 kB / 1.031 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004804/0.6916, allocations: 382.3 kB / 1.031 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.6916, allocations: 4.062 kB / 1.032 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.54e-05/0.6917, allocations: 51.23 kB / 1.032 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.692, allocations: 27.97 kB / 1.032 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005022/0.6925, allocations: 309.7 kB / 1.032 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.6928, allocations: 0.7087 MB / 1.033 GB, free: 6.234 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.811e-05/0.6929, allocations: 19.44 kB / 1.033 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of SimCode: time 4.91e-07/0.6929, allocations: 0 / 1.033 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of Templates: time 0.004216/0.6971, allocations: 2.245 MB / 1.035 GB, free: 3.988 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/jenkins1/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