Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.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.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00199/0.001989, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.002353/0.002353, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.477/1.477, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.83/2.83, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 60 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3482, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or): time 0.002273/0.3505, allocations: 0.6682 MB / 1.027 GB, free: 1.406 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.3522, allocations: 1.204 MB / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.227e-05/0.3523, allocations: 0 / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.031e-05/0.3524, allocations: 3.938 kB / 1.029 GB, free: 188 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.564e-05/0.3524, allocations: 7.938 kB / 1.029 GB, free: 180 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007677/0.3532, allocations: 217.6 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00027/0.3535, allocations: 191.7 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.3536, allocations: 8 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.3537, allocations: 71.88 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.3539, allocations: 55.86 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.818e-05/0.3539, allocations: 16 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.517e-05/0.354, allocations: 27.98 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.621e-05/0.3541, allocations: 19.91 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.075e-05/0.3542, allocations: 51.84 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.3544, allocations: 151.6 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3544, allocations: 7.938 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.963e-06/0.3544, allocations: 0 / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.3545, allocations: 0 / 1.029 GB, free: 15.38 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.0005869/0.3551, allocations: 430.7 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3551, allocations: 12.03 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.62e-05/0.3552, allocations: 12.83 kB / 1.03 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.3553, allocations: 164.4 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.3553, allocations: 4.375 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.313e-05/0.3554, allocations: 12.38 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.3555, allocations: 50.23 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3555, allocations: 192 / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.3555, allocations: 3.938 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3555, allocations: 4 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.486e-05/0.3556, allocations: 15.94 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005062/0.3561, allocations: 356.7 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.717e-05/0.3562, allocations: 38.44 kB / 1.03 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.156e-05/0.3562, allocations: 20.84 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.121e-05/0.3562, allocations: 0 / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001865/0.3564, allocations: 95.31 kB / 1.031 GB, free: 14 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.3564, allocations: 0 / 1.031 GB, free: 14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002835/0.3567, allocations: 97.58 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.3568, allocations: 55.41 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.3569, allocations: 113.8 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.3569, allocations: 33.7 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.4e-05/0.357, allocations: 92.12 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.357, allocations: 19.73 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.3571, allocations: 53.69 kB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3573, allocations: 322.8 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.3574, allocations: 59.97 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.3576, allocations: 84.27 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001907/0.3578, allocations: 159.6 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3578, allocations: 4 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004355/0.3582, allocations: 260.8 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.025e-05/0.3583, allocations: 67.86 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.3583, allocations: 4 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.3583, allocations: 4.125 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.669e-05/0.3584, allocations: 8 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3584, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.3587, allocations: 55.88 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.3587, allocations: 11.98 kB / 1.032 GB, free: 12.4 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,or1.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.0001303/0.3589, allocations: 133.7 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.346e-05/0.3589, allocations: 7.906 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.418e-05/0.3589, allocations: 16.36 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.3589, allocations: 0 / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.359, allocations: 0 / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.359, allocations: 0 / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.3591, allocations: 173.6 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3591, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.968e-06/0.3591, allocations: 3.984 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3591, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.3592, allocations: 7.938 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.3592, allocations: 7.938 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3592, allocations: 0 / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.3593, allocations: 116.9 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.3594, allocations: 81.02 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.3594, allocations: 4 kB / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.076e-05/0.3594, allocations: 4 kB / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.3595, allocations: 7.984 kB / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-06/0.3595, allocations: 0 / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.248e-05/0.3596, allocations: 95.27 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3596, allocations: 0 / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002576/0.3598, allocations: 36 kB / 1.033 GB, free: 11.62 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,or1.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.0001712/0.36, allocations: 103.2 kB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003396/0.3604, allocations: 246.6 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3604, allocations: 0 / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.932e-05/0.3604, allocations: 23.98 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.3607, allocations: 21.06 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003635/0.361, allocations: 158.8 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.3613, allocations: 0.6846 MB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.613e-05/0.3613, allocations: 4 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.3614, allocations: 11.44 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of SimCode: time 2.81e-07/0.3614, allocations: 4 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of Templates: time 0.004598/0.366, allocations: 1.845 MB / 1.036 GB, free: 8.465 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Or.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches