Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.00141/0.00141, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001752/0.001752, allocations: 160 kB / 23 MB, free: 4.605 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.482/1.482, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.742/2.742, allocations: 359.1 MB / 0.6044 GB, free: 14.89 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002572/0.002572, allocations: 63.89 kB / 0.9515 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3737/0.3762, allocations: 169.9 MB / 1.117 GB, free: 2.57 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002212/0.3785, allocations: 0.7937 MB / 1.118 GB, free: 1.777 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001999/0.3805, allocations: 1.315 MB / 1.12 GB, free: 460 kB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.197e-05/0.3805, allocations: 0 / 1.12 GB, free: 460 kB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 5.139e-05/0.3806, allocations: 19.8 kB / 1.12 GB, free: 440 kB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 9.626e-05/0.3807, allocations: 19.8 kB / 1.12 GB, free: 420 kB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009802/0.3817, allocations: 326.7 kB / 1.12 GB, free: 100 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004447/0.3821, allocations: 295.5 kB / 1.12 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.3822, allocations: 33.55 kB / 1.12 GB, free: 15.77 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.3824, allocations: 115.8 kB / 1.12 GB, free: 15.66 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.3827, allocations: 91.67 kB / 1.12 GB, free: 15.57 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 6.296e-05/0.3827, allocations: 24 kB / 1.12 GB, free: 15.55 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.3828, allocations: 43.92 kB / 1.12 GB, free: 15.5 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 4.948e-05/0.3829, allocations: 35.84 kB / 1.12 GB, free: 15.47 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.383, allocations: 95.73 kB / 1.121 GB, free: 15.38 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003934/0.3834, allocations: 263.1 kB / 1.121 GB, free: 15.12 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3834, allocations: 0 / 1.121 GB, free: 15.12 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3834, allocations: 0 / 1.121 GB, free: 15.12 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.128e-05/0.3834, allocations: 0 / 1.121 GB, free: 15.12 MB / 1.076 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.0007355/0.3842, allocations: 458.9 kB / 1.121 GB, free: 14.62 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3842, allocations: 8.031 kB / 1.121 GB, free: 14.61 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.349e-05/0.3843, allocations: 20.84 kB / 1.121 GB, free: 14.59 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.3844, allocations: 134.9 kB / 1.121 GB, free: 14.44 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.3845, allocations: 12.12 kB / 1.121 GB, free: 14.43 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-05/0.3845, allocations: 27.94 kB / 1.121 GB, free: 14.4 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.3847, allocations: 89.61 kB / 1.122 GB, free: 14.3 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.3847, allocations: 0 / 1.122 GB, free: 14.3 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.3847, allocations: 7.984 kB / 1.122 GB, free: 14.3 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3847, allocations: 3.984 kB / 1.122 GB, free: 14.29 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.3848, allocations: 47.98 kB / 1.122 GB, free: 14.25 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007059/0.3856, allocations: 376.1 kB / 1.122 GB, free: 13.85 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.3858, allocations: 62.62 kB / 1.122 GB, free: 13.78 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.235e-05/0.3858, allocations: 32.84 kB / 1.122 GB, free: 13.74 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.3859, allocations: 7.938 kB / 1.122 GB, free: 13.73 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.3861, allocations: 115.5 kB / 1.122 GB, free: 13.61 MB / 1.076 GB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.3861, allocations: 0 / 1.122 GB, free: 13.61 MB / 1.076 GB Notification: Performance of matching and sorting (n=14): time 0.000382/0.3865, allocations: 175 kB / 1.122 GB, free: 13.43 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/0.3865, allocations: 63.34 kB / 1.122 GB, free: 13.36 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.3867, allocations: 147.8 kB / 1.123 GB, free: 13.21 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.266e-05/0.3867, allocations: 37.7 kB / 1.123 GB, free: 13.16 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 9.628e-05/0.3868, allocations: 108.5 kB / 1.123 GB, free: 13.05 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.07e-05/0.3869, allocations: 23.84 kB / 1.123 GB, free: 13.03 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.387, allocations: 81.66 kB / 1.123 GB, free: 12.94 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001595/0.3872, allocations: 326.8 kB / 1.123 GB, free: 12.61 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/0.3875, allocations: 181 kB / 1.123 GB, free: 12.42 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000324/0.3878, allocations: 241.7 kB / 1.123 GB, free: 12.14 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003505/0.3881, allocations: 250.1 kB / 1.124 GB, free: 11.86 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.3881, allocations: 4 kB / 1.124 GB, free: 11.86 MB / 1.076 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007772/0.3889, allocations: 0.4915 MB / 1.124 GB, free: 11.32 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 9.529e-05/0.389, allocations: 105.1 kB / 1.124 GB, free: 11.2 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.389, allocations: 0 / 1.124 GB, free: 11.2 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.389, allocations: 4 kB / 1.124 GB, free: 11.2 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.408e-05/0.3891, allocations: 11.94 kB / 1.124 GB, free: 11.19 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.3891, allocations: 7.984 kB / 1.124 GB, free: 11.18 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005253/0.3896, allocations: 87.92 kB / 1.124 GB, free: 11.09 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.576e-05/0.3897, allocations: 19.98 kB / 1.124 GB, free: 11.07 MB / 1.076 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.0001446/0.3898, allocations: 133.8 kB / 1.125 GB, free: 10.93 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.55e-05/0.3898, allocations: 15.84 kB / 1.125 GB, free: 10.92 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.3899, allocations: 16.78 kB / 1.125 GB, free: 10.9 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3899, allocations: 0 / 1.125 GB, free: 10.9 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3899, allocations: 7.938 kB / 1.125 GB, free: 10.89 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.3899, allocations: 4 kB / 1.125 GB, free: 10.89 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.3901, allocations: 153.2 kB / 1.125 GB, free: 10.71 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3901, allocations: 0 / 1.125 GB, free: 10.71 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.05e-05/0.3901, allocations: 11.98 kB / 1.125 GB, free: 10.7 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.3901, allocations: 7.938 kB / 1.125 GB, free: 10.69 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.3901, allocations: 0 / 1.125 GB, free: 10.69 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3901, allocations: 0 / 1.125 GB, free: 10.69 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3901, allocations: 0 / 1.125 GB, free: 10.69 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003367/0.3905, allocations: 170.5 kB / 1.125 GB, free: 10.51 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.938e-05/0.3905, allocations: 11.89 kB / 1.125 GB, free: 10.5 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.3905, allocations: 7.938 kB / 1.125 GB, free: 10.49 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.528e-05/0.3906, allocations: 4 kB / 1.125 GB, free: 10.48 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.3906, allocations: 15.97 kB / 1.125 GB, free: 10.47 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.3906, allocations: 4 kB / 1.125 GB, free: 10.46 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.000113/0.3907, allocations: 109.7 kB / 1.125 GB, free: 10.36 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.3907, allocations: 0 / 1.125 GB, free: 10.36 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003001/0.391, allocations: 55.89 kB / 1.125 GB, free: 10.3 MB / 1.076 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.0001563/0.3912, allocations: 100.1 kB / 1.125 GB, free: 10.2 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0006224/0.3918, allocations: 447 kB / 1.126 GB, free: 9.707 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3918, allocations: 0 / 1.126 GB, free: 9.707 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 9.744e-05/0.3919, allocations: 43.98 kB / 1.126 GB, free: 9.664 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.3922, allocations: 23.92 kB / 1.126 GB, free: 9.641 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005153/0.3927, allocations: 247.3 kB / 1.126 GB, free: 9.367 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.091e-05/0.3928, allocations: 94.66 kB / 1.126 GB, free: 9.258 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 4.163e-05/0.3928, allocations: 12.97 kB / 1.126 GB, free: 9.246 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.414e-05/0.3929, allocations: 20.44 kB / 1.126 GB, free: 9.227 MB / 1.076 GB Notification: Performance of SimCode: time 3.31e-07/0.3929, allocations: 0 / 1.126 GB, free: 9.227 MB / 1.076 GB Notification: Performance of Templates: time 0.007377/0.4002, allocations: 3.045 MB / 1.129 GB, free: 6.254 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.69427820108831]