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.001347/0.001347, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001461/0.001461, allocations: 215.2 kB / 22.25 MB, free: 5.102 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.467/1.467, allocations: 230.6 MB / 256 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.198/3.198, allocations: 0.49 GB / 0.7951 GB, free: 35.45 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [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.001973/0.001973, allocations: 64.31 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3613, allocations: 176.1 MB / 1.326 GB, free: 1.504 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002449/0.3638, allocations: 0.8025 MB / 1.327 GB, free: 0.707 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00192/0.3657, allocations: 1.303 MB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.963e-05/0.3658, allocations: 0 / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.178e-05/0.3658, allocations: 15.88 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.147e-05/0.3659, allocations: 23.78 kB / 1.328 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008766/0.3668, allocations: 326.6 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003559/0.3671, allocations: 295.5 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.3672, allocations: 33.62 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001464/0.3674, allocations: 115.7 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001984/0.3676, allocations: 115.7 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.646e-05/0.3676, allocations: 24 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.367e-05/0.3677, allocations: 35.98 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.451e-05/0.3678, allocations: 27.92 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.3679, allocations: 99.67 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003463/0.3682, allocations: 267.4 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3682, allocations: 0 / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3682, allocations: 0 / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.3682, allocations: 0 / 1.329 GB, free: 14.04 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.0006821/0.3689, allocations: 466.9 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.369, allocations: 11.97 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.369, allocations: 42.75 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.899e-05/0.3691, allocations: 24.78 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.3692, allocations: 127 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.3692, allocations: 15.94 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.227e-05/0.3693, allocations: 20 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/0.3695, allocations: 95.25 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.3695, allocations: 0 / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.3695, allocations: 4 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.3695, allocations: 8 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.3696, allocations: 43.98 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006982/0.3703, allocations: 415.5 kB / 1.33 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002255/0.3705, allocations: 70.59 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.79e-05/0.3706, allocations: 28.91 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.101e-05/0.3706, allocations: 0 / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000256/0.3709, allocations: 115.3 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.3709, allocations: 0 / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003569/0.3712, allocations: 173.6 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/0.3713, allocations: 63.39 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.3714, allocations: 160.6 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.3715, allocations: 33.7 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.3716, allocations: 124 kB / 1.331 GB, free: 11.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.692e-05/0.3716, allocations: 19.86 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.3718, allocations: 77.66 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3719, allocations: 326.8 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.3722, allocations: 189 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003099/0.3725, allocations: 237.3 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000326/0.3728, allocations: 252.6 kB / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3728, allocations: 0 / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007323/0.3736, allocations: 0.4934 MB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.604e-05/0.3736, allocations: 97.08 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.3736, allocations: 8.188 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.3737, allocations: 4 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.991e-05/0.3737, allocations: 12 kB / 1.333 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.3737, allocations: 3.938 kB / 1.333 GB, free: 9.992 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004545/0.3742, allocations: 79.8 kB / 1.333 GB, free: 9.914 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.502e-05/0.3742, allocations: 27.97 kB / 1.333 GB, free: 9.887 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.0001375/0.3744, allocations: 142.3 kB / 1.333 GB, free: 9.738 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/0.3744, allocations: 15.84 kB / 1.333 GB, free: 9.723 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.905e-05/0.3744, allocations: 16.78 kB / 1.333 GB, free: 9.699 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3744, allocations: 0 / 1.333 GB, free: 9.699 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3745, allocations: 0 / 1.333 GB, free: 9.699 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.3745, allocations: 3.984 kB / 1.333 GB, free: 9.695 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.3746, allocations: 172.7 kB / 1.333 GB, free: 9.484 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3746, allocations: 7.875 kB / 1.333 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.068e-05/0.3747, allocations: 19.94 kB / 1.333 GB, free: 9.457 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.3747, allocations: 4 kB / 1.333 GB, free: 9.453 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.3747, allocations: 7.984 kB / 1.333 GB, free: 9.445 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3747, allocations: 0 / 1.333 GB, free: 9.445 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3747, allocations: 0 / 1.333 GB, free: 9.445 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/0.375, allocations: 161 kB / 1.333 GB, free: 9.27 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.305e-05/0.375, allocations: 15.84 kB / 1.333 GB, free: 9.254 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.375, allocations: 4 kB / 1.333 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.276e-05/0.375, allocations: 0 / 1.333 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/0.3751, allocations: 15.97 kB / 1.334 GB, free: 9.234 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.3751, allocations: 8 kB / 1.334 GB, free: 9.227 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.316e-05/0.3752, allocations: 117.2 kB / 1.334 GB, free: 9.113 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3752, allocations: 4 kB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002735/0.3755, allocations: 51.94 kB / 1.334 GB, free: 9.059 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.0006042/0.3761, allocations: 0.712 MB / 1.334 GB, free: 8.32 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005854/0.3766, allocations: 431.1 kB / 1.335 GB, free: 7.844 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3766, allocations: 0 / 1.335 GB, free: 7.844 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.02e-05/0.3767, allocations: 45.09 kB / 1.335 GB, free: 7.801 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.377, allocations: 32.3 kB / 1.335 GB, free: 7.77 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003094/0.3801, allocations: 2.615 MB / 1.337 GB, free: 4.945 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001009/0.3802, allocations: 98.72 kB / 1.338 GB, free: 4.828 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.367e-05/0.3802, allocations: 12.64 kB / 1.338 GB, free: 4.816 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.603e-05/0.3803, allocations: 39.42 kB / 1.338 GB, free: 4.777 MB / 1.029 GB Notification: Performance of SimCode: time 4.61e-07/0.3803, allocations: 0 / 1.338 GB, free: 4.777 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03224/0.4125, allocations: 5.12 MB / 1.343 GB, free: 15.86 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.58, allocations: 14.23 kB / 1.343 GB, free: 15.84 MB / 1.045 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] 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: 18.256849369005067]