Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.And,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u1|and1.u2|and1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.And,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u1|and1.u2|and1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008338/0.0008339, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.005782/0.005782, allocations: 171 kB / 16.26 MB, free: 6.613 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.507/1.507, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.023/3.023, allocations: 462.6 MB / 0.7364 GB, free: 268 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003936/0.0003936, allocations: 8.938 kB / 0.9028 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.399, allocations: 159.6 MB / 1.059 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.0009358/0.4, allocations: 385.7 kB / 1.059 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001778/0.4018, allocations: 1.217 MB / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.184e-05/0.4019, allocations: 0 / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.385e-05/0.4019, allocations: 7.922 kB / 1.06 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.445e-05/0.402, allocations: 7.922 kB / 1.06 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006604/0.4027, allocations: 197.5 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001728/0.4028, allocations: 155.7 kB / 1.061 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.403, allocations: 8 kB / 1.061 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.002e-05/0.4031, allocations: 59.89 kB / 1.061 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.4032, allocations: 43.86 kB / 1.061 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.856e-05/0.4032, allocations: 8 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.392e-05/0.4033, allocations: 27.92 kB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.913e-05/0.4033, allocations: 4 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.4034, allocations: 77.52 kB / 1.061 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.4037, allocations: 147.6 kB / 1.061 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4037, allocations: 0 / 1.061 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.254e-06/0.4037, allocations: 3.938 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.4037, allocations: 0 / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004682/0.4042, allocations: 415.9 kB / 1.061 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.4042, allocations: 8.031 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.797e-05/0.4043, allocations: 8.938 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.4044, allocations: 172.3 kB / 1.062 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.4044, allocations: 4.375 kB / 1.062 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.4045, allocations: 8.375 kB / 1.062 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.4046, allocations: 54.23 kB / 1.062 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.4046, allocations: 4.125 kB / 1.062 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.4046, allocations: 7.938 kB / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.4047, allocations: 4 kB / 1.062 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.278e-05/0.4047, allocations: 15.98 kB / 1.062 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004672/0.4052, allocations: 348.8 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.167e-05/0.4053, allocations: 38.52 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.165e-05/0.4053, allocations: 20.88 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.4053, allocations: 0 / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001364/0.4055, allocations: 83.28 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.4055, allocations: 0 / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002359/0.4057, allocations: 101.6 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.4058, allocations: 59.34 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.848e-05/0.4059, allocations: 125.7 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.4059, allocations: 33.7 kB / 1.062 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.002e-05/0.406, allocations: 84.14 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.406, allocations: 15.81 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.633e-05/0.4061, allocations: 25.7 kB / 1.063 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.4062, allocations: 318.8 kB / 1.063 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.4063, allocations: 63.95 kB / 1.063 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.4065, allocations: 92.02 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.4066, allocations: 159.6 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.4067, allocations: 4 kB / 1.063 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004113/0.4071, allocations: 264.8 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.048e-05/0.4071, allocations: 67.39 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.4071, allocations: 4 kB / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.4072, allocations: 3.938 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.292e-05/0.4072, allocations: 7.938 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.4072, allocations: 0 / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.4076, allocations: 72.06 kB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.4076, allocations: 15.98 kB / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,and1.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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001057/0.4078, allocations: 133.5 kB / 1.064 GB, free: 20 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.324e-05/0.4078, allocations: 7.906 kB / 1.064 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/0.4078, allocations: 12.36 kB / 1.064 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.4078, allocations: 0 / 1.064 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4079, allocations: 4.047 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.4079, allocations: 3.984 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001271/0.408, allocations: 177.5 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.408, allocations: 0 / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.096e-05/0.408, allocations: 7.922 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.408, allocations: 0 / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.408, allocations: 0 / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.408, allocations: 8 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.408, allocations: 0 / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001339/0.4082, allocations: 109 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.833e-05/0.4082, allocations: 81.11 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.4083, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.058e-05/0.4083, allocations: 4 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/0.4083, allocations: 7.984 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-06/0.4083, allocations: 8.062 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.598e-05/0.4084, allocations: 99.2 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.503e-06/0.4084, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002293/0.4086, allocations: 35.94 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,and1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001565/0.4088, allocations: 103.2 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003326/0.4091, allocations: 246.6 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4091, allocations: 0 / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.107e-05/0.4092, allocations: 28.23 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.4094, allocations: 21.23 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003208/0.4098, allocations: 171.2 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.41, allocations: 0.6926 MB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.575e-05/0.41, allocations: 4 kB / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.31e-05/0.4101, allocations: 19.42 kB / 1.065 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.4101, allocations: 0 / 1.065 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of Templates: time 0.004434/0.4145, allocations: 1.739 MB / 1.067 GB, free: 12.3 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_And.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.And.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches