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) 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-maint.11.x/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007828/0.007829, allocations: 98.56 kB / 15.73 MB, free: 5.949 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.001989/0.001989, allocations: 196.5 kB / 16.68 MB, free: 5.871 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.546/1.546, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.726/2.726, allocations: 469.8 MB / 0.7425 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 71.88 kB / 1.065 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9376/0.9395, allocations: 159.1 MB / 1.22 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002052/0.9416, allocations: 0.8187 MB / 1.221 GB, free: 1.242 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001978/0.9436, allocations: 1.295 MB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.125e-05/0.9437, allocations: 4 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.897e-05/0.9437, allocations: 11.86 kB / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.9438, allocations: 19.78 kB / 1.222 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009206/0.9448, allocations: 321 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.9452, allocations: 315.5 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.9453, allocations: 41.36 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.9455, allocations: 115.7 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.9457, allocations: 111.6 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.561e-05/0.9458, allocations: 28 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.9459, allocations: 39.98 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.694e-05/0.9459, allocations: 27.91 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.9461, allocations: 107.7 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003616/0.9465, allocations: 258.9 kB / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.9465, allocations: 0 / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.224e-06/0.9465, allocations: 0 / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.9465, allocations: 0 / 1.224 GB, free: 14.57 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.0008165/0.9473, allocations: 0.5349 MB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.9474, allocations: 12.03 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.208e-05/0.9474, allocations: 46.73 kB / 1.224 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.015e-05/0.9475, allocations: 16.89 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.9477, allocations: 184.8 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.9477, allocations: 23.88 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.701e-05/0.9478, allocations: 20 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.948, allocations: 85.59 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.948, allocations: 0 / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.948, allocations: 7.984 kB / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.948, allocations: 4 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.9481, allocations: 46.22 kB / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007219/0.9488, allocations: 0.4887 MB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.9491, allocations: 66.62 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.073e-05/0.9492, allocations: 28.91 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.9492, allocations: 0 / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.9494, allocations: 123.2 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.9494, allocations: 0 / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.0003794/0.9498, allocations: 177.4 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.9499, allocations: 51.41 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.9501, allocations: 162.9 kB / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.9501, allocations: 33.7 kB / 1.226 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.316e-05/0.9502, allocations: 108.1 kB / 1.226 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.17e-05/0.9503, allocations: 40.64 kB / 1.226 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.9504, allocations: 73.61 kB / 1.226 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000177/0.9506, allocations: 326.8 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.9508, allocations: 95.94 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002585/0.9511, allocations: 141.9 kB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003632/0.9515, allocations: 252.8 kB / 1.227 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.9515, allocations: 3.938 kB / 1.227 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006968/0.9522, allocations: 406.3 kB / 1.227 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.633e-05/0.9523, allocations: 97.09 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.9523, allocations: 7.984 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.9523, allocations: 0 / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.249e-05/0.9524, allocations: 16 kB / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.9524, allocations: 3.938 kB / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004763/0.9529, allocations: 83.98 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.9529, allocations: 27.98 kB / 1.227 GB, free: 10.49 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.0001478/0.9531, allocations: 134.3 kB / 1.227 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.333e-05/0.9531, allocations: 15.89 kB / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.9532, allocations: 12.84 kB / 1.227 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.9532, allocations: 4 kB / 1.227 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.9532, allocations: 7.938 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.9532, allocations: 0 / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000214/0.9534, allocations: 221.5 kB / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.9534, allocations: 3.938 kB / 1.228 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.616e-05/0.9535, allocations: 11.94 kB / 1.228 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.9535, allocations: 3.984 kB / 1.228 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.9535, allocations: 3.984 kB / 1.228 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.9535, allocations: 4 kB / 1.228 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.9535, allocations: 0 / 1.228 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.9538, allocations: 165 kB / 1.228 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.208e-05/0.9539, allocations: 96.89 kB / 1.228 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.9539, allocations: 0 / 1.228 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.193e-05/0.9539, allocations: 4 kB / 1.228 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.321e-05/0.954, allocations: 11.98 kB / 1.228 GB, free: 9.699 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.954, allocations: 4 kB / 1.228 GB, free: 9.695 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.029e-05/0.9541, allocations: 118.8 kB / 1.228 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.044e-06/0.9541, allocations: 0 / 1.228 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002699/0.9544, allocations: 55.92 kB / 1.228 GB, free: 9.527 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.000605/0.955, allocations: 0.706 MB / 1.229 GB, free: 8.793 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005545/0.9555, allocations: 386 kB / 1.229 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.9555, allocations: 384 / 1.229 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.952e-05/0.9556, allocations: 59.91 kB / 1.229 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.9559, allocations: 22.34 kB / 1.229 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/0.9589, allocations: 2.256 MB / 1.231 GB, free: 5.91 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.9593, allocations: 0.7084 MB / 1.232 GB, free: 5.176 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.689e-05/0.9594, allocations: 12.64 kB / 1.232 GB, free: 5.164 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.606e-05/0.9594, allocations: 39.42 kB / 1.232 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of SimCode: time 3.1e-07/0.9594, allocations: 0 / 1.232 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02634/0.9858, allocations: 4.226 MB / 1.236 GB, free: 1.02 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.377/9.363, allocations: 10.25 kB / 1.236 GB, free: 1.012 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches