Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_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.009954/0.009954, allocations: 101.9 kB / 15.73 MB, free: 6 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.002004/0.002004, allocations: 196 kB / 16.67 MB, free: 5.926 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.594/2.594, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 67.91 kB / 1.054 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9836/0.9851, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00239/0.9876, allocations: 0.6931 MB / 1.208 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001845/0.9894, allocations: 1.264 MB / 1.209 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.912e-05/0.9895, allocations: 0 / 1.209 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.883e-05/0.9896, allocations: 3.938 kB / 1.209 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.946e-05/0.9898, allocations: 23.78 kB / 1.209 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.9908, allocations: 321.4 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004094/0.9912, allocations: 275.5 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.9913, allocations: 16.17 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.9915, allocations: 99.84 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002068/0.9917, allocations: 95.73 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.487e-05/0.9918, allocations: 24 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.9919, allocations: 39.92 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.387e-05/0.9919, allocations: 19.88 kB / 1.21 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.9921, allocations: 83.8 kB / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002998/0.9924, allocations: 213.7 kB / 1.21 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.9924, allocations: 4 kB / 1.21 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.413e-06/0.9924, allocations: 0 / 1.21 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.273e-06/0.9924, allocations: 0 / 1.21 GB, free: 10.39 MB / 0.9356 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.0007099/0.9931, allocations: 492.3 kB / 1.211 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.9932, allocations: 11.97 kB / 1.211 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.379e-05/0.9932, allocations: 38.75 kB / 1.211 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.9933, allocations: 12.84 kB / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.9935, allocations: 182.3 kB / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.9935, allocations: 12.36 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.9935, allocations: 16.38 kB / 1.211 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.9937, allocations: 61.92 kB / 1.211 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.9937, allocations: 0 / 1.211 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.9937, allocations: 4 kB / 1.211 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.9937, allocations: 0 / 1.211 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.72e-05/0.9938, allocations: 19.98 kB / 1.211 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005977/0.9944, allocations: 416.5 kB / 1.212 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.105e-05/0.9945, allocations: 34.52 kB / 1.212 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.963e-05/0.9946, allocations: 20.94 kB / 1.212 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.155e-06/0.9946, allocations: 0 / 1.212 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000234/0.9948, allocations: 99.41 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 3.857e-06/0.9948, allocations: 0 / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0003231/0.9952, allocations: 141.5 kB / 1.212 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.9952, allocations: 59.34 kB / 1.212 GB, free: 8.598 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.9953, allocations: 137.7 kB / 1.212 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.052e-05/0.9954, allocations: 33.7 kB / 1.212 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.253e-05/0.9955, allocations: 92.52 kB / 1.212 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/0.9955, allocations: 23.7 kB / 1.212 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.9956, allocations: 65.67 kB / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.9958, allocations: 326.8 kB / 1.213 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.996, allocations: 95.84 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.9962, allocations: 134 kB / 1.213 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/0.9965, allocations: 239 kB / 1.213 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.9965, allocations: 0 / 1.213 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000622/0.9971, allocations: 378.5 kB / 1.213 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.927e-05/0.9972, allocations: 99.44 kB / 1.213 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.9972, allocations: 192 / 1.213 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.9972, allocations: 8 kB / 1.213 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.676e-05/0.9973, allocations: 4 kB / 1.213 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.9973, allocations: 7.922 kB / 1.213 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000522/0.9978, allocations: 79.84 kB / 1.214 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.9979, allocations: 23.92 kB / 1.214 GB, free: 6.75 MB / 0.9356 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.0001329/0.998, allocations: 136.2 kB / 1.214 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/0.998, allocations: 7.906 kB / 1.214 GB, free: 6.602 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.275e-05/0.9981, allocations: 8.375 kB / 1.214 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.9981, allocations: 3.984 kB / 1.214 GB, free: 6.586 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.9981, allocations: 0 / 1.214 GB, free: 6.586 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.9981, allocations: 4 kB / 1.214 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.9983, allocations: 193.5 kB / 1.214 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.9983, allocations: 0 / 1.214 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.613e-05/0.9983, allocations: 11.92 kB / 1.214 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.9983, allocations: 0 / 1.214 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.9983, allocations: 8 kB / 1.214 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.9983, allocations: 0 / 1.214 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.9983, allocations: 0 / 1.214 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001814/0.9985, allocations: 136.9 kB / 1.214 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.933e-05/0.9986, allocations: 88.98 kB / 1.214 GB, free: 6.066 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.9986, allocations: 8 kB / 1.214 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.584e-05/0.9987, allocations: 4 kB / 1.214 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.4e-05/0.9987, allocations: 7.984 kB / 1.214 GB, free: 6.047 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.9987, allocations: 8 kB / 1.214 GB, free: 6.039 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.31e-05/0.9988, allocations: 97.94 kB / 1.214 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9988, allocations: 0 / 1.214 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002761/0.9991, allocations: 44 kB / 1.214 GB, free: 5.902 MB / 0.9356 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.0005099/0.9996, allocations: 0.6917 MB / 1.215 GB, free: 5.184 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004645/1, allocations: 362 kB / 1.215 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1, allocations: 0 / 1.215 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 6.201e-05/1, allocations: 36 kB / 1.215 GB, free: 4.758 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/1, allocations: 28.28 kB / 1.215 GB, free: 4.73 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/1.003, allocations: 2.055 MB / 1.217 GB, free: 2.535 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/1.003, allocations: 0.6962 MB / 1.218 GB, free: 1.812 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.622e-05/1.003, allocations: 8.422 kB / 1.218 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.113e-05/1.003, allocations: 27.44 kB / 1.218 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of SimCode: time 2.094e-06/1.003, allocations: 0 / 1.218 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/1.026, allocations: 3.908 MB / 1.222 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.519/8.545, allocations: 16.66 kB / 1.222 GB, free: 13.98 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches