Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_10_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.001072/0.001072, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001161/0.001161, allocations: 194.7 kB / 16.26 MB, free: 6.637 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.363/1.363, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.486/2.486, allocations: 437 MB / 0.7101 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 67.88 kB / 0.8689 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6502/0.6516, allocations: 151.6 MB / 1.017 GB, free: 2.664 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001871/0.6535, allocations: 0.9014 MB / 1.018 GB, free: 1.758 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001425/0.6549, allocations: 1.292 MB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.022e-05/0.655, allocations: 0 / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.825e-05/0.655, allocations: 7.875 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.471e-05/0.6551, allocations: 19.8 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006921/0.6558, allocations: 282.8 kB / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003039/0.6561, allocations: 311.5 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.6563, allocations: 57.33 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.6564, allocations: 115.7 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.6565, allocations: 91.7 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.377e-05/0.6566, allocations: 28 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.361e-05/0.6567, allocations: 39.98 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.926e-05/0.6567, allocations: 27.84 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.817e-05/0.6568, allocations: 99.69 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.6571, allocations: 253.6 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.6571, allocations: 4 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6571, allocations: 4 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.6571, allocations: 0 / 1.02 GB, free: 15.14 MB / 0.7794 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.0005769/0.6577, allocations: 0.5312 MB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.6577, allocations: 8.031 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.417e-05/0.6578, allocations: 42.73 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.947e-05/0.6578, allocations: 20.75 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.6579, allocations: 183.4 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.658, allocations: 16.12 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/0.658, allocations: 23.98 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000152/0.6582, allocations: 89.59 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.6582, allocations: 0 / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.6582, allocations: 8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.6582, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.372e-05/0.6583, allocations: 49.8 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000613/0.659, allocations: 0.4885 MB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.6592, allocations: 74.48 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.909e-05/0.6592, allocations: 28.98 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.644e-06/0.6592, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001764/0.6594, allocations: 127.2 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.6594, allocations: 3.938 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003018/0.6597, allocations: 162.7 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.6598, allocations: 55.41 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.6599, allocations: 168.3 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.017e-05/0.66, allocations: 33.7 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.432e-05/0.6601, allocations: 112 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.6601, allocations: 23.62 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.6602, allocations: 81.66 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.6603, allocations: 326.8 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.6605, allocations: 95.89 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.6607, allocations: 143.3 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.661, allocations: 257.2 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.661, allocations: 0 / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005776/0.6616, allocations: 406.4 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.679e-05/0.6617, allocations: 97.09 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.6617, allocations: 3.938 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.6617, allocations: 4 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.21e-05/0.6618, allocations: 11.98 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.6618, allocations: 4 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004728/0.6623, allocations: 87.84 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.6623, allocations: 19.98 kB / 1.024 GB, free: 11.07 MB / 0.7794 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.0001202/0.6624, allocations: 142.3 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.013e-05/0.6625, allocations: 15.75 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.051e-05/0.6625, allocations: 12.84 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.6625, allocations: 0 / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.6625, allocations: 4 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.6625, allocations: 7.938 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.6627, allocations: 217.5 kB / 1.024 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6627, allocations: 0 / 1.024 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.409e-05/0.6628, allocations: 11.94 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.6628, allocations: 4 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.6628, allocations: 3.984 kB / 1.024 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.6628, allocations: 0 / 1.024 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6628, allocations: 3.938 kB / 1.024 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.663, allocations: 172.8 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.839e-05/0.663, allocations: 88.95 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.6631, allocations: 8 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.926e-05/0.6631, allocations: 3.938 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.359e-05/0.6631, allocations: 11.98 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.6632, allocations: 11.98 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.099e-05/0.6632, allocations: 114.5 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6632, allocations: 0 / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002456/0.6635, allocations: 51.98 kB / 1.025 GB, free: 10.11 MB / 0.7794 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.0004741/0.664, allocations: 0.7137 MB / 1.026 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000453/0.6644, allocations: 394 kB / 1.026 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.6644, allocations: 0 / 1.026 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.413e-05/0.6645, allocations: 52.3 kB / 1.026 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.6648, allocations: 23.98 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.6671, allocations: 2.264 MB / 1.028 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.6673, allocations: 0.7084 MB / 1.029 GB, free: 5.742 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.753e-05/0.6674, allocations: 16.64 kB / 1.029 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.901e-05/0.6674, allocations: 39.42 kB / 1.029 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.6674, allocations: 0 / 1.029 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8338/1.501, allocations: 4.086 MB / 1.033 GB, free: 1.746 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/1.501, allocations: 200.1 kB / 1.033 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/3.591, allocations: 0 / 1.033 GB, free: 1.496 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches