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.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.001691/0.001691, allocations: 102.7 kB / 16.45 MB, free: 6.445 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.00207/0.00207, allocations: 188.6 kB / 19.4 MB, free: 3.66 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.478/1.478, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.845/2.845, allocations: 476.7 MB / 0.7611 GB, free: 15.7 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 71.89 kB / 1.104 GB, free: 6.543 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9839/0.9858, allocations: 168.7 MB / 1.269 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.003185/0.9889, allocations: 0.8383 MB / 1.27 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002722/0.9917, allocations: 1.291 MB / 1.271 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.9918, allocations: 4.406 kB / 1.271 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 7.184e-05/0.9919, allocations: 14.44 kB / 1.271 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.992, allocations: 22.03 kB / 1.271 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001613/0.9936, allocations: 328.1 kB / 1.271 GB, free: 6.066 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0006602/0.9943, allocations: 294.3 kB / 1.271 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.9945, allocations: 32.44 kB / 1.271 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/0.9947, allocations: 117.7 kB / 1.272 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003062/0.995, allocations: 111.2 kB / 1.272 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.9951, allocations: 26.25 kB / 1.272 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.9953, allocations: 39.94 kB / 1.272 GB, free: 5.824 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.602e-05/0.9953, allocations: 26.16 kB / 1.272 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002037/0.9955, allocations: 108.5 kB / 1.272 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005628/0.9961, allocations: 261.7 kB / 1.272 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.9961, allocations: 0.875 kB / 1.272 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.944e-06/0.9961, allocations: 4 kB / 1.272 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.9961, allocations: 0.8438 kB / 1.272 GB, free: 5.656 MB / 0.9981 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.0008931/0.997, allocations: 0.5305 MB / 1.273 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.997, allocations: 8.875 kB / 1.273 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.446e-05/0.9971, allocations: 41.75 kB / 1.273 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.9972, allocations: 19.92 kB / 1.273 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.9973, allocations: 189.4 kB / 1.273 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.698e-05/0.9973, allocations: 18.17 kB / 1.273 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.599e-05/0.9974, allocations: 15.41 kB / 1.273 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.9977, allocations: 92.42 kB / 1.273 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.9977, allocations: 0 / 1.273 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.9977, allocations: 2.219 kB / 1.273 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.9977, allocations: 2.062 kB / 1.273 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.9979, allocations: 51.09 kB / 1.273 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009671/0.9988, allocations: 497.2 kB / 1.274 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/0.9992, allocations: 70.91 kB / 1.274 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.117e-05/0.9993, allocations: 26.11 kB / 1.274 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.9993, allocations: 0.9062 kB / 1.274 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003193/0.9996, allocations: 114.1 kB / 1.274 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=14): time 2.625e-06/0.9996, allocations: 4.938 kB / 1.274 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.0005544/1, allocations: 173.4 kB / 1.274 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/1, allocations: 58.56 kB / 1.274 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/1, allocations: 163.1 kB / 1.274 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.696e-05/1, allocations: 36.77 kB / 1.274 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/1.001, allocations: 117.7 kB / 1.274 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.727e-05/1.001, allocations: 28.78 kB / 1.274 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/1.001, allocations: 75.67 kB / 1.274 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.313e-05/1.001, allocations: 322.8 kB / 1.275 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003596/1.001, allocations: 95.48 kB / 1.275 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003615/1.002, allocations: 146.9 kB / 1.275 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004313/1.002, allocations: 249.6 kB / 1.275 GB, free: 3.203 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/1.002, allocations: 0 / 1.275 GB, free: 3.203 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009767/1.003, allocations: 414 kB / 1.276 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.583e-05/1.003, allocations: 101.9 kB / 1.276 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/1.003, allocations: 1.875 kB / 1.276 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/1.003, allocations: 7.031 kB / 1.276 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.842e-05/1.003, allocations: 13.34 kB / 1.276 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/1.003, allocations: 3.859 kB / 1.276 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007302/1.004, allocations: 84.97 kB / 1.276 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.468e-05/1.004, allocations: 16.89 kB / 1.276 GB, free: 2.855 MB / 0.9981 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.0001704/1.004, allocations: 145.1 kB / 1.276 GB, free: 2.719 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.353e-05/1.004, allocations: 18.48 kB / 1.276 GB, free: 2.707 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.257e-05/1.004, allocations: 15.23 kB / 1.276 GB, free: 2.695 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/1.004, allocations: 0.8125 kB / 1.276 GB, free: 2.695 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/1.004, allocations: 0.75 kB / 1.276 GB, free: 2.695 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/1.004, allocations: 1 kB / 1.276 GB, free: 2.695 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/1.005, allocations: 226 kB / 1.276 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/1.005, allocations: 3.938 kB / 1.276 GB, free: 2.469 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.816e-05/1.005, allocations: 9.719 kB / 1.276 GB, free: 2.469 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/1.005, allocations: 4.938 kB / 1.276 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/1.005, allocations: 3.031 kB / 1.276 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/1.005, allocations: 0.8125 kB / 1.276 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.005, allocations: 1.094 kB / 1.276 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000346/1.005, allocations: 160.9 kB / 1.276 GB, free: 2.363 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.556e-05/1.005, allocations: 98.39 kB / 1.276 GB, free: 2.254 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/1.005, allocations: 6.875 kB / 1.276 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.963e-05/1.005, allocations: 1.344 kB / 1.276 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.048e-05/1.005, allocations: 16.88 kB / 1.276 GB, free: 2.242 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/1.005, allocations: 5.828 kB / 1.276 GB, free: 2.242 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.504e-05/1.005, allocations: 113.7 kB / 1.277 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.005, allocations: 0 / 1.277 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000432/1.006, allocations: 53.31 kB / 1.277 GB, free: 2.148 MB / 0.9981 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.0005997/1.006, allocations: 0.709 MB / 1.277 GB, free: 1.512 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006397/1.007, allocations: 342.2 kB / 1.278 GB, free: 1.266 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/1.007, allocations: 0.9062 kB / 1.278 GB, free: 1.266 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/1.007, allocations: 47.02 kB / 1.278 GB, free: 1.25 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003805/1.007, allocations: 27.05 kB / 1.278 GB, free: 1.242 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003737/1.011, allocations: 2.262 MB / 1.28 GB, free: 15.54 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004554/1.012, allocations: 0.7067 MB / 1.281 GB, free: 14.85 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 7.733e-05/1.012, allocations: 11.58 kB / 1.281 GB, free: 14.85 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.358e-05/1.012, allocations: 47.67 kB / 1.281 GB, free: 14.81 MB / 1.014 GB Notification: Performance of SimCode: time 1.032e-06/1.012, allocations: 0.5 kB / 1.281 GB, free: 14.81 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03059/1.042, allocations: 4.247 MB / 1.285 GB, free: 14.21 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.242/9.285, allocations: 14.28 kB / 1.285 GB, free: 14.21 MB / 1.014 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] 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_2/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: 15.53877863008529]