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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001332/0.001332, allocations: 104.5 kB / 16.36 MB, free: 5.875 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.001388/0.001389, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.458/1.458, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.548/2.548, allocations: 442.6 MB / 0.7165 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001352, allocations: 60.47 kB / 0.8773 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.4023, allocations: 153 MB / 1.027 GB, free: 1.988 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.And): time 0.002057/0.4044, allocations: 0.6699 MB / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001556/0.406, allocations: 1.189 MB / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.286e-05/0.406, allocations: 0 / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.9e-05/0.4061, allocations: 3.938 kB / 1.029 GB, free: 116 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.537e-05/0.4062, allocations: 11.88 kB / 1.029 GB, free: 104 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000668/0.4068, allocations: 210.4 kB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002443/0.4071, allocations: 191.6 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.865e-05/0.4072, allocations: 8 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.504e-05/0.4073, allocations: 71.88 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.4074, allocations: 59.86 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.1e-05/0.4075, allocations: 16 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.345e-05/0.4076, allocations: 27.98 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.521e-05/0.4076, allocations: 15.91 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.767e-05/0.4077, allocations: 51.91 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002082/0.4079, allocations: 155.5 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.4079, allocations: 4 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4079, allocations: 4 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.057e-06/0.4079, allocations: 0 / 1.029 GB, free: 15.31 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.0005339/0.4085, allocations: 430.7 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.4085, allocations: 11.97 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.152e-05/0.4086, allocations: 16.83 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.4087, allocations: 164.4 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.4088, allocations: 4.375 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.83e-05/0.4088, allocations: 8.375 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.4089, allocations: 58.22 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.4089, allocations: 192 / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.4089, allocations: 7.875 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.4089, allocations: 0 / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.948e-05/0.409, allocations: 16 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004958/0.4095, allocations: 348.7 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.579e-05/0.4096, allocations: 42.5 kB / 1.03 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.733e-05/0.4096, allocations: 12.86 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.4096, allocations: 7.938 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001645/0.4098, allocations: 91.42 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.4098, allocations: 0 / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002372/0.4101, allocations: 97.58 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.4101, allocations: 55.41 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.429e-05/0.4102, allocations: 117.8 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.4102, allocations: 29.7 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.084e-05/0.4103, allocations: 92.12 kB / 1.031 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.4103, allocations: 23.73 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.827e-05/0.4104, allocations: 53.69 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.4106, allocations: 322.8 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.4107, allocations: 55.97 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.4108, allocations: 88.27 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000188/0.411, allocations: 164 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.411, allocations: 4 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003962/0.4114, allocations: 260.8 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.634e-05/0.4115, allocations: 67.39 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.4115, allocations: 4.062 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.4115, allocations: 4 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.06e-05/0.4116, allocations: 12.06 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.4116, allocations: 0 / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003129/0.4119, allocations: 47.94 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.231e-05/0.4119, allocations: 15.98 kB / 1.032 GB, free: 12.32 MB / 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.0001003/0.4121, allocations: 132.2 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.227e-05/0.4121, allocations: 7.906 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.698e-05/0.4121, allocations: 16.36 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.4121, allocations: 0 / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4121, allocations: 0 / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.4121, allocations: 0 / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.4123, allocations: 177.6 kB / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.4123, allocations: 0 / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.163e-05/0.4123, allocations: 7.922 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.4123, allocations: 0 / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.4123, allocations: 4 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4123, allocations: 0 / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4123, allocations: 0 / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.4125, allocations: 120.9 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.099e-05/0.4125, allocations: 81.02 kB / 1.032 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.4125, allocations: 0 / 1.032 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.826e-05/0.4126, allocations: 4 kB / 1.032 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.253e-05/0.4126, allocations: 7.984 kB / 1.032 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.4126, allocations: 4 kB / 1.032 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.626e-05/0.4127, allocations: 95.2 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.026e-06/0.4127, allocations: 4 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002345/0.413, allocations: 35.94 kB / 1.033 GB, free: 11.55 MB / 0.8106 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.0001605/0.4131, allocations: 111.2 kB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003364/0.4135, allocations: 238.6 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4135, allocations: 0 / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.775e-05/0.4135, allocations: 27.98 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.4138, allocations: 21.61 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003265/0.4141, allocations: 150.8 kB / 1.033 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.4144, allocations: 0.6884 MB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.495e-05/0.4144, allocations: 4 kB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.29e-05/0.4145, allocations: 15.44 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.4145, allocations: 0 / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of Templates: time 0.004449/0.4189, allocations: 1.845 MB / 1.036 GB, free: 8.387 MB / 0.8106 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 -s cvode -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/jenkins1/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