Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 198.1 kB / 16.26 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.655/2.655, allocations: 461.9 MB / 0.7343 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002175, allocations: 62.53 kB / 0.8987 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2939, allocations: 157.4 MB / 1.052 GB, free: 8.602 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.00187/0.2958, allocations: 0.895 MB / 1.053 GB, free: 7.699 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001481/0.2973, allocations: 1.295 MB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.943e-05/0.2974, allocations: 7.938 kB / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.244e-05/0.2975, allocations: 3.938 kB / 1.055 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.347e-05/0.2976, allocations: 15.84 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007839/0.2984, allocations: 304.7 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003239/0.2987, allocations: 303.5 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.2988, allocations: 41.38 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.299, allocations: 115.8 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.2991, allocations: 91.7 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.77e-05/0.2992, allocations: 24 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.949e-05/0.2993, allocations: 39.98 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.936e-05/0.2993, allocations: 35.84 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.91e-05/0.2994, allocations: 99.67 kB / 1.056 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002633/0.2997, allocations: 263.5 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2997, allocations: 0 / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.853e-06/0.2997, allocations: 0 / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.2997, allocations: 3.938 kB / 1.056 GB, free: 5.078 MB / 0.8106 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.0005461/0.3003, allocations: 0.5134 MB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.3003, allocations: 12.62 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.02e-05/0.3003, allocations: 38.73 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.555e-05/0.3004, allocations: 24.75 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.799e-05/0.3005, allocations: 192.7 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.3005, allocations: 12.12 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.319e-05/0.3006, allocations: 23.98 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/0.3007, allocations: 89.66 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.7e-06/0.3008, allocations: 0 / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.3008, allocations: 0 / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.3008, allocations: 0 / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.963e-05/0.3009, allocations: 55.91 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005551/0.3014, allocations: 496.2 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.3016, allocations: 70.61 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.744e-05/0.3017, allocations: 32.91 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-06/0.3017, allocations: 0 / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001874/0.3019, allocations: 127.1 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.3019, allocations: 0 / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003002/0.3022, allocations: 170.6 kB / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.3023, allocations: 55.39 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.3024, allocations: 163.2 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.3024, allocations: 33.7 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.124e-05/0.3025, allocations: 112 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.3025, allocations: 31.56 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.3027, allocations: 81.59 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.224e-05/0.3027, allocations: 318.8 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.3029, allocations: 95.95 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.3031, allocations: 149.9 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.3034, allocations: 248.6 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3034, allocations: 0 / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005473/0.304, allocations: 408 kB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.72e-05/0.304, allocations: 101.1 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.304, allocations: 4 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.304, allocations: 0 / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.283e-05/0.3041, allocations: 15.98 kB / 1.059 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3041, allocations: 0 / 1.059 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004638/0.3046, allocations: 87.94 kB / 1.059 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.855e-05/0.3046, allocations: 19.98 kB / 1.059 GB, free: 1.02 MB / 0.8106 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.0001058/0.3047, allocations: 133.8 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.042e-05/0.3048, allocations: 19.75 kB / 1.06 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.881e-05/0.3048, allocations: 12.84 kB / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3048, allocations: 11.98 kB / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3048, allocations: 0 / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3048, allocations: 3.984 kB / 1.06 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.305, allocations: 213.6 kB / 1.06 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.305, allocations: 4 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.344e-05/0.305, allocations: 15.88 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.305, allocations: 0 / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.305, allocations: 7.984 kB / 1.06 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3051, allocations: 4 kB / 1.06 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3051, allocations: 0 / 1.06 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001902/0.3053, allocations: 160.9 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.682e-05/0.3053, allocations: 92.89 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.3053, allocations: 4 kB / 1.06 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.938e-05/0.3054, allocations: 3.938 kB / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.689e-05/0.3054, allocations: 15.98 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.3054, allocations: 7.984 kB / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.645e-05/0.3055, allocations: 113.5 kB / 1.06 GB, free: 120 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3055, allocations: 0 / 1.06 GB, free: 120 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002562/0.3058, allocations: 67.83 kB / 1.06 GB, free: 52 kB / 0.8106 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.0004414/0.3062, allocations: 0.697 MB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004274/0.3066, allocations: 390 kB / 1.061 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3067, allocations: 4.375 kB / 1.061 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.446e-05/0.3067, allocations: 58.55 kB / 1.061 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.307, allocations: 19.98 kB / 1.061 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.3092, allocations: 2.254 MB / 1.064 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.3094, allocations: 0.7084 MB / 1.064 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.172e-05/0.3095, allocations: 12.64 kB / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.283e-05/0.3095, allocations: 43.42 kB / 1.064 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.3095, allocations: 0 / 1.064 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3956/0.7051, allocations: 4.081 MB / 1.068 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002075/0.7053, allocations: 212.5 kB / 1.069 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.418/3.123, allocations: 0 / 1.069 GB, free: 7.465 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches