Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_11_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.008117/0.008117, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.002148/0.002148, allocations: 195.2 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.057/3.057, allocations: 469.8 MB / 0.7425 GB, free: 7.289 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 63.91 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3561, allocations: 159.1 MB / 1.22 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00203/0.3582, allocations: 0.6996 MB / 1.221 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00168/0.3599, allocations: 1.258 MB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.659e-05/0.36, allocations: 0 / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.315e-05/0.36, allocations: 3.938 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.55e-05/0.3601, allocations: 19.8 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008746/0.361, allocations: 318.9 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.3613, allocations: 271.5 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.3615, allocations: 20.17 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.3616, allocations: 95.86 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001805/0.3618, allocations: 95.67 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.397e-05/0.3618, allocations: 24 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.362, allocations: 39.92 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.052e-05/0.362, allocations: 15.92 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.3621, allocations: 83.8 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002975/0.3624, allocations: 215.4 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.834e-06/0.3624, allocations: 7.922 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3624, allocations: 0 / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.3625, allocations: 4 kB / 1.223 GB, free: 11.09 MB / 0.9825 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.0006557/0.3631, allocations: 496.2 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.3632, allocations: 12.03 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.587e-05/0.3632, allocations: 34.75 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.304e-05/0.3633, allocations: 20.89 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.3634, allocations: 182.6 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.3635, allocations: 4.375 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.063e-05/0.3635, allocations: 16.38 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001287/0.3636, allocations: 61.92 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.3637, allocations: 4 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-06/0.3637, allocations: 0 / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.3637, allocations: 7.984 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.09e-05/0.3638, allocations: 16 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005879/0.3644, allocations: 416.5 kB / 1.224 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.28e-05/0.3644, allocations: 30.52 kB / 1.225 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.195e-05/0.3645, allocations: 24.92 kB / 1.225 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.3645, allocations: 4 kB / 1.225 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.3647, allocations: 99.34 kB / 1.225 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 4.168e-06/0.3647, allocations: 0 / 1.225 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0003085/0.365, allocations: 141.5 kB / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.3651, allocations: 59.41 kB / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.3652, allocations: 137.7 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.113e-05/0.3652, allocations: 37.7 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.381e-05/0.3653, allocations: 96.12 kB / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.3654, allocations: 19.86 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.3655, allocations: 65.67 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.3656, allocations: 326.8 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.3658, allocations: 83.95 kB / 1.226 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.3661, allocations: 142 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.3664, allocations: 234.2 kB / 1.226 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3664, allocations: 8 kB / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006205/0.367, allocations: 378.5 kB / 1.226 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.061e-05/0.3671, allocations: 101 kB / 1.226 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.3671, allocations: 4 kB / 1.226 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.3671, allocations: 3.984 kB / 1.226 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.471e-05/0.3671, allocations: 4 kB / 1.226 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.3672, allocations: 7.938 kB / 1.226 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.3677, allocations: 83.98 kB / 1.226 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.3677, allocations: 19.98 kB / 1.226 GB, free: 7.43 MB / 0.9825 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.0001361/0.3679, allocations: 132 kB / 1.227 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.932e-05/0.3679, allocations: 11.94 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.017e-05/0.3679, allocations: 12.38 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3679, allocations: 4 kB / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3679, allocations: 0 / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3679, allocations: 0 / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.3681, allocations: 189.6 kB / 1.227 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3681, allocations: 0 / 1.227 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.366e-05/0.3681, allocations: 7.938 kB / 1.227 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.3682, allocations: 4 kB / 1.227 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.3682, allocations: 0 / 1.227 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3682, allocations: 0 / 1.227 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3682, allocations: 0 / 1.227 GB, free: 7.016 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/0.3684, allocations: 153.2 kB / 1.227 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.955e-05/0.3685, allocations: 85.16 kB / 1.227 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.3685, allocations: 3.938 kB / 1.227 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.432e-05/0.3685, allocations: 4 kB / 1.227 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.021e-05/0.3686, allocations: 7.984 kB / 1.227 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/0.3686, allocations: 4 kB / 1.227 GB, free: 6.727 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.695e-05/0.3686, allocations: 101.7 kB / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3687, allocations: 4 kB / 1.227 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002645/0.3689, allocations: 51.92 kB / 1.227 GB, free: 6.574 MB / 0.9825 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.0005549/0.3695, allocations: 0.6753 MB / 1.228 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004986/0.37, allocations: 366.2 kB / 1.228 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.37, allocations: 0 / 1.228 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.098e-05/0.3701, allocations: 39.97 kB / 1.228 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.3703, allocations: 25.98 kB / 1.228 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002577/0.3729, allocations: 2.069 MB / 1.23 GB, free: 3.203 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.3733, allocations: 0.6962 MB / 1.231 GB, free: 2.48 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.06e-05/0.3733, allocations: 12.42 kB / 1.231 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.156e-05/0.3734, allocations: 23.44 kB / 1.231 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.3734, allocations: 0 / 1.231 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02845/0.4018, allocations: 3.833 MB / 1.235 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.297/8.699, allocations: 7.359 kB / 1.235 GB, free: 14.73 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Logical.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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches