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.005268/0.005268, allocations: 100.1 kB / 15.73 MB, free: 6.004 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.001455/0.001455, allocations: 193.3 kB / 16.67 MB, free: 5.93 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.148 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 2.658/2.658, allocations: 469.8 MB / 0.7425 GB, free: 7.277 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 67.89 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.301, allocations: 159.1 MB / 1.22 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001701/0.3028, allocations: 0.7112 MB / 1.221 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.3042, allocations: 1.258 MB / 1.222 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.471e-05/0.3043, allocations: 0 / 1.222 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.832e-05/0.3043, allocations: 7.875 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.116e-05/0.3044, allocations: 15.86 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007021/0.3051, allocations: 310.8 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003165/0.3054, allocations: 275.6 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.795e-05/0.3055, allocations: 16.19 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.3056, allocations: 103.8 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.3058, allocations: 95.73 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.38e-05/0.3058, allocations: 20 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.815e-05/0.3059, allocations: 35.98 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.213e-05/0.306, allocations: 15.94 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3061, allocations: 79.8 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.3063, allocations: 219.4 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3063, allocations: 11.94 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3064, allocations: 0 / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.456e-06/0.3064, allocations: 0 / 1.223 GB, free: 11.1 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.0005415/0.3069, allocations: 496.2 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.3069, allocations: 16.02 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.307, allocations: 34.69 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.401e-05/0.307, allocations: 16.89 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.3072, allocations: 172.3 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.3072, allocations: 16.36 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.3072, allocations: 16.38 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001136/0.3074, allocations: 57.98 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.3074, allocations: 0 / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.3074, allocations: 0 / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.3074, allocations: 4 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.867e-05/0.3075, allocations: 19.98 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005043/0.308, allocations: 416.5 kB / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.41e-05/0.308, allocations: 34.56 kB / 1.224 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.597e-05/0.3081, allocations: 24.94 kB / 1.225 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.3081, allocations: 3.938 kB / 1.225 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001737/0.3083, allocations: 107.3 kB / 1.225 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.3083, allocations: 0 / 1.225 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0002792/0.3086, allocations: 133.6 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3086, allocations: 55.39 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.3087, allocations: 143.7 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.886e-05/0.3088, allocations: 37.7 kB / 1.225 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.129e-05/0.3089, allocations: 88.14 kB / 1.225 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.558e-05/0.3089, allocations: 27.91 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.309, allocations: 69.67 kB / 1.225 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3091, allocations: 318.8 kB / 1.225 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.3094, allocations: 91.94 kB / 1.226 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.3096, allocations: 141.9 kB / 1.226 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002826/0.3099, allocations: 238.7 kB / 1.226 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3099, allocations: 0 / 1.226 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005781/0.3105, allocations: 370.5 kB / 1.226 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.637e-05/0.3105, allocations: 105 kB / 1.226 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3106, allocations: 4 kB / 1.226 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.3106, allocations: 3.938 kB / 1.226 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-05/0.3106, allocations: 4 kB / 1.226 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.3106, allocations: 12.17 kB / 1.226 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004409/0.3111, allocations: 83.8 kB / 1.226 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/0.3111, allocations: 15.98 kB / 1.226 GB, free: 7.449 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.0001209/0.3112, allocations: 137.7 kB / 1.227 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.3112, allocations: 7.953 kB / 1.227 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.364e-05/0.3113, allocations: 8.375 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3113, allocations: 4 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3113, allocations: 0 / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3113, allocations: 4.359 kB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.3115, allocations: 189.6 kB / 1.227 GB, free: 7.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3115, allocations: 3.984 kB / 1.227 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.068e-05/0.3115, allocations: 4 kB / 1.227 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.3115, allocations: 3.938 kB / 1.227 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.3115, allocations: 3.984 kB / 1.227 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3115, allocations: 4 kB / 1.227 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3115, allocations: 0 / 1.227 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001859/0.3117, allocations: 144.9 kB / 1.227 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.882e-05/0.3118, allocations: 89.05 kB / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.3118, allocations: 0 / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.006e-05/0.3118, allocations: 0 / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.977e-05/0.3118, allocations: 11.98 kB / 1.227 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-06/0.3119, allocations: 8 kB / 1.227 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.521e-05/0.3119, allocations: 103.3 kB / 1.227 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3119, allocations: 0 / 1.227 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002397/0.3122, allocations: 43.94 kB / 1.227 GB, free: 6.594 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.0005076/0.3127, allocations: 0.6831 MB / 1.228 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004546/0.3132, allocations: 362.1 kB / 1.228 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3132, allocations: 0 / 1.228 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.21e-05/0.3132, allocations: 39.92 kB / 1.228 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.3135, allocations: 35.92 kB / 1.228 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.3159, allocations: 2.076 MB / 1.23 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.3162, allocations: 0.6924 MB / 1.231 GB, free: 2.488 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.734e-05/0.3162, allocations: 4.438 kB / 1.231 GB, free: 2.484 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.963e-05/0.3163, allocations: 27.42 kB / 1.231 GB, free: 2.457 MB / 0.9825 GB Notification: Performance of SimCode: time 2.11e-07/0.3163, allocations: 0 / 1.231 GB, free: 2.457 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3403/0.6565, allocations: 3.827 MB / 1.235 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.615/9.272, allocations: 4.062 kB / 1.235 GB, free: 14.74 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 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.mat","/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