Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002022/0.002022, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002592/0.002592, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.561/1.561, allocations: 225.6 MB / 249.4 MB, free: 3.293 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.675/2.675, allocations: 443.5 MB / 0.7304 GB, free: 13.89 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 59.91 kB / 1.059 GB, free: 340 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.4008, allocations: 160.7 MB / 1.216 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002834/0.4036, allocations: 0.837 MB / 1.217 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002084/0.4057, allocations: 1.305 MB / 1.218 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.529e-05/0.4058, allocations: 0 / 1.218 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.981e-05/0.4058, allocations: 7.875 kB / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.406, allocations: 23.78 kB / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009682/0.4069, allocations: 323 kB / 1.219 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003908/0.4073, allocations: 295.5 kB / 1.219 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.4075, allocations: 29.42 kB / 1.219 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001637/0.4076, allocations: 119.7 kB / 1.219 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.4078, allocations: 115.6 kB / 1.219 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.032e-05/0.4079, allocations: 24 kB / 1.219 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.737e-05/0.408, allocations: 39.98 kB / 1.219 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.096e-05/0.408, allocations: 27.91 kB / 1.219 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.4082, allocations: 99.67 kB / 1.219 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003653/0.4085, allocations: 263.2 kB / 1.22 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4085, allocations: 0 / 1.22 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.053e-06/0.4085, allocations: 0 / 1.22 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.634e-06/0.4085, allocations: 3.938 kB / 1.22 GB, free: 11.79 MB / 0.9669 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.0008386/0.4094, allocations: 0.5389 MB / 1.22 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4094, allocations: 8.031 kB / 1.22 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.697e-05/0.4095, allocations: 16.89 kB / 1.22 GB, free: 11.16 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.4097, allocations: 184.8 kB / 1.22 GB, free: 10.94 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.4097, allocations: 20.12 kB / 1.22 GB, free: 10.92 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.687e-05/0.4098, allocations: 23.98 kB / 1.22 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.41, allocations: 87.72 kB / 1.22 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.41, allocations: 3.938 kB / 1.22 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.41, allocations: 8 kB / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.41, allocations: 3.984 kB / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.4101, allocations: 51.97 kB / 1.22 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007904/0.4109, allocations: 488.4 kB / 1.221 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.4112, allocations: 70.55 kB / 1.221 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.705e-05/0.4112, allocations: 24.98 kB / 1.221 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.975e-05/0.4112, allocations: 7.938 kB / 1.221 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.4115, allocations: 115.2 kB / 1.221 GB, free: 9.973 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=14): time 1.442e-06/0.4115, allocations: 0 / 1.221 GB, free: 9.973 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14): time 0.0003815/0.4119, allocations: 176.3 kB / 1.221 GB, free: 9.797 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.4119, allocations: 55.41 kB / 1.221 GB, free: 9.73 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.4121, allocations: 173 kB / 1.222 GB, free: 9.551 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.4121, allocations: 29.7 kB / 1.222 GB, free: 9.516 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.711e-05/0.4122, allocations: 116.1 kB / 1.222 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.616e-05/0.4122, allocations: 23.81 kB / 1.222 GB, free: 9.375 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.4124, allocations: 77.66 kB / 1.222 GB, free: 9.293 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001645/0.4126, allocations: 326.8 kB / 1.222 GB, free: 8.965 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.4128, allocations: 91.89 kB / 1.222 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.413, allocations: 153.9 kB / 1.222 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.4133, allocations: 252.9 kB / 1.223 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4133, allocations: 4 kB / 1.223 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006628/0.414, allocations: 406.3 kB / 1.223 GB, free: 7.992 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.027e-05/0.4141, allocations: 97.09 kB / 1.223 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4141, allocations: 0 / 1.223 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.4141, allocations: 8.188 kB / 1.223 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.552e-05/0.4142, allocations: 15.98 kB / 1.223 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.4142, allocations: 7.938 kB / 1.223 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004544/0.4146, allocations: 83.75 kB / 1.223 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.727e-05/0.4147, allocations: 19.98 kB / 1.223 GB, free: 7.746 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.0001347/0.4148, allocations: 133.8 kB / 1.223 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.4148, allocations: 11.89 kB / 1.223 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.178e-05/0.4149, allocations: 20.83 kB / 1.223 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4149, allocations: 0 / 1.223 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4149, allocations: 0 / 1.223 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.4149, allocations: 0 / 1.223 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002265/0.4151, allocations: 221.5 kB / 1.224 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4151, allocations: 0 / 1.224 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.97e-05/0.4152, allocations: 19.86 kB / 1.224 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.4152, allocations: 4 kB / 1.224 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.4152, allocations: 12 kB / 1.224 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.4152, allocations: 0 / 1.224 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4152, allocations: 0 / 1.224 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.4154, allocations: 153 kB / 1.224 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.883e-05/0.4155, allocations: 92.95 kB / 1.224 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.4155, allocations: 3.984 kB / 1.224 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.33e-05/0.4156, allocations: 8 kB / 1.224 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.4156, allocations: 11.98 kB / 1.224 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.4156, allocations: 11.94 kB / 1.224 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.546e-05/0.4157, allocations: 116.9 kB / 1.224 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.4157, allocations: 0 / 1.224 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002687/0.416, allocations: 48 kB / 1.224 GB, free: 6.801 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.0001969/0.4162, allocations: 115.1 kB / 1.224 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000519/0.4167, allocations: 346.2 kB / 1.224 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4167, allocations: 0 / 1.224 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.334e-05/0.4168, allocations: 47.92 kB / 1.224 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.4171, allocations: 25.53 kB / 1.224 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005052/0.4176, allocations: 255.3 kB / 1.225 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.4179, allocations: 0.7125 MB / 1.225 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.249e-05/0.418, allocations: 12.64 kB / 1.225 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.091e-05/0.418, allocations: 19.44 kB / 1.225 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of SimCode: time 4.11e-07/0.418, allocations: 0 / 1.225 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of Templates: time 0.006304/0.4243, allocations: 2.824 MB / 1.228 GB, free: 2.395 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.81527601275593]