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.001711/0.001711, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002084/0.002084, allocations: 212 kB / 22.99 MB, free: 4.984 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.516/1.516, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.168/3.168, allocations: 0.49 GB / 0.7959 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 177] 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.002101/0.002101, allocations: 64.41 kB / 1.155 GB, free: 25.22 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3259, allocations: 176.1 MB / 1.327 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002174/0.3281, allocations: 0.8048 MB / 1.328 GB, free: 192 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00177/0.3299, allocations: 1.299 MB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.642e-05/0.3299, allocations: 0 / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.494e-05/0.33, allocations: 11.81 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.777e-05/0.3301, allocations: 27.78 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008666/0.3309, allocations: 321.5 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.3313, allocations: 291.5 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.3314, allocations: 37.5 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.3316, allocations: 111.8 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.3318, allocations: 111.7 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.535e-05/0.3318, allocations: 32 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.729e-05/0.3319, allocations: 39.98 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.788e-05/0.3319, allocations: 27.91 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.3321, allocations: 95.67 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.3324, allocations: 271 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3324, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3324, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.3324, allocations: 0 / 1.33 GB, free: 13.53 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.0006824/0.3331, allocations: 458.9 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.3331, allocations: 12.03 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.981e-05/0.3332, allocations: 20.84 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.3333, allocations: 135.5 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.3334, allocations: 16.12 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.3334, allocations: 23.98 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.3336, allocations: 86.81 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3336, allocations: 0 / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.3336, allocations: 8 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3336, allocations: 4 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.3338, allocations: 47.97 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000655/0.3344, allocations: 380.1 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002862/0.3347, allocations: 74.55 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.726e-05/0.3348, allocations: 24.92 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.141e-05/0.3348, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002345/0.335, allocations: 111.5 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.335, allocations: 0 / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003797/0.3354, allocations: 185.2 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.3354, allocations: 51.41 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.3356, allocations: 160.7 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.53e-05/0.3356, allocations: 33.7 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.886e-05/0.3357, allocations: 112.4 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.427e-05/0.3358, allocations: 35.83 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.3359, allocations: 77.67 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.336, allocations: 322.8 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.3363, allocations: 185 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000311/0.3366, allocations: 239.6 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003598/0.337, allocations: 257.1 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.337, allocations: 4 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007325/0.3377, allocations: 499.5 kB / 1.334 GB, free: 9.723 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.302e-05/0.3378, allocations: 99.28 kB / 1.334 GB, free: 9.609 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.3378, allocations: 0 / 1.334 GB, free: 9.609 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.3378, allocations: 4 kB / 1.334 GB, free: 9.605 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.265e-05/0.3379, allocations: 15.92 kB / 1.334 GB, free: 9.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.3379, allocations: 4 kB / 1.334 GB, free: 9.586 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004973/0.3384, allocations: 87.98 kB / 1.334 GB, free: 9.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.575e-05/0.3384, allocations: 19.98 kB / 1.334 GB, free: 9.48 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.0001405/0.3386, allocations: 142.2 kB / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.245e-05/0.3386, allocations: 15.84 kB / 1.334 GB, free: 9.316 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.545e-05/0.3386, allocations: 16.77 kB / 1.334 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.3386, allocations: 4 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3386, allocations: 0 / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.3386, allocations: 0 / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.3388, allocations: 153.2 kB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3388, allocations: 0 / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.886e-05/0.3389, allocations: 12 kB / 1.334 GB, free: 9.098 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.3389, allocations: 3.938 kB / 1.334 GB, free: 9.094 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.3389, allocations: 4 kB / 1.334 GB, free: 9.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3389, allocations: 0 / 1.334 GB, free: 9.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3389, allocations: 0 / 1.334 GB, free: 9.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.3391, allocations: 165 kB / 1.335 GB, free: 8.91 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.291e-05/0.3391, allocations: 23.83 kB / 1.335 GB, free: 8.887 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.3392, allocations: 4 kB / 1.335 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.115e-05/0.3392, allocations: 0 / 1.335 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.3392, allocations: 11.98 kB / 1.335 GB, free: 8.871 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.3393, allocations: 7.984 kB / 1.335 GB, free: 8.863 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.068e-05/0.3393, allocations: 105.3 kB / 1.335 GB, free: 8.762 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3393, allocations: 4 kB / 1.335 GB, free: 8.758 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002792/0.3396, allocations: 48 kB / 1.335 GB, free: 8.711 MB / 1.029 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.0001724/0.3398, allocations: 112.9 kB / 1.335 GB, free: 8.594 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005777/0.3404, allocations: 439.1 kB / 1.335 GB, free: 8.109 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3404, allocations: 0 / 1.335 GB, free: 8.109 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.938e-05/0.3405, allocations: 35.98 kB / 1.335 GB, free: 8.074 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.3407, allocations: 39.83 kB / 1.335 GB, free: 8.035 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004984/0.3412, allocations: 247.8 kB / 1.336 GB, free: 7.77 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.654e-05/0.3413, allocations: 102.2 kB / 1.336 GB, free: 7.648 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.164e-05/0.3414, allocations: 12.97 kB / 1.336 GB, free: 7.637 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.581e-05/0.3414, allocations: 15.44 kB / 1.336 GB, free: 7.621 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.3414, allocations: 0 / 1.336 GB, free: 7.621 MB / 1.029 GB Notification: Performance of Templates: time 0.00694/0.3483, allocations: 3.143 MB / 1.339 GB, free: 4.547 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 -s gbode -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: 8.810843618004583]