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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 110 kB / 18.94 MB, free: 2.949 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.001709/0.001709, allocations: 188.4 kB / 22.23 MB, free: 5.137 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.425/1.425, 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 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.102/3.102, allocations: 0.4893 GB / 0.7884 GB, free: 33.16 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-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=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 0.002023/0.002023, allocations: 66.98 kB / 1.145 GB, free: 30.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.388, allocations: 174.9 MB / 1.316 GB, free: 9.695 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002307/0.3903, allocations: 0.8319 MB / 1.317 GB, free: 8.867 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001936/0.3922, allocations: 1.299 MB / 1.318 GB, free: 7.555 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.3923, allocations: 4 kB / 1.318 GB, free: 7.551 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.845e-05/0.3924, allocations: 11.81 kB / 1.318 GB, free: 7.539 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.3925, allocations: 19.78 kB / 1.318 GB, free: 7.52 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.3941, allocations: 325.3 kB / 1.318 GB, free: 7.211 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0006568/0.3947, allocations: 287.5 kB / 1.319 GB, free: 6.93 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.3949, allocations: 37.55 kB / 1.319 GB, free: 6.887 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.3951, allocations: 119.8 kB / 1.319 GB, free: 6.77 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002297/0.3953, allocations: 107.7 kB / 1.319 GB, free: 6.664 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 6.678e-05/0.3954, allocations: 24 kB / 1.319 GB, free: 6.641 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.3955, allocations: 39.98 kB / 1.319 GB, free: 6.602 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.926e-05/0.3956, allocations: 23.92 kB / 1.319 GB, free: 6.578 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.3957, allocations: 107.6 kB / 1.319 GB, free: 6.473 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004464/0.3962, allocations: 271 kB / 1.319 GB, free: 6.207 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.3962, allocations: 3.984 kB / 1.319 GB, free: 6.203 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3962, allocations: 0 / 1.319 GB, free: 6.203 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.458e-05/0.3962, allocations: 0 / 1.319 GB, free: 6.203 MB / 1.014 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.0009056/0.3971, allocations: 458.9 kB / 1.32 GB, free: 5.707 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3971, allocations: 8.031 kB / 1.32 GB, free: 5.699 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.3972, allocations: 20.84 kB / 1.32 GB, free: 5.68 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.3974, allocations: 128.6 kB / 1.32 GB, free: 5.531 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.595e-05/0.3974, allocations: 20.11 kB / 1.32 GB, free: 5.512 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.375e-05/0.3975, allocations: 20 kB / 1.32 GB, free: 5.492 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002194/0.3977, allocations: 87.72 kB / 1.32 GB, free: 5.402 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.3977, allocations: 7.984 kB / 1.32 GB, free: 5.395 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.3977, allocations: 8 kB / 1.32 GB, free: 5.387 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.3978, allocations: 0 / 1.32 GB, free: 5.387 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001206/0.3979, allocations: 47.97 kB / 1.32 GB, free: 5.34 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008413/0.3987, allocations: 471.2 kB / 1.321 GB, free: 4.836 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.399, allocations: 74.5 kB / 1.321 GB, free: 4.754 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.185e-05/0.3991, allocations: 24.97 kB / 1.321 GB, free: 4.727 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.3991, allocations: 4 kB / 1.321 GB, free: 4.723 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.3993, allocations: 115.3 kB / 1.321 GB, free: 4.598 MB / 1.014 GB Notification: Performance of pre-optimization done (n=14): time 1.923e-06/0.3993, allocations: 0 / 1.321 GB, free: 4.598 MB / 1.014 GB Notification: Performance of matching and sorting (n=14): time 0.000415/0.3997, allocations: 172.7 kB / 1.321 GB, free: 4.426 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.3998, allocations: 63.34 kB / 1.321 GB, free: 4.352 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.3999, allocations: 168.5 kB / 1.321 GB, free: 4.18 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.4, allocations: 33.69 kB / 1.321 GB, free: 4.141 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.4001, allocations: 108 kB / 1.321 GB, free: 4.031 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.4001, allocations: 35.78 kB / 1.321 GB, free: 3.996 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.4003, allocations: 73.67 kB / 1.321 GB, free: 3.918 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.4004, allocations: 322.8 kB / 1.322 GB, free: 3.594 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.4006, allocations: 95.94 kB / 1.322 GB, free: 3.5 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002456/0.4009, allocations: 147.6 kB / 1.322 GB, free: 3.336 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.4012, allocations: 248.7 kB / 1.322 GB, free: 3.055 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.4012, allocations: 4 kB / 1.322 GB, free: 3.051 MB / 1.014 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006743/0.4019, allocations: 406.3 kB / 1.323 GB, free: 2.629 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 8.339e-05/0.402, allocations: 103 kB / 1.323 GB, free: 2.512 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.402, allocations: 4 kB / 1.323 GB, free: 2.508 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.402, allocations: 4.188 kB / 1.323 GB, free: 2.504 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.077e-05/0.402, allocations: 19.94 kB / 1.323 GB, free: 2.484 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.4021, allocations: 0 / 1.323 GB, free: 2.484 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004789/0.4025, allocations: 79.8 kB / 1.323 GB, free: 2.406 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.4026, allocations: 23.98 kB / 1.323 GB, free: 2.383 MB / 1.014 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.0001429/0.4027, allocations: 146.2 kB / 1.323 GB, free: 2.23 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.954e-05/0.4028, allocations: 19.84 kB / 1.323 GB, free: 2.211 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.4028, allocations: 16.78 kB / 1.323 GB, free: 2.191 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.4028, allocations: 0 / 1.323 GB, free: 2.191 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.4028, allocations: 0 / 1.323 GB, free: 2.191 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.4028, allocations: 7.922 kB / 1.323 GB, free: 2.184 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.403, allocations: 184.7 kB / 1.323 GB, free: 1.961 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.403, allocations: 0 / 1.323 GB, free: 1.961 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.833e-05/0.4031, allocations: 11.94 kB / 1.323 GB, free: 1.949 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.4031, allocations: 4 kB / 1.323 GB, free: 1.945 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.4031, allocations: 11.98 kB / 1.323 GB, free: 1.934 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4031, allocations: 0 / 1.323 GB, free: 1.934 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.4031, allocations: 4 kB / 1.323 GB, free: 1.93 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.4033, allocations: 164.9 kB / 1.323 GB, free: 1.75 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 2.293e-05/0.4033, allocations: 11.89 kB / 1.323 GB, free: 1.738 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.4034, allocations: 0 / 1.323 GB, free: 1.738 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.492e-05/0.4034, allocations: 8 kB / 1.323 GB, free: 1.73 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.4035, allocations: 15.97 kB / 1.323 GB, free: 1.715 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.4035, allocations: 8 kB / 1.323 GB, free: 1.707 MB / 1.014 GB Notification: Performance of sorting global known variables: time 8.651e-05/0.4036, allocations: 113.9 kB / 1.324 GB, free: 1.598 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/0.4036, allocations: 0 / 1.324 GB, free: 1.598 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002733/0.4038, allocations: 55.89 kB / 1.324 GB, free: 1.543 MB / 1.014 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.0001719/0.404, allocations: 108.8 kB / 1.324 GB, free: 1.43 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005218/0.4045, allocations: 350.1 kB / 1.324 GB, free: 1.051 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4045, allocations: 0 / 1.324 GB, free: 1.051 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 8.568e-05/0.4046, allocations: 47.92 kB / 1.324 GB, free: 1.004 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.4049, allocations: 23.97 kB / 1.324 GB, free: 0.9805 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005244/0.4054, allocations: 250.9 kB / 1.324 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.4058, allocations: 0.7125 MB / 1.325 GB, free: 15.98 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.525e-05/0.4058, allocations: 8.656 kB / 1.325 GB, free: 15.97 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.4058, allocations: 23.42 kB / 1.325 GB, free: 15.95 MB / 1.029 GB Notification: Performance of SimCode: time 5.21e-07/0.4058, allocations: 0 / 1.325 GB, free: 15.95 MB / 1.029 GB Notification: Performance of Templates: time 0.007203/0.413, allocations: 2.839 MB / 1.328 GB, free: 13.14 MB / 1.029 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 -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: 9.007938124239445]