Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.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.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_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.00108/0.00108, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00109/0.00109, allocations: 193.4 kB / 16.14 MB, free: 6.645 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.253/1.253, allocations: 222.9 MB / 239.8 MB, free: 4.59 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.293/2.293, allocations: 437 MB / 0.71 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 71.89 kB / 0.8687 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6227/0.6241, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002097/0.6262, allocations: 0.7733 MB / 1.017 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001691/0.6279, allocations: 1.292 MB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.933e-05/0.628, allocations: 0 / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.232e-05/0.6281, allocations: 7.922 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.081e-05/0.6282, allocations: 11.92 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007671/0.6289, allocations: 293.5 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002019/0.6291, allocations: 227.5 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.6293, allocations: 20.14 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.6294, allocations: 83.88 kB / 1.019 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.6295, allocations: 75.77 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 6.015e-05/0.6296, allocations: 12.05 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.311e-05/0.6296, allocations: 27.94 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.278e-05/0.6297, allocations: 11.92 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.6298, allocations: 75.8 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002393/0.63, allocations: 217.7 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.63, allocations: 0 / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.71e-07/0.63, allocations: 0 / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.6301, allocations: 0 / 1.02 GB, free: 15.67 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005529/0.6306, allocations: 496.2 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.6307, allocations: 15.97 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.016e-05/0.6307, allocations: 30.75 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.259e-05/0.6308, allocations: 16.84 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.6309, allocations: 180.2 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.6309, allocations: 12.38 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/0.631, allocations: 12.38 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.6311, allocations: 61.98 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.6311, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.6311, allocations: 3.984 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.6311, allocations: 3.938 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.956e-05/0.6312, allocations: 20 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005012/0.6317, allocations: 416.5 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.894e-05/0.6318, allocations: 30.58 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.049e-05/0.6318, allocations: 28.86 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.255e-06/0.6318, allocations: 0 / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000176/0.632, allocations: 107.3 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.632, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0002887/0.6323, allocations: 141.5 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.6323, allocations: 51.41 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.6324, allocations: 135.7 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.6325, allocations: 29.7 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.106e-05/0.6326, allocations: 104 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.6326, allocations: 15.81 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.6327, allocations: 65.67 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.6328, allocations: 326.8 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.633, allocations: 91.89 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.6332, allocations: 139.8 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.6335, allocations: 232.2 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.6335, allocations: 4 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005481/0.634, allocations: 374.4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.148e-05/0.6341, allocations: 101.1 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.6341, allocations: 8.547 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.6341, allocations: 4 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.1e-05/0.6342, allocations: 4 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.6342, allocations: 4 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004841/0.6347, allocations: 87.67 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.753e-05/0.6347, allocations: 23.92 kB / 1.023 GB, free: 12.02 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: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.000111/0.6348, allocations: 138.2 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.568e-05/0.6349, allocations: 7.906 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.982e-05/0.6349, allocations: 8.375 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.6349, allocations: 4 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.6349, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.6349, allocations: 3.984 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.6351, allocations: 185.6 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.6351, allocations: 4 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.167e-06/0.6351, allocations: 4 kB / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.6351, allocations: 4 kB / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.6351, allocations: 3.984 kB / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.6351, allocations: 0 / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.6351, allocations: 3.938 kB / 1.023 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001677/0.6353, allocations: 137 kB / 1.023 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.344e-05/0.6353, allocations: 89 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.6354, allocations: 0 / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.18e-05/0.6354, allocations: 7.938 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.6354, allocations: 11.98 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.6354, allocations: 4 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.413e-05/0.6355, allocations: 100.7 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6355, allocations: 0 / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002422/0.6358, allocations: 40 kB / 1.024 GB, free: 11.18 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.000466/0.6362, allocations: 0.6904 MB / 1.024 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004184/0.6366, allocations: 362 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6367, allocations: 0 / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.902e-05/0.6367, allocations: 35.98 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.637, allocations: 30.38 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.6392, allocations: 2.07 MB / 1.027 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.6395, allocations: 0.6926 MB / 1.028 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.133e-05/0.6395, allocations: 12.42 kB / 1.028 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.198e-05/0.6395, allocations: 23.44 kB / 1.028 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.6396, allocations: 0 / 1.028 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01483/0.6544, allocations: 3.56 MB / 1.031 GB, free: 3.617 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/0.6546, allocations: 210.1 kB / 1.031 GB, free: 3.355 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/2.287, allocations: 0 / 1.031 GB, free: 3.355 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches