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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00207/0.00207, allocations: 191.5 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 225.6 MB / 251 MB, free: 13.01 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 3.029/3.029, allocations: 476.7 MB / 0.7646 GB, free: 9.863 MB / 0.6231 GB " [Timeout remaining time 176] 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.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=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_11_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_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 59.91 kB / 1.11 GB, free: 6.309 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.046/1.048, allocations: 168.8 MB / 1.274 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002561/1.051, allocations: 0.8377 MB / 1.275 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002113/1.053, allocations: 1.3 MB / 1.276 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.096e-05/1.053, allocations: 0 / 1.276 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 6.346e-05/1.053, allocations: 11.86 kB / 1.276 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001253/1.053, allocations: 27.73 kB / 1.276 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001072/1.054, allocations: 315 kB / 1.277 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004617/1.055, allocations: 307.4 kB / 1.277 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/1.055, allocations: 33.61 kB / 1.277 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/1.055, allocations: 111.8 kB / 1.277 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/1.055, allocations: 111.7 kB / 1.277 GB, free: 1.16 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.324e-05/1.055, allocations: 24 kB / 1.277 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/1.056, allocations: 39.98 kB / 1.277 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.787e-05/1.056, allocations: 31.91 kB / 1.277 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001412/1.056, allocations: 99.62 kB / 1.277 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003957/1.056, allocations: 277.5 kB / 1.278 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/1.056, allocations: 0 / 1.278 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.154e-06/1.056, allocations: 0 / 1.278 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.314e-06/1.056, allocations: 0 / 1.278 GB, free: 0.7031 MB / 0.9669 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.0007375/1.057, allocations: 458.8 kB / 1.278 GB, free: 212 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/1.057, allocations: 12.03 kB / 1.278 GB, free: 200 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.548e-05/1.057, allocations: 20.88 kB / 1.278 GB, free: 180 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/1.057, allocations: 129.5 kB / 1.278 GB, free: 28 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/1.057, allocations: 20.12 kB / 1.278 GB, free: 8 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.49e-05/1.057, allocations: 19.98 kB / 1.278 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/1.057, allocations: 92 kB / 1.278 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/1.057, allocations: 0 / 1.278 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.83e-05/1.057, allocations: 4 kB / 1.278 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/1.057, allocations: 4 kB / 1.278 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/1.058, allocations: 39.98 kB / 1.279 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000794/1.058, allocations: 475.5 kB / 1.279 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/1.059, allocations: 62.61 kB / 1.279 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.755e-05/1.059, allocations: 32.84 kB / 1.279 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/1.059, allocations: 3.938 kB / 1.279 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/1.059, allocations: 115.3 kB / 1.279 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 2.024e-06/1.059, allocations: 4 kB / 1.279 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0004078/1.059, allocations: 166.9 kB / 1.279 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/1.059, allocations: 63.33 kB / 1.279 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/1.06, allocations: 166.3 kB / 1.28 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.861e-05/1.06, allocations: 37.7 kB / 1.28 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/1.06, allocations: 112 kB / 1.28 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.36e-05/1.06, allocations: 27.75 kB / 1.28 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/1.06, allocations: 81.66 kB / 1.28 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001991/1.06, allocations: 322.8 kB / 1.28 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/1.06, allocations: 95.95 kB / 1.28 GB, free: 14 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/1.061, allocations: 149.9 kB / 1.28 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/1.061, allocations: 252.8 kB / 1.281 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/1.061, allocations: 0 / 1.281 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007495/1.062, allocations: 412.2 kB / 1.281 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.017e-05/1.062, allocations: 97.28 kB / 1.281 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/1.062, allocations: 8 kB / 1.281 GB, free: 13 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/1.062, allocations: 0 / 1.281 GB, free: 13 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.525e-05/1.062, allocations: 23.92 kB / 1.281 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/1.062, allocations: 0 / 1.281 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000452/1.062, allocations: 83.8 kB / 1.281 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.336e-05/1.062, allocations: 27.98 kB / 1.281 GB, free: 12.87 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.0001454/1.063, allocations: 130.4 kB / 1.281 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.484e-05/1.063, allocations: 15.89 kB / 1.281 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.272e-05/1.063, allocations: 12.77 kB / 1.281 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/1.063, allocations: 4 kB / 1.281 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.063, allocations: 7.875 kB / 1.281 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/1.063, allocations: 0 / 1.281 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002174/1.063, allocations: 192.6 kB / 1.282 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/1.063, allocations: 7.984 kB / 1.282 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.451e-05/1.063, allocations: 11.94 kB / 1.282 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/1.063, allocations: 0 / 1.282 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/1.063, allocations: 0 / 1.282 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/1.063, allocations: 4 kB / 1.282 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/1.063, allocations: 0 / 1.282 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002427/1.063, allocations: 161 kB / 1.282 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.752e-05/1.063, allocations: 15.84 kB / 1.282 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/1.063, allocations: 11.92 kB / 1.282 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.361e-05/1.063, allocations: 0 / 1.282 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/1.063, allocations: 15.98 kB / 1.282 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/1.063, allocations: 4 kB / 1.282 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001213/1.063, allocations: 120.7 kB / 1.282 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/1.063, allocations: 0 / 1.282 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002866/1.064, allocations: 51.94 kB / 1.282 GB, free: 12.05 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.0001873/1.064, allocations: 103.2 kB / 1.282 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005445/1.064, allocations: 348.6 kB / 1.282 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/1.064, allocations: 0 / 1.282 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.289e-05/1.065, allocations: 39.98 kB / 1.282 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/1.065, allocations: 27.97 kB / 1.282 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005364/1.065, allocations: 255.7 kB / 1.283 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/1.066, allocations: 0.7084 MB / 1.283 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.074e-05/1.066, allocations: 12.64 kB / 1.283 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.457e-05/1.066, allocations: 15.44 kB / 1.283 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of SimCode: time 5.41e-07/1.066, allocations: 0 / 1.283 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of Templates: time 0.007285/1.073, allocations: 2.855 MB / 1.286 GB, free: 7.629 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] 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/jenkins/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: 10.01357383094728]