Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_9_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.001457/0.001457, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001614/0.001614, allocations: 191 kB / 16.14 MB, free: 6.711 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.409/1.409, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.425/2.425, allocations: 390.2 MB / 0.6643 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6522/0.6538, allocations: 140.4 MB / 0.9491 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002145/0.656, allocations: 0.8852 MB / 0.9499 GB, free: 8.41 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001366/0.6574, allocations: 1.318 MB / 0.9512 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.294e-05/0.6574, allocations: 3.031 kB / 0.9512 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.104e-05/0.6575, allocations: 3.938 kB / 0.9512 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.129e-05/0.6575, allocations: 13.55 kB / 0.9512 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006481/0.6582, allocations: 309.3 kB / 0.9515 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002023/0.6584, allocations: 256.1 kB / 0.9518 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.6585, allocations: 45 kB / 0.9518 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.6587, allocations: 98.98 kB / 0.9519 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.6588, allocations: 82.45 kB / 0.952 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.876e-05/0.6588, allocations: 15.94 kB / 0.952 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.111e-05/0.6589, allocations: 28.8 kB / 0.952 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.81e-05/0.659, allocations: 26.75 kB / 0.952 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.6591, allocations: 99.61 kB / 0.9521 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.6593, allocations: 249 kB / 0.9524 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.6594, allocations: 0 / 0.9524 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.51e-07/0.6594, allocations: 0 / 0.9524 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.6594, allocations: 0 / 0.9524 GB, free: 6.59 MB / 0.7169 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.0005819/0.66, allocations: 0.5291 MB / 0.9529 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.66, allocations: 12.28 kB / 0.9529 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.232e-05/0.66, allocations: 41.52 kB / 0.9529 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.133e-05/0.6601, allocations: 26.09 kB / 0.953 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.937e-05/0.6602, allocations: 175.1 kB / 0.9531 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.6603, allocations: 21.39 kB / 0.9532 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.6603, allocations: 20.53 kB / 0.9532 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.6605, allocations: 91.72 kB / 0.9533 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.6605, allocations: 0 / 0.9533 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.6605, allocations: 9.25 kB / 0.9533 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.6605, allocations: 2.656 kB / 0.9533 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.6606, allocations: 45.41 kB / 0.9533 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005778/0.6612, allocations: 0.4901 MB / 0.9538 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/0.6614, allocations: 67.53 kB / 0.9539 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.082e-05/0.6615, allocations: 30.56 kB / 0.9539 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.6615, allocations: 1.219 kB / 0.9539 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.6617, allocations: 118.2 kB / 0.954 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.6617, allocations: 0 / 0.954 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003414/0.6621, allocations: 174.1 kB / 0.9542 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.6621, allocations: 57.14 kB / 0.9542 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.6622, allocations: 165 kB / 0.9544 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.6623, allocations: 34.98 kB / 0.9544 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.6623, allocations: 105.2 kB / 0.9545 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.6623, allocations: 21.25 kB / 0.9545 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.6625, allocations: 81.38 kB / 0.9546 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.827e-05/0.6625, allocations: 330.5 kB / 0.9549 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.6628, allocations: 93.31 kB / 0.955 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.663, allocations: 149.5 kB / 0.9552 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002698/0.6632, allocations: 259 kB / 0.9554 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.6633, allocations: 0 / 0.9554 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005876/0.6639, allocations: 407.1 kB / 0.9558 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.493e-05/0.6639, allocations: 96.94 kB / 0.9559 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.6639, allocations: 2.375 kB / 0.9559 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.6639, allocations: 2.562 kB / 0.9559 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.565e-05/0.664, allocations: 12.83 kB / 0.9559 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.664, allocations: 6.062 kB / 0.9559 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005013/0.6645, allocations: 93.02 kB / 0.956 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.105e-05/0.6646, allocations: 20.95 kB / 0.956 GB, free: 3.438 MB / 0.7169 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 9.907e-05/0.6647, allocations: 127.8 kB / 0.9561 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.911e-05/0.6647, allocations: 17.56 kB / 0.9562 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.6647, allocations: 12.66 kB / 0.9562 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.6647, allocations: 9.281 kB / 0.9562 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.6648, allocations: 0 / 0.9562 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.6648, allocations: 4 kB / 0.9562 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.6649, allocations: 220.5 kB / 0.9564 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.6649, allocations: 3.938 kB / 0.9564 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.204e-05/0.665, allocations: 22.8 kB / 0.9564 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.665, allocations: 0 / 0.9564 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.665, allocations: 0 / 0.9564 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.665, allocations: 3.75 kB / 0.9564 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.665, allocations: 0 / 0.9564 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.6652, allocations: 161.8 kB / 0.9566 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.239e-05/0.6652, allocations: 96.77 kB / 0.9567 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.6653, allocations: 1.5 kB / 0.9567 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.237e-05/0.6653, allocations: 5.422 kB / 0.9567 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.899e-05/0.6653, allocations: 12.55 kB / 0.9567 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.6654, allocations: 4.156 kB / 0.9567 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.804e-05/0.6654, allocations: 122.2 kB / 0.9568 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6654, allocations: 3.938 kB / 0.9568 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002699/0.6657, allocations: 48.34 kB / 0.9569 GB, free: 2.691 MB / 0.7169 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.000388/0.6661, allocations: 0.7137 MB / 0.9576 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004324/0.6665, allocations: 380.7 kB / 0.9579 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.6666, allocations: 0 / 0.9579 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.791e-05/0.6666, allocations: 47.14 kB / 0.958 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.6669, allocations: 34.05 kB / 0.958 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.6693, allocations: 2.261 MB / 0.9602 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.6695, allocations: 0.7054 MB / 0.9609 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.882e-05/0.6696, allocations: 17.83 kB / 0.9609 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.882e-05/0.6697, allocations: 41.55 kB / 0.961 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.6697, allocations: 1.062 kB / 0.961 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0152/0.6849, allocations: 3.945 MB / 0.9648 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.6851, allocations: 213.5 kB / 0.965 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.625, allocations: 0 / 0.965 GB, free: 12.88 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches