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.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.0008299/0.0008299, allocations: 79.69 kB / 20.02 MB, free: 4.488 MB / 18.57 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.0008447/0.0008447, allocations: 166 kB / 23.32 MB, free: 1.188 MB / 18.57 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 0.8993/0.8993, allocations: 177.1 MB / 203.6 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.752/1.752, allocations: 388.6 MB / 0.6335 GB, free: 13.11 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 1 GB, free: 13.62 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.258e-05, allocations: 2.281 kB / 1 GB, free: 13.61 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001346/0.001369, allocations: 0.7996 MB / 1.001 GB, free: 12.82 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.002584, allocations: 1.311 MB / 1.002 GB, free: 11.49 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.622e-05/0.00264, allocations: 4 kB / 1.002 GB, free: 11.49 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.298e-05/0.002673, allocations: 11.81 kB / 1.002 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.775e-05/0.002751, allocations: 31.78 kB / 1.003 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006117/0.003363, allocations: 333.8 kB / 1.003 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.003594, allocations: 287.5 kB / 1.003 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.003697, allocations: 29.61 kB / 1.003 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.003838, allocations: 163.8 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.003961, allocations: 91.78 kB / 1.003 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.698e-05/0.003998, allocations: 28 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.978e-05/0.004067, allocations: 39.92 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.149e-05/0.004099, allocations: 23.86 kB / 1.003 GB, free: 10.47 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 8.742e-05/0.004186, allocations: 95.84 kB / 1.004 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.004449, allocations: 303.3 kB / 1.004 GB, free: 10.08 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.004451, allocations: 0 / 1.004 GB, free: 10.08 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.134e-06/0.004454, allocations: 0 / 1.004 GB, free: 10.08 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.087e-06/0.004458, allocations: 0 / 1.004 GB, free: 10.08 MB / 0.9636 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.0005218/0.004979, allocations: 466.7 kB / 1.004 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.005015, allocations: 12.75 kB / 1.004 GB, free: 9.566 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.396e-05/0.005079, allocations: 20.84 kB / 1.004 GB, free: 9.547 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.719e-05/0.005166, allocations: 128.2 kB / 1.004 GB, free: 9.398 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.00519, allocations: 16.36 kB / 1.004 GB, free: 9.383 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.925e-05/0.005219, allocations: 20.38 kB / 1.004 GB, free: 9.363 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001351/0.005354, allocations: 87.48 kB / 1.005 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.005363, allocations: 0 / 1.005 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.005377, allocations: 8 kB / 1.005 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.748e-06/0.005382, allocations: 0 / 1.005 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.513e-05/0.005457, allocations: 47.97 kB / 1.005 GB, free: 9.219 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004507/0.005908, allocations: 388 kB / 1.005 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.00609, allocations: 74.55 kB / 1.005 GB, free: 8.727 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.92e-05/0.00613, allocations: 28.91 kB / 1.005 GB, free: 8.695 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.00614, allocations: 0 / 1.005 GB, free: 8.695 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001299/0.00627, allocations: 103.3 kB / 1.005 GB, free: 8.582 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.006271, allocations: 0 / 1.005 GB, free: 8.582 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14): time 0.0002645/0.006536, allocations: 181.6 kB / 1.005 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.006572, allocations: 59.39 kB / 1.005 GB, free: 8.328 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.901e-05/0.006661, allocations: 148.6 kB / 1.006 GB, free: 8.176 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.006687, allocations: 37.7 kB / 1.006 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.006744, allocations: 112.5 kB / 1.006 GB, free: 8.02 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.228e-05/0.006766, allocations: 39.7 kB / 1.006 GB, free: 7.98 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.007e-05/0.006847, allocations: 73.67 kB / 1.006 GB, free: 7.902 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.329e-05/0.00692, allocations: 326.8 kB / 1.006 GB, free: 7.574 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.007105, allocations: 189 kB / 1.006 GB, free: 7.371 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.007292, allocations: 240.9 kB / 1.007 GB, free: 7.098 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.007494, allocations: 256.6 kB / 1.007 GB, free: 6.809 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.007497, allocations: 4 kB / 1.007 GB, free: 6.805 MB / 0.9636 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004722/0.007969, allocations: 487.5 kB / 1.007 GB, free: 6.285 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.92e-05/0.008028, allocations: 107.2 kB / 1.007 GB, free: 6.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.008034, allocations: 0 / 1.007 GB, free: 6.164 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.008046, allocations: 4 kB / 1.007 GB, free: 6.16 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.278e-05/0.008089, allocations: 15.92 kB / 1.007 GB, free: 6.145 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.008095, allocations: 4.188 kB / 1.007 GB, free: 6.141 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.00834, allocations: 87.8 kB / 1.007 GB, free: 6.055 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.008365, allocations: 15.98 kB / 1.007 GB, free: 6.039 MB / 0.9636 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 8.721e-05/0.008452, allocations: 133.8 kB / 1.008 GB, free: 5.898 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.008465, allocations: 11.94 kB / 1.008 GB, free: 5.887 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.63e-05/0.008491, allocations: 24.72 kB / 1.008 GB, free: 5.863 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.008493, allocations: 0 / 1.008 GB, free: 5.863 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.008497, allocations: 0 / 1.008 GB, free: 5.863 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.008502, allocations: 4 kB / 1.008 GB, free: 5.859 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.008603, allocations: 149.2 kB / 1.008 GB, free: 5.684 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.008604, allocations: 3.938 kB / 1.008 GB, free: 5.68 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.223e-05/0.008626, allocations: 8 kB / 1.008 GB, free: 5.672 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.008629, allocations: 4 kB / 1.008 GB, free: 5.668 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.008637, allocations: 3.984 kB / 1.008 GB, free: 5.664 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.008638, allocations: 3.938 kB / 1.008 GB, free: 5.66 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.008639, allocations: 4 kB / 1.008 GB, free: 5.656 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001495/0.008789, allocations: 165 kB / 1.008 GB, free: 5.477 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.108e-05/0.0088, allocations: 15.84 kB / 1.008 GB, free: 5.461 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.008811, allocations: 0 / 1.008 GB, free: 5.461 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.834e-05/0.008829, allocations: 3.938 kB / 1.008 GB, free: 5.457 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.628e-05/0.008866, allocations: 15.98 kB / 1.008 GB, free: 5.441 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.008873, allocations: 7.984 kB / 1.008 GB, free: 5.434 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.579e-05/0.008919, allocations: 103.3 kB / 1.008 GB, free: 5.332 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.008919, allocations: 0 / 1.008 GB, free: 5.332 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001828/0.009101, allocations: 48 kB / 1.008 GB, free: 5.285 MB / 0.9636 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.0001029/0.009204, allocations: 110.7 kB / 1.008 GB, free: 5.168 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003532/0.009558, allocations: 439.1 kB / 1.009 GB, free: 4.684 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.009559, allocations: 0 / 1.009 GB, free: 4.684 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.297e-05/0.009612, allocations: 47.91 kB / 1.009 GB, free: 4.637 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001844/0.009796, allocations: 32.3 kB / 1.009 GB, free: 4.605 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003466/0.01014, allocations: 242.1 kB / 1.009 GB, free: 4.344 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.234e-05/0.0102, allocations: 90.28 kB / 1.009 GB, free: 4.238 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.185e-05/0.01023, allocations: 12.97 kB / 1.009 GB, free: 4.227 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.415e-05/0.01025, allocations: 16.5 kB / 1.009 GB, free: 4.211 MB / 0.9636 GB Notification: Performance of SimCode: time 3.3e-07/0.01025, allocations: 0 / 1.009 GB, free: 4.211 MB / 0.9636 GB Notification: Performance of Templates: time 0.004105/0.01436, allocations: 3.023 MB / 1.012 GB, free: 1.262 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (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=800 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.26012168917805]