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.002176/0.002176, allocations: 84.05 kB / 19.18 MB, free: 2.523 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.003361/0.003361, allocations: 165.5 kB / 22.46 MB, free: 5.359 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.489/1.489, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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 3.084/3.084, allocations: 389 MB / 0.633 GB, free: 0.9805 MB / 0.5919 GB " [Timeout remaining time 176] 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.824e-06/1.824e-06, allocations: 0 / 1 GB, free: 7.27 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.675e-05/2.857e-05, allocations: 6.219 kB / 1 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002003/0.002032, allocations: 0.7996 MB / 1.001 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001866/0.003897, allocations: 1.322 MB / 1.002 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.101e-05/0.003968, allocations: 4 kB / 1.002 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.956e-05/0.004008, allocations: 11.86 kB / 1.002 GB, free: 5.113 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.00411, allocations: 27.73 kB / 1.002 GB, free: 5.086 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009018/0.005012, allocations: 323.5 kB / 1.003 GB, free: 4.777 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000351/0.005363, allocations: 291.4 kB / 1.003 GB, free: 4.492 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.005486, allocations: 29.62 kB / 1.003 GB, free: 4.457 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002149/0.005701, allocations: 159.8 kB / 1.003 GB, free: 4.301 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.005881, allocations: 91.78 kB / 1.003 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.34e-05/0.005944, allocations: 31.94 kB / 1.003 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.461e-05/0.006039, allocations: 35.98 kB / 1.003 GB, free: 4.145 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.554e-05/0.006074, allocations: 27.91 kB / 1.003 GB, free: 4.117 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.006199, allocations: 87.86 kB / 1.003 GB, free: 4.031 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003928/0.006591, allocations: 315.1 kB / 1.004 GB, free: 3.723 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.006596, allocations: 4 kB / 1.004 GB, free: 3.719 MB / 0.9512 GB Notification: Performance of FrontEnd: time 7.72e-07/0.006597, allocations: 0 / 1.004 GB, free: 3.719 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.006601, allocations: 0 / 1.004 GB, free: 3.719 MB / 0.9512 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.0007336/0.007335, allocations: 458.9 kB / 1.004 GB, free: 3.223 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.00737, allocations: 11.97 kB / 1.004 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.988e-05/0.00745, allocations: 20.84 kB / 1.004 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.007565, allocations: 118.2 kB / 1.004 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.0076, allocations: 16.36 kB / 1.004 GB, free: 3.035 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.155e-05/0.007652, allocations: 20.38 kB / 1.004 GB, free: 3.016 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.007846, allocations: 93.53 kB / 1.004 GB, free: 2.918 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.007855, allocations: 0 / 1.004 GB, free: 2.918 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.007871, allocations: 8 kB / 1.004 GB, free: 2.91 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.007876, allocations: 0 / 1.004 GB, free: 2.91 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001097/0.007986, allocations: 51.92 kB / 1.004 GB, free: 2.859 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000675/0.008661, allocations: 376.1 kB / 1.005 GB, free: 2.461 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002372/0.008898, allocations: 66.61 kB / 1.005 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.039e-05/0.008958, allocations: 28.91 kB / 1.005 GB, free: 2.355 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.008971, allocations: 4 kB / 1.005 GB, free: 2.352 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.009199, allocations: 114.3 kB / 1.005 GB, free: 2.23 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.0092, allocations: 0 / 1.005 GB, free: 2.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.0003874/0.009588, allocations: 177.7 kB / 1.005 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.009633, allocations: 59.39 kB / 1.005 GB, free: 1.98 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.009774, allocations: 152.3 kB / 1.005 GB, free: 1.824 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.12e-05/0.009825, allocations: 37.7 kB / 1.005 GB, free: 1.781 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.852e-05/0.009924, allocations: 116.5 kB / 1.005 GB, free: 1.664 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.102e-05/0.009955, allocations: 23.86 kB / 1.005 GB, free: 1.641 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.0101, allocations: 77.61 kB / 1.006 GB, free: 1.559 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.01024, allocations: 326.8 kB / 1.006 GB, free: 1.23 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002778/0.01052, allocations: 189 kB / 1.006 GB, free: 1.027 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.01083, allocations: 241.2 kB / 1.006 GB, free: 0.7539 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003375/0.01117, allocations: 246.9 kB / 1.006 GB, free: 484 kB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.01117, allocations: 4 kB / 1.006 GB, free: 480 kB / 0.9512 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007547/0.01193, allocations: 0.4893 MB / 1.007 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.8e-05/0.01203, allocations: 101 kB / 1.007 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.01204, allocations: 4 kB / 1.007 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.01206, allocations: 4 kB / 1.007 GB, free: 15.81 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.761e-05/0.01214, allocations: 15.98 kB / 1.007 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.01216, allocations: 7.938 kB / 1.007 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006095/0.01277, allocations: 83.98 kB / 1.007 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.772e-05/0.01282, allocations: 19.98 kB / 1.007 GB, free: 15.69 MB / 0.9669 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.0001478/0.01296, allocations: 142.3 kB / 1.007 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.01298, allocations: 7.953 kB / 1.007 GB, free: 15.53 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.745e-05/0.01302, allocations: 20.72 kB / 1.007 GB, free: 15.52 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.01303, allocations: 3.984 kB / 1.007 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.01303, allocations: 0 / 1.007 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.01304, allocations: 8 kB / 1.007 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.01321, allocations: 157.1 kB / 1.008 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01321, allocations: 0 / 1.008 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.966e-05/0.01326, allocations: 11.94 kB / 1.008 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.01326, allocations: 4 kB / 1.008 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.01328, allocations: 3.984 kB / 1.008 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.01328, allocations: 3.938 kB / 1.008 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.01328, allocations: 0 / 1.008 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.01353, allocations: 157 kB / 1.008 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 1.708e-05/0.01355, allocations: 11.91 kB / 1.008 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.01357, allocations: 4 kB / 1.008 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.416e-05/0.01361, allocations: 7.938 kB / 1.008 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.01366, allocations: 19.97 kB / 1.008 GB, free: 15.08 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.01367, allocations: 4 kB / 1.008 GB, free: 15.08 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.645e-05/0.01376, allocations: 104.8 kB / 1.008 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.01376, allocations: 0 / 1.008 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002805/0.01404, allocations: 55.92 kB / 1.008 GB, free: 14.92 MB / 0.9669 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.0001817/0.01422, allocations: 103.2 kB / 1.008 GB, free: 14.81 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006224/0.01484, allocations: 442.1 kB / 1.008 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.01484, allocations: 0 / 1.008 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.666e-05/0.01493, allocations: 47.91 kB / 1.008 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.01521, allocations: 19.98 kB / 1.008 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004781/0.01569, allocations: 242.1 kB / 1.009 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.702e-05/0.01577, allocations: 94.47 kB / 1.009 GB, free: 13.88 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.764e-05/0.01581, allocations: 12.97 kB / 1.009 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.072e-05/0.01585, allocations: 16.5 kB / 1.009 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of SimCode: time 3.81e-07/0.01585, allocations: 0 / 1.009 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of Templates: time 0.007387/0.02324, allocations: 3.025 MB / 1.012 GB, free: 10.9 MB / 0.9669 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: 8.522531472146511]