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.001348/0.001348, allocations: 103.6 kB / 18.95 MB, free: 2.688 MB / 14.72 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.001469/0.001469, allocations: 216.8 kB / 22.24 MB, free: 5.242 MB / 14.72 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 1.495/1.495, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.809/2.809, allocations: 476 MB / 0.7699 GB, free: 4.77 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 70.67 kB / 1.117 GB, free: 41.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3724, allocations: 170 MB / 1.283 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002511/0.3749, allocations: 0.8051 MB / 1.283 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002046/0.3769, allocations: 1.301 MB / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.264e-05/0.377, allocations: 0 / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.438e-05/0.3771, allocations: 11.86 kB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.3772, allocations: 27.73 kB / 1.285 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008906/0.3781, allocations: 319.7 kB / 1.285 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003809/0.3784, allocations: 291.5 kB / 1.285 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.3786, allocations: 37.06 kB / 1.285 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.3787, allocations: 119.8 kB / 1.285 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.3789, allocations: 91.67 kB / 1.285 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.771e-05/0.379, allocations: 27.94 kB / 1.286 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.839e-05/0.3791, allocations: 39.98 kB / 1.286 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.529e-05/0.3791, allocations: 27.86 kB / 1.286 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.3792, allocations: 91.73 kB / 1.286 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003482/0.3796, allocations: 268.8 kB / 1.286 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3796, allocations: 0 / 1.286 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.294e-06/0.3796, allocations: 0 / 1.286 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.3796, allocations: 0 / 1.286 GB, free: 9.02 MB / 0.9825 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.0007361/0.3803, allocations: 462.8 kB / 1.286 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.3804, allocations: 12.03 kB / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.735e-05/0.3804, allocations: 46.73 kB / 1.286 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.341e-05/0.3805, allocations: 20.84 kB / 1.286 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.3806, allocations: 119 kB / 1.287 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.3807, allocations: 15.94 kB / 1.287 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/0.3807, allocations: 23.98 kB / 1.287 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.3809, allocations: 91.66 kB / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.3809, allocations: 0 / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.3809, allocations: 4 kB / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.381, allocations: 4 kB / 1.287 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.3811, allocations: 47.92 kB / 1.287 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000731/0.3818, allocations: 411.5 kB / 1.287 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002358/0.382, allocations: 62.62 kB / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.972e-05/0.3821, allocations: 28.91 kB / 1.287 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.3821, allocations: 3.938 kB / 1.287 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002825/0.3824, allocations: 129.6 kB / 1.287 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.3824, allocations: 0 / 1.287 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003879/0.3828, allocations: 165.6 kB / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.3829, allocations: 67.34 kB / 1.288 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.383, allocations: 165 kB / 1.288 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.214e-05/0.3831, allocations: 29.7 kB / 1.288 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.3832, allocations: 112.1 kB / 1.288 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.3832, allocations: 31.78 kB / 1.288 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.3833, allocations: 73.67 kB / 1.288 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.3835, allocations: 330.8 kB / 1.288 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.3838, allocations: 185 kB / 1.288 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.3841, allocations: 233.9 kB / 1.289 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003355/0.3844, allocations: 261.4 kB / 1.289 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3844, allocations: 0 / 1.289 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008162/0.3852, allocations: 499.5 kB / 1.289 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.258e-05/0.3853, allocations: 97.09 kB / 1.289 GB, free: 5.012 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3853, allocations: 4 kB / 1.289 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3853, allocations: 0 / 1.289 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.548e-05/0.3854, allocations: 23.86 kB / 1.29 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.3854, allocations: 3.938 kB / 1.29 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004592/0.3859, allocations: 87.98 kB / 1.29 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.224e-05/0.3859, allocations: 19.98 kB / 1.29 GB, free: 4.875 MB / 0.9825 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.0001619/0.3861, allocations: 129.8 kB / 1.29 GB, free: 4.738 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.832e-05/0.3861, allocations: 19.84 kB / 1.29 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.954e-05/0.3861, allocations: 16.77 kB / 1.29 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3861, allocations: 0 / 1.29 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3861, allocations: 0 / 1.29 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3861, allocations: 4 kB / 1.29 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.3863, allocations: 184.6 kB / 1.29 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3863, allocations: 7.875 kB / 1.29 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.514e-05/0.3864, allocations: 11.98 kB / 1.29 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3864, allocations: 0 / 1.29 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.3864, allocations: 4 kB / 1.29 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3864, allocations: 0 / 1.29 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3864, allocations: 0 / 1.29 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.3867, allocations: 170.4 kB / 1.29 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.3867, allocations: 15.84 kB / 1.29 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.3867, allocations: 7.969 kB / 1.29 GB, free: 4.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.296e-05/0.3867, allocations: 8 kB / 1.29 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.047e-05/0.3868, allocations: 11.92 kB / 1.29 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.3868, allocations: 8 kB / 1.29 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.726e-05/0.3869, allocations: 118.8 kB / 1.29 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3869, allocations: 0 / 1.29 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002697/0.3872, allocations: 48 kB / 1.29 GB, free: 4.059 MB / 0.9825 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.0007224/0.3879, allocations: 0.7113 MB / 1.291 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006006/0.3885, allocations: 439.3 kB / 1.291 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3885, allocations: 0 / 1.291 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.645e-05/0.3886, allocations: 43.92 kB / 1.292 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.3889, allocations: 32.17 kB / 1.292 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003613/0.3925, allocations: 2.618 MB / 1.294 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.957e-05/0.3926, allocations: 98.83 kB / 1.294 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.08e-05/0.3926, allocations: 16.59 kB / 1.294 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.524e-05/0.3927, allocations: 35.44 kB / 1.294 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of SimCode: time 1.122e-06/0.3927, allocations: 0 / 1.294 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03502/0.4277, allocations: 5.109 MB / 1.299 GB, free: 10.85 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.82, allocations: 6.578 kB / 1.299 GB, free: 10.85 MB / 0.9981 GB " [Timeout remaining time 287] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.53870008327067]