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.001143/0.001143, allocations: 108 kB / 15.61 MB, free: 152 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.001299/0.001299, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.482/2.482, allocations: 437 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 63.91 kB / 0.8694 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6043/0.6057, allocations: 151.6 MB / 1.017 GB, free: 2.629 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002155/0.6078, allocations: 0.825 MB / 1.018 GB, free: 1.797 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.6093, allocations: 1.296 MB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.576e-05/0.6093, allocations: 4 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.194e-05/0.6094, allocations: 11.81 kB / 1.02 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.431e-05/0.6095, allocations: 19.78 kB / 1.02 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007403/0.6102, allocations: 318.1 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002806/0.6105, allocations: 303.5 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.6106, allocations: 49.34 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.6108, allocations: 115.7 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.6109, allocations: 95.69 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.952e-05/0.6109, allocations: 28 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.479e-05/0.611, allocations: 39.98 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.665e-05/0.6111, allocations: 23.86 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.6112, allocations: 103.7 kB / 1.021 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.6115, allocations: 261.6 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.6115, allocations: 4 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.493e-06/0.6115, allocations: 0 / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.018e-05/0.6115, allocations: 0 / 1.021 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.0005861/0.6121, allocations: 0.5292 MB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.6121, allocations: 12.03 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.632e-05/0.6122, allocations: 42.73 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.792e-05/0.6123, allocations: 20.75 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.6124, allocations: 177.7 kB / 1.022 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.6124, allocations: 24.11 kB / 1.022 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.266e-05/0.6125, allocations: 23.98 kB / 1.022 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.6126, allocations: 85.66 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.6126, allocations: 0 / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.6126, allocations: 4 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.6127, allocations: 4 kB / 1.022 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.331e-05/0.6128, allocations: 43.97 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000598/0.6134, allocations: 0.4923 MB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.6136, allocations: 74.55 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.079e-05/0.6136, allocations: 28.91 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.6136, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001564/0.6138, allocations: 115.2 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/0.6138, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003133/0.6141, allocations: 173.5 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.6142, allocations: 55.39 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.6143, allocations: 171.1 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.827e-05/0.6144, allocations: 29.7 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.739e-05/0.6145, allocations: 116 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.6145, allocations: 23.62 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.6146, allocations: 85.59 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.852e-05/0.6147, allocations: 330.8 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.6149, allocations: 87.95 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.6151, allocations: 145.9 kB / 1.024 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/0.6154, allocations: 252.5 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.6154, allocations: 4 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005689/0.616, allocations: 407.3 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.577e-05/0.616, allocations: 93.09 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.6161, allocations: 4 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.6161, allocations: 4 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.394e-05/0.6161, allocations: 15.92 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.6161, allocations: 0 / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004929/0.6166, allocations: 91.88 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.6167, 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.0001061/0.6168, allocations: 137.8 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.909e-05/0.6168, allocations: 15.75 kB / 1.025 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.009e-05/0.6169, allocations: 12.84 kB / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.6169, allocations: 0 / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.6169, allocations: 0 / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.6169, allocations: 7.984 kB / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001539/0.617, allocations: 221.5 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6171, allocations: 0 / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.145e-05/0.6171, allocations: 11.94 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.6171, allocations: 0 / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.6171, allocations: 7.984 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.6171, allocations: 0 / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.6171, allocations: 0 / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000195/0.6173, allocations: 164.7 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.053e-05/0.6174, allocations: 92.95 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.6174, allocations: 7.938 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.114e-05/0.6174, allocations: 4 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.6175, allocations: 11.98 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.447e-06/0.6175, allocations: 7.984 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.628e-05/0.6176, allocations: 111.3 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6176, allocations: 0 / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002579/0.6178, allocations: 55.98 kB / 1.025 GB, free: 10.13 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.0004857/0.6183, allocations: 0.7175 MB / 1.026 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004475/0.6188, allocations: 394 kB / 1.026 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.6188, allocations: 0 / 1.026 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.427e-05/0.6189, allocations: 48.36 kB / 1.026 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.6191, allocations: 25.88 kB / 1.026 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.6215, allocations: 2.236 MB / 1.029 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.6218, allocations: 0.7083 MB / 1.029 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.589e-05/0.6218, allocations: 16.64 kB / 1.029 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.882e-05/0.6219, allocations: 43.36 kB / 1.029 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.6219, allocations: 0 / 1.029 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.6425, allocations: 4.177 MB / 1.033 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.029/7.672, allocations: 9.578 kB / 1.033 GB, free: 1.645 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 & python3 -m fmpy simulate --output-file Buildings_10_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_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.csv","/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