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) 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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_10_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.000869/0.000869, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007465/0.007465, allocations: 170.1 kB / 16.26 MB, free: 6.613 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.201/1.201, allocations: 223.3 MB / 240.3 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.327/2.327, allocations: 437.8 MB / 0.7121 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003581, allocations: 12 kB / 0.873 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5384/0.5387, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.0008518/0.5396, allocations: 0.5509 MB / 1.024 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001523/0.5412, allocations: 1.308 MB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.744e-05/0.5412, allocations: 8 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.144e-05/0.5413, allocations: 3.938 kB / 1.025 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.427e-05/0.5414, allocations: 19.84 kB / 1.025 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007438/0.5421, allocations: 298.5 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002354/0.5423, allocations: 263.5 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.5425, allocations: 41.36 kB / 1.026 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.5426, allocations: 95.8 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.5427, allocations: 79.7 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.094e-05/0.5428, allocations: 16 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.997e-05/0.5429, allocations: 39.91 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.01e-05/0.5429, allocations: 11.94 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.543, allocations: 121.3 kB / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.5432, allocations: 237.6 kB / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.5432, allocations: 0 / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.454e-06/0.5433, allocations: 0 / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.5433, allocations: 3.938 kB / 1.026 GB, free: 12.73 MB / 0.7794 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.000454/0.5437, allocations: 488.1 kB / 1.027 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.5438, allocations: 8.031 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.543e-05/0.5438, allocations: 50.67 kB / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.063e-05/0.5439, allocations: 16.84 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.544, allocations: 185.5 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.544e-05/0.544, allocations: 16.11 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.5441, allocations: 20 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.5442, allocations: 89.59 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.581e-06/0.5442, allocations: 0 / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.5442, allocations: 4 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.5443, allocations: 0 / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.234e-05/0.5444, allocations: 47.97 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005656/0.5449, allocations: 0.4961 MB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.5451, allocations: 66.56 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.996e-05/0.5452, allocations: 32.97 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.295e-06/0.5452, allocations: 4 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001481/0.5454, allocations: 125 kB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.5454, allocations: 0 / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003021/0.5457, allocations: 165.5 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.5457, allocations: 55.41 kB / 1.028 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.5458, allocations: 163 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.834e-05/0.5459, allocations: 41.7 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.963e-05/0.546, allocations: 115.9 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.546, allocations: 27.69 kB / 1.028 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.745e-05/0.546, allocations: 37.7 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.186e-05/0.5461, allocations: 322.8 kB / 1.029 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.5463, allocations: 91.95 kB / 1.029 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.5465, allocations: 146 kB / 1.029 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.5468, allocations: 252.2 kB / 1.029 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5468, allocations: 4 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005583/0.5474, allocations: 402.2 kB / 1.029 GB, free: 9 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.941e-05/0.5474, allocations: 97.09 kB / 1.03 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.5475, allocations: 4 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-06/0.5475, allocations: 0 / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.984e-05/0.5475, allocations: 11.98 kB / 1.03 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.5475, allocations: 11.88 kB / 1.03 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005201/0.5481, allocations: 119.9 kB / 1.03 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.781e-05/0.5481, allocations: 23.98 kB / 1.03 GB, free: 8.719 MB / 0.7794 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.0001074/0.5482, allocations: 134.3 kB / 1.03 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.104e-05/0.5483, allocations: 19.75 kB / 1.03 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.838e-05/0.5483, allocations: 16.83 kB / 1.03 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.5483, allocations: 4 kB / 1.03 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.5483, allocations: 0 / 1.03 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.5483, allocations: 3.984 kB / 1.03 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.5485, allocations: 221.5 kB / 1.03 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.5485, allocations: 0 / 1.03 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.212e-05/0.5485, allocations: 15.88 kB / 1.03 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.5485, allocations: 0 / 1.03 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.5485, allocations: 3.984 kB / 1.03 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.5485, allocations: 4 kB / 1.03 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.5486, allocations: 0 / 1.03 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001985/0.5488, allocations: 165.8 kB / 1.03 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.5488, allocations: 92.95 kB / 1.03 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.5488, allocations: 0 / 1.03 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.873e-05/0.5489, allocations: 0 / 1.03 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.023e-05/0.5489, allocations: 15.98 kB / 1.03 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.5489, allocations: 7.984 kB / 1.03 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.666e-05/0.549, allocations: 123.1 kB / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.549, allocations: 0 / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002451/0.5492, allocations: 55.91 kB / 1.031 GB, free: 7.758 MB / 0.7794 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.000426/0.5497, allocations: 0.6998 MB / 1.031 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004217/0.5501, allocations: 382.2 kB / 1.032 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5501, allocations: 4.125 kB / 1.032 GB, free: 6.617 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.639e-05/0.5502, allocations: 55.92 kB / 1.032 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.5504, allocations: 26.33 kB / 1.032 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.5527, allocations: 2.253 MB / 1.034 GB, free: 4.16 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002028/0.5529, allocations: 0.7126 MB / 1.035 GB, free: 3.422 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.005e-05/0.5529, allocations: 12.64 kB / 1.035 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.826e-05/0.553, allocations: 39.42 kB / 1.035 GB, free: 3.371 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.553, allocations: 3.938 kB / 1.035 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1444/0.6974, allocations: 3.881 MB / 1.038 GB, free: 15.64 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/0.6976, allocations: 196.3 kB / 1.039 GB, free: 15.39 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.54, allocations: 3.938 kB / 1.039 GB, free: 15.39 MB / 0.795 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches