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.001497/0.001497, allocations: 107.1 kB / 16.45 MB, free: 5.906 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.001956/0.001956, allocations: 213.6 kB / 19.43 MB, free: 3.602 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.469/1.469, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.293/3.293, allocations: 0.49 GB / 0.7916 GB, free: 33.33 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.00208/0.00208, allocations: 66.83 kB / 1.149 GB, free: 26.29 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3337, allocations: 176.1 MB / 1.321 GB, free: 3.336 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.00226/0.3359, allocations: 0.8434 MB / 1.322 GB, free: 2.492 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001828/0.3377, allocations: 1.311 MB / 1.323 GB, free: 1.168 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.441e-05/0.3378, allocations: 3.938 kB / 1.323 GB, free: 1.164 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.622e-05/0.3379, allocations: 7.875 kB / 1.323 GB, free: 1.156 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.338, allocations: 31.78 kB / 1.323 GB, free: 1.125 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009944/0.339, allocations: 315.3 kB / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000472/0.3394, allocations: 287.5 kB / 1.324 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.3396, allocations: 33.36 kB / 1.324 GB, free: 0.5039 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.3398, allocations: 115.8 kB / 1.324 GB, free: 400 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.34, allocations: 115.6 kB / 1.324 GB, free: 284 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 7.312e-05/0.3401, allocations: 31.98 kB / 1.324 GB, free: 252 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.3402, allocations: 43.92 kB / 1.324 GB, free: 208 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.91e-05/0.3403, allocations: 23.92 kB / 1.324 GB, free: 184 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.3404, allocations: 99.67 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004254/0.3408, allocations: 267.4 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3408, allocations: 0 / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3408, allocations: 0 / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.3408, allocations: 0 / 1.324 GB, free: 15.82 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.0008441/0.3417, allocations: 0.5312 MB / 1.325 GB, free: 15.22 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.3417, allocations: 11.98 kB / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.252e-05/0.3418, allocations: 42.73 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.372e-05/0.3419, allocations: 24.84 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.342, allocations: 180.8 kB / 1.325 GB, free: 14.92 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.892e-05/0.3421, allocations: 15.94 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.3421, allocations: 23.94 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.3423, allocations: 91.31 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3424, allocations: 4 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3424, allocations: 4 kB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.3424, allocations: 7.984 kB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001225/0.3425, allocations: 51.91 kB / 1.325 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008169/0.3433, allocations: 488.3 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.3436, allocations: 70.59 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.212e-05/0.3436, allocations: 20.92 kB / 1.326 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.3436, allocations: 8 kB / 1.326 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.3438, allocations: 123.3 kB / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 2.074e-06/0.3438, allocations: 0 / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003896/0.3442, allocations: 166.8 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.3443, allocations: 63.41 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.3445, allocations: 169.6 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.652e-05/0.3445, allocations: 29.7 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.3446, allocations: 116.1 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.998e-05/0.3446, allocations: 23.84 kB / 1.326 GB, free: 13.36 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.3448, allocations: 73.67 kB / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3449, allocations: 326.8 kB / 1.327 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002211/0.3452, allocations: 91.95 kB / 1.327 GB, free: 12.87 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.3454, allocations: 150.7 kB / 1.327 GB, free: 12.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.3458, allocations: 256.6 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3458, allocations: 0 / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000784/0.3466, allocations: 418.3 kB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.53e-05/0.3467, allocations: 97.09 kB / 1.328 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3467, allocations: 0 / 1.328 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.3467, allocations: 4 kB / 1.328 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.134e-05/0.3467, allocations: 12 kB / 1.328 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.3468, allocations: 7.984 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005135/0.3473, allocations: 83.98 kB / 1.328 GB, free: 11.76 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.3473, allocations: 19.98 kB / 1.328 GB, free: 11.74 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.0001367/0.3475, allocations: 133.8 kB / 1.328 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.57e-05/0.3475, allocations: 15.84 kB / 1.328 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.445e-05/0.3475, allocations: 20.83 kB / 1.328 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.3475, allocations: 0 / 1.328 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3475, allocations: 0 / 1.328 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3475, allocations: 4 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.3478, allocations: 221.5 kB / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3478, allocations: 3.938 kB / 1.328 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.831e-05/0.3478, allocations: 11.98 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.3478, allocations: 4 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.3478, allocations: 0 / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3478, allocations: 3.938 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3478, allocations: 0 / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.3481, allocations: 166.8 kB / 1.328 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.384e-05/0.3482, allocations: 92.95 kB / 1.329 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/0.3482, allocations: 7.984 kB / 1.329 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.054e-05/0.3482, allocations: 0 / 1.329 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.152e-05/0.3483, allocations: 11.98 kB / 1.329 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.3483, allocations: 4 kB / 1.329 GB, free: 10.95 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001091/0.3484, allocations: 117 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3484, allocations: 0 / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002922/0.3487, allocations: 52 kB / 1.329 GB, free: 10.79 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.0006693/0.3493, allocations: 0.7214 MB / 1.329 GB, free: 10.04 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005456/0.3499, allocations: 343.4 kB / 1.33 GB, free: 9.668 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3499, allocations: 8.062 kB / 1.33 GB, free: 9.66 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.721e-05/0.35, allocations: 35.98 kB / 1.33 GB, free: 9.625 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.3503, allocations: 30.45 kB / 1.33 GB, free: 9.598 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003091/0.3534, allocations: 2.254 MB / 1.332 GB, free: 7.207 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/0.3537, allocations: 0.7123 MB / 1.333 GB, free: 6.465 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.753e-05/0.3538, allocations: 12.66 kB / 1.333 GB, free: 6.453 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.885e-05/0.3538, allocations: 35.42 kB / 1.333 GB, free: 6.418 MB / 1.029 GB Notification: Performance of SimCode: time 6.92e-07/0.3538, allocations: 0 / 1.333 GB, free: 6.418 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02915/0.383, allocations: 4.246 MB / 1.337 GB, free: 2.297 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.315/8.698, allocations: 12.66 kB / 1.337 GB, free: 2.289 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.45850261603482]