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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001585/0.001585, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 194.9 kB / 16.53 MB, free: 6.391 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.527/1.527, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.445/2.445, allocations: 390.3 MB / 0.6647 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 64.14 kB / 0.8127 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7481/0.7497, allocations: 140.4 MB / 0.9497 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001954/0.7517, allocations: 0.824 MB / 0.9505 GB, free: 8.586 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.7531, allocations: 1.286 MB / 0.9518 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.728e-05/0.7532, allocations: 1.25 kB / 0.9518 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.738e-05/0.7533, allocations: 19.8 kB / 0.9518 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.159e-05/0.7534, allocations: 18.27 kB / 0.9518 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007498/0.7541, allocations: 306.7 kB / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002727/0.7544, allocations: 313 kB / 0.9524 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.7545, allocations: 46.03 kB / 0.9525 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.7547, allocations: 114.8 kB / 0.9526 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.7548, allocations: 94.94 kB / 0.9527 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.542e-05/0.7548, allocations: 26.75 kB / 0.9527 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.756e-05/0.7549, allocations: 39.45 kB / 0.9527 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.813e-05/0.755, allocations: 23.3 kB / 0.9528 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.7551, allocations: 109.5 kB / 0.9529 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002343/0.7553, allocations: 254 kB / 0.9531 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.7554, allocations: 0 / 0.9531 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7554, allocations: 1.25 kB / 0.9531 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.7554, allocations: 4 kB / 0.9531 GB, free: 6.68 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.0005474/0.7559, allocations: 0.5233 MB / 0.9536 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.756, allocations: 11 kB / 0.9536 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.299e-05/0.756, allocations: 48.39 kB / 0.9537 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.114e-05/0.7561, allocations: 22.5 kB / 0.9537 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.238e-05/0.7562, allocations: 179.8 kB / 0.9539 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.7562, allocations: 20.3 kB / 0.9539 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.817e-05/0.7563, allocations: 16.91 kB / 0.9539 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001689/0.7564, allocations: 88.03 kB / 0.954 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.7565, allocations: 9.125 kB / 0.954 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.7565, allocations: 1.219 kB / 0.954 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.7565, allocations: 5.25 kB / 0.954 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.943e-05/0.7566, allocations: 49.56 kB / 0.954 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005733/0.7572, allocations: 499.1 kB / 0.9545 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.7574, allocations: 71.95 kB / 0.9546 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.16e-05/0.7575, allocations: 33.72 kB / 0.9546 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.7575, allocations: 1.25 kB / 0.9546 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.7577, allocations: 124.1 kB / 0.9547 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.7577, allocations: 1.188 kB / 0.9547 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.000337/0.758, allocations: 166.3 kB / 0.9549 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.7581, allocations: 58.91 kB / 0.955 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.7582, allocations: 164.9 kB / 0.9551 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.7582, allocations: 31.2 kB / 0.9551 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.445e-05/0.7583, allocations: 113.7 kB / 0.9553 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.7583, allocations: 23.22 kB / 0.9553 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.7584, allocations: 74.97 kB / 0.9553 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.858e-05/0.7585, allocations: 330.5 kB / 0.9557 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.7587, allocations: 94.39 kB / 0.9558 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.7589, allocations: 149.6 kB / 0.9559 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.7592, allocations: 247.6 kB / 0.9561 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.7592, allocations: 0 / 0.9561 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005711/0.7598, allocations: 405.6 kB / 0.9565 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.875e-05/0.7599, allocations: 105.6 kB / 0.9566 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.7599, allocations: 5.375 kB / 0.9566 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.7599, allocations: 2.75 kB / 0.9566 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.527e-05/0.76, allocations: 12.23 kB / 0.9566 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.76, allocations: 2.75 kB / 0.9566 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005124/0.7605, allocations: 87.81 kB / 0.9567 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.7605, allocations: 27.09 kB / 0.9567 GB, free: 3.527 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.814e-05/0.7607, allocations: 132.1 kB / 0.9569 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.201e-05/0.7607, allocations: 17.25 kB / 0.9569 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.7607, allocations: 11.59 kB / 0.9569 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.7607, allocations: 1.375 kB / 0.9569 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.7607, allocations: 1.375 kB / 0.9569 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.7607, allocations: 3.984 kB / 0.9569 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.7609, allocations: 219.7 kB / 0.9571 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.7609, allocations: 4 kB / 0.9571 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.459e-05/0.7609, allocations: 20.11 kB / 0.9571 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.761, allocations: 1.375 kB / 0.9571 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.761, allocations: 1.375 kB / 0.9571 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.761, allocations: 1.375 kB / 0.9571 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.761, allocations: 0 / 0.9571 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002083/0.7612, allocations: 161 kB / 0.9573 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.268e-05/0.7612, allocations: 96.77 kB / 0.9574 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.7613, allocations: 9.344 kB / 0.9574 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.168e-05/0.7613, allocations: 5.047 kB / 0.9574 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.295e-05/0.7613, allocations: 12.67 kB / 0.9574 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.7614, allocations: 9.328 kB / 0.9574 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.845e-05/0.7614, allocations: 120.7 kB / 0.9575 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7614, allocations: 0 / 0.9575 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002779/0.7617, allocations: 49.34 kB / 0.9576 GB, free: 2.777 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.0004412/0.7622, allocations: 0.7138 MB / 0.9583 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005186/0.7627, allocations: 395.4 kB / 0.9587 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.7627, allocations: 0 / 0.9587 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.802e-05/0.7628, allocations: 51.83 kB / 0.9587 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.7631, allocations: 31.81 kB / 0.9587 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002464/0.7656, allocations: 2.24 MB / 0.9609 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.7658, allocations: 0.7053 MB / 0.9616 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.777e-05/0.7659, allocations: 12.61 kB / 0.9616 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.611e-05/0.766, allocations: 38.95 kB / 0.9617 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of SimCode: time 6.11e-07/0.766, allocations: 4 kB / 0.9617 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02286/0.7888, allocations: 4.173 MB / 0.9657 GB, free: 13.06 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.909/8.698, allocations: 5.391 kB / 0.9658 GB, free: 13.06 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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