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.001168/0.001168, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.01125/0.01125, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.521/1.521, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.994/2.994, allocations: 462.6 MB / 0.7364 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004228/0.0004228, allocations: 12.67 kB / 0.9027 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4408/0.4413, allocations: 159.6 MB / 1.059 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001496/0.4428, allocations: 0.5368 MB / 1.059 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002133/0.445, allocations: 1.319 MB / 1.06 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.462e-05/0.4451, allocations: 7.938 kB / 1.06 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.895e-05/0.4451, allocations: 3.938 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.4452, allocations: 15.84 kB / 1.06 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008346/0.4461, allocations: 305.1 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003041/0.4464, allocations: 259.5 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.4466, allocations: 37.34 kB / 1.061 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.4467, allocations: 95.8 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.4468, allocations: 79.69 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.107e-05/0.4469, allocations: 16 kB / 1.061 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.368e-05/0.447, allocations: 27.98 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.134e-05/0.447, allocations: 19.86 kB / 1.061 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.4472, allocations: 117.3 kB / 1.061 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002809/0.4475, allocations: 247.5 kB / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.4475, allocations: 0 / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.569e-06/0.4475, allocations: 0 / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.4475, allocations: 3.938 kB / 1.062 GB, free: 1.895 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.0006279/0.4481, allocations: 488.2 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.4482, allocations: 11.97 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.431e-05/0.4483, allocations: 24.83 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.4484, allocations: 180.6 kB / 1.062 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.4485, allocations: 12.38 kB / 1.062 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.853e-05/0.4486, allocations: 19.94 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.4487, allocations: 94.78 kB / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.4488, allocations: 4 kB / 1.062 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.4488, allocations: 4 kB / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.4488, allocations: 0 / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.4489, allocations: 47.98 kB / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000737/0.4496, allocations: 0.4884 MB / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002491/0.4499, allocations: 74.67 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.306e-05/0.45, allocations: 32.86 kB / 1.063 GB, free: 268 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.034e-05/0.45, allocations: 0 / 1.063 GB, free: 268 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002795/0.4503, allocations: 119.2 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.4503, allocations: 0 / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0004378/0.4507, allocations: 168.7 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.4509, allocations: 59.41 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001826/0.4511, allocations: 167.6 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.4512, allocations: 33.7 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.599e-05/0.4513, allocations: 112 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.4513, allocations: 23.66 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.626e-05/0.4514, allocations: 37.7 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001631/0.4516, allocations: 330.8 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.4518, allocations: 95.94 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.452, allocations: 143.8 kB / 1.064 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.4524, allocations: 248.8 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.4524, allocations: 7.938 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006421/0.4531, allocations: 400 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.85e-05/0.4532, allocations: 101 kB / 1.065 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.4532, allocations: 7.984 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.4532, allocations: 192 / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.093e-05/0.4533, allocations: 20 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.4533, allocations: 3.938 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005888/0.4539, allocations: 119.7 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.135e-05/0.4539, allocations: 19.98 kB / 1.065 GB, free: 13.93 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,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.0001557/0.4541, allocations: 133.8 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.863e-05/0.4541, allocations: 11.84 kB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/0.4542, allocations: 20.83 kB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.4542, allocations: 0 / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.4542, allocations: 0 / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.4542, allocations: 7.938 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.4544, allocations: 213.6 kB / 1.066 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4544, allocations: 3.984 kB / 1.066 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.225e-05/0.4545, allocations: 11.94 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.4545, allocations: 3.938 kB / 1.066 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.4545, allocations: 12 kB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.4545, allocations: 0 / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4545, allocations: 0 / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.4548, allocations: 160.9 kB / 1.066 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.603e-05/0.4548, allocations: 92.86 kB / 1.066 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.4548, allocations: 7.922 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.469e-05/0.4549, allocations: 8 kB / 1.066 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.607e-05/0.4549, allocations: 7.984 kB / 1.066 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.455, allocations: 11.94 kB / 1.066 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.71e-05/0.4551, allocations: 117.4 kB / 1.066 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4551, allocations: 0 / 1.066 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002838/0.4553, allocations: 51.94 kB / 1.066 GB, free: 12.98 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 (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.000255/0.4556, allocations: 114.7 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005452/0.4562, allocations: 382.4 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4562, allocations: 4.062 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.48e-05/0.4563, allocations: 51.92 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.4566, allocations: 27.97 kB / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000526/0.4571, allocations: 276.1 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.4575, allocations: 0.7048 MB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.876e-05/0.4575, allocations: 16.64 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.303e-05/0.4576, allocations: 19.38 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.4576, allocations: 0 / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of Templates: time 0.006128/0.4637, allocations: 2.648 MB / 1.07 GB, free: 8.691 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