Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001022/0.001022, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.835/2.835, allocations: 462.6 MB / 0.736 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.000391, allocations: 10.34 kB / 0.9021 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3851, allocations: 159.6 MB / 1.058 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001119/0.3863, allocations: 0.5136 MB / 1.059 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00186/0.3882, allocations: 1.276 MB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.136e-05/0.3883, allocations: 4 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.482e-05/0.3883, allocations: 3.938 kB / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.031e-05/0.3884, allocations: 19.84 kB / 1.06 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008753/0.3893, allocations: 287.2 kB / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002943/0.3896, allocations: 231.5 kB / 1.06 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.3898, allocations: 33.62 kB / 1.06 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.3899, allocations: 95.78 kB / 1.06 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.3901, allocations: 75.72 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.969e-05/0.3901, allocations: 12 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.3902, allocations: 31.97 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.237e-05/0.3903, allocations: 19.92 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.639e-05/0.3904, allocations: 49.64 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002244/0.3906, allocations: 187.8 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3906, allocations: 4 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.923e-06/0.3906, allocations: 0 / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.236e-06/0.3906, allocations: 0 / 1.061 GB, free: 2.41 MB / 0.8106 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.0006067/0.3912, allocations: 488 kB / 1.061 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.3913, allocations: 8.031 kB / 1.061 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.3914, allocations: 19.89 kB / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.3916, allocations: 184.5 kB / 1.061 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.356e-05/0.3916, allocations: 15.95 kB / 1.061 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.413e-05/0.3917, allocations: 20 kB / 1.061 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002108/0.3919, allocations: 91.02 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.996e-06/0.3919, allocations: 0 / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.3919, allocations: 4 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.392, allocations: 4 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.3921, allocations: 51.81 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007474/0.3928, allocations: 0.4964 MB / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.3931, allocations: 74.55 kB / 1.062 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.781e-05/0.3931, allocations: 24.98 kB / 1.062 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.3932, allocations: 4 kB / 1.062 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.3934, allocations: 113.5 kB / 1.062 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.973e-06/0.3934, allocations: 4 kB / 1.062 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003566/0.3938, allocations: 169.6 kB / 1.062 GB, free: 488 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.3938, allocations: 51.41 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.394, allocations: 164.1 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/0.394, allocations: 41.64 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.232e-05/0.3941, allocations: 104 kB / 1.063 GB, free: 96 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.3941, allocations: 31.64 kB / 1.063 GB, free: 64 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.862e-05/0.3942, allocations: 8 kB / 1.063 GB, free: 56 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3943, allocations: 330.8 kB / 1.063 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.3945, allocations: 95.94 kB / 1.063 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.3947, allocations: 149.8 kB / 1.063 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/0.395, allocations: 175 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.395, allocations: 0 / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006486/0.3956, allocations: 398.4 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.098e-05/0.3957, allocations: 105 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.3957, allocations: 0 / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.186e-05/0.3958, allocations: 4 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.792e-05/0.3958, allocations: 15.92 kB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.3959, allocations: 8.188 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005361/0.3964, allocations: 117.9 kB / 1.064 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.611e-05/0.3965, allocations: 19.98 kB / 1.064 GB, free: 14.58 MB / 0.8262 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,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.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 initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001361/0.3966, allocations: 141.7 kB / 1.064 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.3966, allocations: 15.81 kB / 1.064 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.596e-05/0.3967, allocations: 12.84 kB / 1.064 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3967, allocations: 4 kB / 1.064 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.3967, allocations: 0 / 1.064 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3967, allocations: 0 / 1.064 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.3969, allocations: 217.5 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3969, allocations: 4 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.727e-05/0.397, allocations: 12 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.397, allocations: 0 / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.397, allocations: 3.984 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.397, allocations: 4 kB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.397, allocations: 0 / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002217/0.3972, allocations: 164.9 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.66e-05/0.3973, allocations: 88.92 kB / 1.065 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.3973, allocations: 8 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.129e-05/0.3974, allocations: 0 / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.525e-05/0.3974, allocations: 11.98 kB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.3974, allocations: 7.984 kB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.635e-05/0.3975, allocations: 116.8 kB / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3975, allocations: 0 / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002853/0.3978, allocations: 55.92 kB / 1.065 GB, free: 13.63 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001708/0.398, allocations: 102.2 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004868/0.3985, allocations: 389.5 kB / 1.066 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3985, allocations: 384 / 1.066 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.072e-05/0.3986, allocations: 59.84 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.3989, allocations: 31.88 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000502/0.3994, allocations: 268.1 kB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.3997, allocations: 0.7087 MB / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.923e-05/0.3998, allocations: 12.64 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.247e-05/0.3998, allocations: 19.44 kB / 1.067 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/0.3998, allocations: 0 / 1.067 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of Templates: time 0.006005/0.4058, allocations: 2.541 MB / 1.069 GB, free: 9.461 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches