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.001469/0.001469, allocations: 108 kB / 16.45 MB, free: 6.5 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.001716/0.001716, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.59/1.59, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.375/3.375, allocations: 0.4899 GB / 0.7915 GB, free: 33.4 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.002072/0.002072, allocations: 65.59 kB / 1.149 GB, free: 26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4177/0.4198, allocations: 176.1 MB / 1.321 GB, free: 2.836 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.003022/0.4228, allocations: 0.8356 MB / 1.322 GB, free: 2 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002521/0.4254, allocations: 1.319 MB / 1.323 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.4255, allocations: 0 / 1.323 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.612e-05/0.4255, allocations: 15.75 kB / 1.323 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.4257, allocations: 27.78 kB / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.4269, allocations: 322.1 kB / 1.324 GB, free: 328 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0004901/0.4273, allocations: 291.5 kB / 1.324 GB, free: 36 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.4275, allocations: 37.41 kB / 1.324 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/0.4278, allocations: 115.7 kB / 1.324 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.428, allocations: 111.7 kB / 1.324 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.795e-05/0.4281, allocations: 24 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.4282, allocations: 39.94 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.839e-05/0.4282, allocations: 27.86 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.4284, allocations: 107.7 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004401/0.4288, allocations: 263.1 kB / 1.325 GB, free: 15.32 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.4288, allocations: 4 kB / 1.325 GB, free: 15.31 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.634e-06/0.4288, allocations: 0 / 1.325 GB, free: 15.31 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.949e-06/0.4288, allocations: 0 / 1.325 GB, free: 15.31 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.001042/0.4299, allocations: 0.5289 MB / 1.325 GB, free: 14.72 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/0.4299, allocations: 15.98 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.4301, allocations: 24.83 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.4303, allocations: 183 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.049e-05/0.4304, allocations: 12.12 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/0.4304, allocations: 20 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000258/0.4307, allocations: 97.59 kB / 1.326 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.4307, allocations: 0 / 1.326 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.4307, allocations: 0 / 1.326 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.4307, allocations: 4 kB / 1.326 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.4309, allocations: 47.92 kB / 1.326 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008994/0.4318, allocations: 0.4885 MB / 1.326 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002658/0.432, allocations: 70.55 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.15e-05/0.4321, allocations: 24.92 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.4321, allocations: 0 / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.4323, allocations: 119.4 kB / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.4323, allocations: 0 / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0004273/0.4327, allocations: 169.5 kB / 1.326 GB, free: 13.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.4328, allocations: 55.41 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.433, allocations: 173.6 kB / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.613e-05/0.433, allocations: 41.64 kB / 1.327 GB, free: 13.05 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.4332, allocations: 108.1 kB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.23e-05/0.4332, allocations: 23.84 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.4334, allocations: 77.67 kB / 1.327 GB, free: 12.83 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4335, allocations: 318.8 kB / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.4338, allocations: 99.94 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.4341, allocations: 147.9 kB / 1.327 GB, free: 12.25 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.4344, allocations: 257.1 kB / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.4344, allocations: 0 / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007958/0.4352, allocations: 402.4 kB / 1.328 GB, free: 11.54 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.293e-05/0.4353, allocations: 103.4 kB / 1.328 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.4353, allocations: 7.938 kB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.4354, allocations: 0 / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-05/0.4354, allocations: 16.12 kB / 1.328 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.4354, allocations: 4 kB / 1.328 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005259/0.436, allocations: 91.77 kB / 1.328 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.921e-05/0.436, allocations: 19.98 kB / 1.328 GB, free: 11.29 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.000156/0.4362, allocations: 141.8 kB / 1.328 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.167e-05/0.4362, allocations: 19.84 kB / 1.328 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.033e-05/0.4362, allocations: 8.844 kB / 1.328 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.4362, allocations: 7.984 kB / 1.328 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.4362, allocations: 0 / 1.328 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.4363, allocations: 4 kB / 1.328 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.4365, allocations: 217.5 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.4365, allocations: 0 / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.274e-05/0.4366, allocations: 19.92 kB / 1.329 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.4366, allocations: 0 / 1.329 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.4366, allocations: 4 kB / 1.329 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.4366, allocations: 4 kB / 1.329 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4366, allocations: 0 / 1.329 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002503/0.4368, allocations: 160.9 kB / 1.329 GB, free: 10.63 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.899e-05/0.4369, allocations: 92.95 kB / 1.329 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/0.4369, allocations: 4 kB / 1.329 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.51e-05/0.437, allocations: 3.984 kB / 1.329 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.437, allocations: 15.98 kB / 1.329 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.437, allocations: 8 kB / 1.329 GB, free: 10.49 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001098/0.4371, allocations: 117 kB / 1.329 GB, free: 10.38 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4371, allocations: 0 / 1.329 GB, free: 10.38 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002885/0.4374, allocations: 48 kB / 1.329 GB, free: 10.33 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.0002127/0.4376, allocations: 111.1 kB / 1.329 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006002/0.4382, allocations: 346.4 kB / 1.33 GB, free: 9.84 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4382, allocations: 4.062 kB / 1.33 GB, free: 9.836 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.833e-05/0.4383, allocations: 43.86 kB / 1.33 GB, free: 9.793 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.4386, allocations: 23.98 kB / 1.33 GB, free: 9.77 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005935/0.4392, allocations: 254.3 kB / 1.33 GB, free: 9.5 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004475/0.4397, allocations: 0.7161 MB / 1.331 GB, free: 8.754 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.853e-05/0.4397, allocations: 8.656 kB / 1.331 GB, free: 8.746 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.03e-05/0.4397, allocations: 19.42 kB / 1.331 GB, free: 8.727 MB / 1.029 GB Notification: Performance of SimCode: time 4.41e-07/0.4397, allocations: 0 / 1.331 GB, free: 8.727 MB / 1.029 GB Notification: Performance of Templates: time 0.007354/0.4471, allocations: 2.814 MB / 1.333 GB, free: 5.945 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/jenkins/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.78056060988456]