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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.008124/0.008124, allocations: 100.7 kB / 15.73 MB, free: 6.062 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.001888/0.001888, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.73/2.73, allocations: 469.4 MB / 0.7422 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 59.91 kB / 1.064 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9441/0.9456, allocations: 159.1 MB / 1.22 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002093/0.9477, allocations: 0.8226 MB / 1.221 GB, free: 1.441 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001638/0.9494, allocations: 1.291 MB / 1.222 GB, free: 140 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.609e-05/0.9495, allocations: 4 kB / 1.222 GB, free: 136 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.86e-05/0.9496, allocations: 15.8 kB / 1.222 GB, free: 120 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.9497, allocations: 19.8 kB / 1.222 GB, free: 100 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.9507, allocations: 319.5 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003748/0.9511, allocations: 315.4 kB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.9512, allocations: 45.38 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.9514, allocations: 111.7 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.9517, allocations: 111.7 kB / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.21e-05/0.9517, allocations: 28 kB / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.9518, allocations: 39.98 kB / 1.223 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.221e-05/0.9519, allocations: 19.92 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.952, allocations: 111.6 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003351/0.9524, allocations: 266.8 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.9524, allocations: 4 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.104e-06/0.9524, allocations: 0 / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.209e-05/0.9524, allocations: 0 / 1.223 GB, free: 14.76 MB / 0.9512 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.0006993/0.9531, allocations: 0.5272 MB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.9531, allocations: 8.625 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.9532, allocations: 46.73 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.971e-05/0.9533, allocations: 16.89 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.9534, allocations: 188.7 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.9534, allocations: 15.94 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.9535, allocations: 20 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.9537, allocations: 88.06 kB / 1.224 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.9537, allocations: 3.984 kB / 1.224 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.9537, allocations: 7.984 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.9537, allocations: 3.938 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.891e-05/0.9538, allocations: 43.98 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007158/0.9546, allocations: 0.4926 MB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.9548, allocations: 70.56 kB / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.577e-05/0.9549, allocations: 28.91 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.9549, allocations: 4 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001705/0.9551, allocations: 111.3 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.9551, allocations: 0 / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.000359/0.9554, allocations: 181 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.9555, allocations: 59.41 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.9556, allocations: 158.2 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.9557, allocations: 29.7 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.465e-05/0.9558, allocations: 120 kB / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.9558, allocations: 32.64 kB / 1.225 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.9559, allocations: 73.67 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.956, allocations: 322.8 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.9562, allocations: 99.94 kB / 1.226 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.9565, allocations: 143.7 kB / 1.226 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.9568, allocations: 254.9 kB / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.9568, allocations: 0 / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006472/0.9574, allocations: 400.3 kB / 1.227 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.651e-05/0.9575, allocations: 101.1 kB / 1.227 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.9575, allocations: 8.156 kB / 1.227 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.9575, allocations: 8 kB / 1.227 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.051e-05/0.9576, allocations: 11.94 kB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.9576, allocations: 4 kB / 1.227 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000489/0.9581, allocations: 87.8 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.9582, allocations: 15.98 kB / 1.227 GB, free: 10.69 MB / 0.9512 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.0001271/0.9583, allocations: 150.3 kB / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.289e-05/0.9583, allocations: 11.89 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.53e-05/0.9584, allocations: 12.84 kB / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.9584, allocations: 0 / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.9584, allocations: 0 / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.9584, allocations: 7.938 kB / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001657/0.9586, allocations: 217.5 kB / 1.227 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.9586, allocations: 3.938 kB / 1.227 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.546e-05/0.9586, allocations: 16 kB / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.9586, allocations: 0 / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.9587, allocations: 7.984 kB / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.9587, allocations: 0 / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.9587, allocations: 0 / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000214/0.9589, allocations: 161 kB / 1.227 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/0.9589, allocations: 100.8 kB / 1.227 GB, free: 9.914 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.959, allocations: 8 kB / 1.227 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.218e-05/0.959, allocations: 4 kB / 1.227 GB, free: 9.902 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.959, allocations: 11.98 kB / 1.227 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.9591, allocations: 4 kB / 1.227 GB, free: 9.887 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.524e-05/0.9591, allocations: 118.5 kB / 1.228 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9591, allocations: 0 / 1.228 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002815/0.9594, allocations: 51.98 kB / 1.228 GB, free: 9.723 MB / 0.9512 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.0004828/0.9599, allocations: 0.706 MB / 1.228 GB, free: 8.988 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004962/0.9604, allocations: 382.1 kB / 1.229 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.9604, allocations: 0 / 1.229 GB, free: 8.578 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.143e-05/0.9605, allocations: 55.89 kB / 1.229 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.9608, allocations: 28.36 kB / 1.229 GB, free: 8.496 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002638/0.9635, allocations: 2.261 MB / 1.231 GB, free: 6.102 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.9637, allocations: 0.7045 MB / 1.232 GB, free: 5.371 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 5.086e-05/0.9638, allocations: 16.64 kB / 1.232 GB, free: 5.355 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.759e-05/0.9639, allocations: 39.42 kB / 1.232 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of SimCode: time 1.663e-06/0.9639, allocations: 0 / 1.232 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02185/0.9857, allocations: 4.221 MB / 1.236 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.751/8.736, allocations: 14.64 kB / 1.236 GB, free: 1.211 MB / 0.9512 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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