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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01112/0.01112, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.002184/0.002184, allocations: 189.7 kB / 16.67 MB, free: 5.977 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.724/2.724, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002327, allocations: 59.91 kB / 1.054 GB, free: 7.652 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3368, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002249/0.3391, allocations: 0.8169 MB / 1.208 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00196/0.3411, allocations: 1.288 MB / 1.209 GB, free: 8.023 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.3412, allocations: 3.938 kB / 1.209 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.103e-05/0.3413, allocations: 15.86 kB / 1.209 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.3414, allocations: 19.8 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000969/0.3424, allocations: 321.3 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000447/0.3429, allocations: 311.5 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.343, allocations: 49.39 kB / 1.21 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.3432, allocations: 115.7 kB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.3434, allocations: 111.7 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.431e-05/0.3435, allocations: 28 kB / 1.21 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.3436, allocations: 39.98 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.3436, allocations: 19.92 kB / 1.21 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.3438, allocations: 111.6 kB / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000328/0.3441, allocations: 259.5 kB / 1.211 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3441, allocations: 0 / 1.211 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.966e-06/0.3441, allocations: 4 kB / 1.211 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.107e-05/0.3442, allocations: 4 kB / 1.211 GB, free: 6.645 MB / 0.9669 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.0007005/0.3449, allocations: 0.5196 MB / 1.211 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 8.135e-05/0.345, allocations: 8.625 kB / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.131e-05/0.345, allocations: 50.67 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.333e-05/0.3451, allocations: 20.84 kB / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.3452, allocations: 190.7 kB / 1.211 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.105e-05/0.3453, allocations: 15.92 kB / 1.211 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/0.3453, allocations: 20 kB / 1.212 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001805/0.3455, allocations: 87.2 kB / 1.212 GB, free: 5.625 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3455, allocations: 7.938 kB / 1.212 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.3455, allocations: 0 / 1.212 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3456, allocations: 4 kB / 1.212 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.3457, allocations: 47.97 kB / 1.212 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007851/0.3465, allocations: 496.2 kB / 1.212 GB, free: 5.031 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.3467, allocations: 70.61 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.519e-05/0.3468, allocations: 28.91 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.275e-05/0.3468, allocations: 4 kB / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/0.3471, allocations: 111.2 kB / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.3471, allocations: 0 / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14): time 0.0003555/0.3474, allocations: 170.3 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.3475, allocations: 67.33 kB / 1.213 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.3477, allocations: 172.3 kB / 1.213 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.3477, allocations: 29.7 kB / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.206e-05/0.3478, allocations: 112 kB / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.328e-05/0.3479, allocations: 31.64 kB / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.348, allocations: 77.66 kB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3482, allocations: 322.8 kB / 1.213 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000266/0.3484, allocations: 95.89 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/0.3487, allocations: 151.5 kB / 1.213 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003202/0.349, allocations: 252.7 kB / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.349, allocations: 0 / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000623/0.3496, allocations: 402.2 kB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.898e-05/0.3497, allocations: 101.1 kB / 1.214 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3497, allocations: 0 / 1.214 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3498, allocations: 4 kB / 1.214 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.271e-05/0.3498, allocations: 12.17 kB / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.3499, allocations: 8 kB / 1.214 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004696/0.3503, allocations: 87.69 kB / 1.214 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.3504, allocations: 15.98 kB / 1.214 GB, free: 2.578 MB / 0.9669 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.0001323/0.3505, allocations: 133.8 kB / 1.214 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.3505, allocations: 15.84 kB / 1.214 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.181e-05/0.3506, allocations: 20.77 kB / 1.215 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3506, allocations: 0 / 1.215 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.3506, allocations: 0 / 1.215 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.3506, allocations: 0 / 1.215 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.3508, allocations: 221.5 kB / 1.215 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3508, allocations: 3.938 kB / 1.215 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.887e-05/0.3509, allocations: 15.94 kB / 1.215 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.3509, allocations: 4 kB / 1.215 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.3509, allocations: 8 kB / 1.215 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3509, allocations: 0 / 1.215 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3509, allocations: 0 / 1.215 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/0.3512, allocations: 155.6 kB / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.3513, allocations: 96.84 kB / 1.215 GB, free: 1.816 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.3513, allocations: 4 kB / 1.215 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.096e-05/0.3514, allocations: 4 kB / 1.215 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.392e-05/0.3514, allocations: 15.97 kB / 1.215 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.3514, allocations: 8 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.598e-05/0.3515, allocations: 121.4 kB / 1.215 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3515, allocations: 0 / 1.215 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002869/0.3518, allocations: 55.94 kB / 1.215 GB, free: 1.613 MB / 0.9669 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.0007308/0.3525, allocations: 0.7104 MB / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005189/0.3531, allocations: 386 kB / 1.216 GB, free: 472 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3531, allocations: 4 kB / 1.216 GB, free: 468 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.951e-05/0.3532, allocations: 43.98 kB / 1.216 GB, free: 424 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.3535, allocations: 29.22 kB / 1.216 GB, free: 396 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/0.3565, allocations: 2.242 MB / 1.219 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.3568, allocations: 0.7122 MB / 1.219 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.254e-05/0.3568, allocations: 16.58 kB / 1.219 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.554e-05/0.3569, allocations: 35.44 kB / 1.219 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.3569, allocations: 4 kB / 1.219 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.3799, allocations: 4.321 MB / 1.223 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.007/8.387, allocations: 17.73 kB / 1.223 GB, free: 9.008 MB / 0.9825 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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