Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001683/0.001683, allocations: 109.1 kB / 19.71 MB, free: 2.145 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.002072/0.002072, allocations: 213.2 kB / 23 MB, free: 4.969 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.693/1.693, allocations: 230.6 MB / 256.8 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.357/3.357, allocations: 0.49 GB / 0.7959 GB, free: 35.49 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 70.02 kB / 1.155 GB, free: 25.19 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4264/0.4284, allocations: 176.1 MB / 1.327 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002199/0.4306, allocations: 0.8048 MB / 1.328 GB, free: 224 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001988/0.4326, allocations: 1.295 MB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.827e-05/0.4327, allocations: 0 / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.741e-05/0.4327, allocations: 15.8 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.997e-05/0.4328, allocations: 23.8 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009104/0.4337, allocations: 330.8 kB / 1.33 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000365/0.4341, allocations: 287.5 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.4343, allocations: 33.55 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.4344, allocations: 127.7 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.4346, allocations: 103.7 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.661e-05/0.4347, allocations: 28 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.947e-05/0.4348, allocations: 39.98 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.749e-05/0.4348, allocations: 23.92 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.4349, allocations: 95.67 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003748/0.4353, allocations: 279 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.4353, allocations: 0 / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.235e-06/0.4353, allocations: 0 / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.4353, allocations: 0 / 1.33 GB, free: 13.55 MB / 1.029 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.0007372/0.4361, allocations: 454.9 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.4361, allocations: 12.03 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.828e-05/0.4362, allocations: 28.84 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.4363, allocations: 130.9 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.4364, allocations: 16.12 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.485e-05/0.4364, allocations: 16 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.4366, allocations: 93.59 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.4366, allocations: 0 / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.4366, allocations: 0 / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.4366, allocations: 4 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.4367, allocations: 43.98 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006953/0.4374, allocations: 388.1 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.4377, allocations: 66.62 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.764e-05/0.4377, allocations: 24.84 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.4377, allocations: 4 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.438, allocations: 107.5 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.438, allocations: 0 / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003995/0.4384, allocations: 177.4 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.4384, allocations: 59.41 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/0.4386, allocations: 157.1 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.4386, allocations: 37.7 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.4387, allocations: 116.4 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.504e-05/0.4388, allocations: 23.84 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.4389, allocations: 77.66 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.4391, allocations: 326.8 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.4394, allocations: 189 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000312/0.4397, allocations: 235.6 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003293/0.44, allocations: 261.1 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.44, allocations: 0 / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007143/0.4408, allocations: 495.5 kB / 1.334 GB, free: 9.766 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.011e-05/0.4408, allocations: 101.1 kB / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.4408, allocations: 4 kB / 1.334 GB, free: 9.645 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.4409, allocations: 4 kB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.695e-05/0.4409, allocations: 16.12 kB / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.4409, allocations: 4 kB / 1.334 GB, free: 9.621 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004636/0.4414, allocations: 83.8 kB / 1.334 GB, free: 9.539 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.754e-05/0.4414, allocations: 27.95 kB / 1.334 GB, free: 9.512 MB / 1.029 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.0001535/0.4416, allocations: 134.3 kB / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.664e-05/0.4416, allocations: 27.83 kB / 1.334 GB, free: 9.344 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.143e-05/0.4417, allocations: 16.72 kB / 1.334 GB, free: 9.32 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.4417, allocations: 7.984 kB / 1.334 GB, free: 9.312 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4417, allocations: 0 / 1.334 GB, free: 9.312 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.064e-05/0.4417, allocations: 11.89 kB / 1.334 GB, free: 9.301 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.4417, allocations: 0 / 1.334 GB, free: 9.301 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.281e-05/0.4417, allocations: 4 kB / 1.334 GB, free: 9.297 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.102e-05/0.4418, allocations: 7.984 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002741/0.4421, allocations: 214.5 kB / 1.334 GB, free: 9.074 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002914/0.4423, allocations: 310.6 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.581e-05/0.4424, allocations: 42.34 kB / 1.335 GB, free: 8.715 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.652e-05/0.4425, allocations: 109.1 kB / 1.335 GB, free: 8.609 MB / 1.029 GB Notification: Performance of Backend: time 5.71e-07/0.4425, allocations: 0 / 1.335 GB, free: 8.609 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0008316/0.4433, allocations: 477.5 kB / 1.335 GB, free: 8.082 MB / 1.029 GB Notification: Performance of SimCode: time 0.0007705/0.4441, allocations: 0.6757 MB / 1.336 GB, free: 7.359 MB / 1.029 GB Notification: Performance of Templates: time 0.007309/0.4514, allocations: 3.333 MB / 1.339 GB, free: 4.094 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.779636444000062]