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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001242/0.001243, 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.001286/0.001286, allocations: 197.8 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.262/1.262, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.379/2.379, allocations: 437 MB / 0.7099 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 67.89 kB / 0.8687 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6106/0.612, allocations: 151.6 MB / 1.017 GB, free: 2.746 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002101/0.6141, allocations: 0.8898 MB / 1.018 GB, free: 1.852 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.6156, allocations: 1.323 MB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.871e-05/0.6157, allocations: 0 / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.884e-05/0.6158, allocations: 11.92 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.564e-05/0.6159, allocations: 15.86 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006917/0.6166, allocations: 302.2 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000238/0.6168, allocations: 255.5 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.6169, allocations: 49.27 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.6171, allocations: 103.8 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.6172, allocations: 91.69 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.852e-05/0.6172, allocations: 12 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.241e-05/0.6173, allocations: 39.92 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.6174, allocations: 19.86 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.6175, allocations: 91.67 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002469/0.6177, allocations: 257.5 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.6177, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.01e-07/0.6177, allocations: 0 / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.109e-06/0.6177, allocations: 0 / 1.02 GB, free: 15.3 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.0005463/0.6183, allocations: 0.5236 MB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.6183, allocations: 8.031 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.136e-05/0.6184, allocations: 38.75 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.6184, allocations: 28.73 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.448e-05/0.6185, allocations: 179.8 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.6186, allocations: 16.12 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.6186, allocations: 20 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.6188, allocations: 89.58 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.38e-06/0.6188, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.6188, allocations: 4 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.6188, allocations: 4 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.15e-05/0.6189, allocations: 47.97 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005648/0.6195, allocations: 0.4884 MB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.6197, allocations: 74.59 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.885e-05/0.6197, allocations: 24.92 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.6198, allocations: 8 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001974/0.62, allocations: 123.1 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.62, allocations: 4 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003023/0.6203, allocations: 157.6 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/0.6203, allocations: 59.34 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.6204, allocations: 168.3 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.496e-05/0.6205, allocations: 33.7 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.291e-05/0.6206, allocations: 120 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.6206, allocations: 27.61 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.6207, allocations: 69.67 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.415e-05/0.6208, allocations: 326.8 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.621, allocations: 95.94 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.6212, allocations: 142 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002917/0.6215, allocations: 258.7 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.6215, allocations: 4 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005928/0.6221, allocations: 398.3 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.957e-05/0.6222, allocations: 97.09 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.6222, allocations: 0 / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.6222, allocations: 4 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.208e-05/0.6223, allocations: 15.94 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.6223, allocations: 7.984 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004888/0.6228, allocations: 91.88 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.972e-05/0.6228, allocations: 19.98 kB / 1.024 GB, free: 11.23 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.0001105/0.623, allocations: 134.4 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.162e-05/0.623, allocations: 19.73 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.623, allocations: 20.84 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.623, allocations: 0 / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.623, allocations: 0 / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.623, allocations: 0 / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.6232, allocations: 221.5 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.6232, allocations: 3.938 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.315e-05/0.6233, allocations: 11.94 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.6233, allocations: 0 / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.6233, allocations: 8 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.6233, allocations: 7.922 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.6233, allocations: 0 / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001924/0.6235, allocations: 162 kB / 1.024 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.121e-05/0.6235, allocations: 92.94 kB / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.6236, allocations: 0 / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.136e-05/0.6236, allocations: 8 kB / 1.024 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.006e-05/0.6236, allocations: 11.92 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/0.6236, allocations: 4 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.207e-05/0.6237, allocations: 118.5 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6237, allocations: 4 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002584/0.624, allocations: 55.89 kB / 1.025 GB, free: 10.28 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.0004735/0.6245, allocations: 0.6983 MB / 1.025 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004753/0.625, allocations: 392.2 kB / 1.026 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.625, allocations: 0 / 1.026 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.771e-05/0.625, allocations: 55.91 kB / 1.026 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.6253, allocations: 27.84 kB / 1.026 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/0.6277, allocations: 2.26 MB / 1.028 GB, free: 6.66 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.628, allocations: 0.7126 MB / 1.029 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.218e-05/0.628, allocations: 12.64 kB / 1.029 GB, free: 5.91 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.695e-05/0.6281, allocations: 35.44 kB / 1.029 GB, free: 5.875 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.6281, allocations: 0 / 1.029 GB, free: 5.875 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01256/0.6406, allocations: 3.938 MB / 1.033 GB, free: 2.062 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002068/0.6409, allocations: 210.1 kB / 1.033 GB, free: 1.801 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/2.209, allocations: 0 / 1.033 GB, free: 1.801 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