Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 110.2 kB / 15.99 MB, free: 6.359 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.001532/0.001532, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.366/1.366, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.694/2.694, allocations: 469.4 MB / 0.7423 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001565, allocations: 67 kB / 0.9083 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3588, allocations: 159.1 MB / 1.064 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002208/0.3611, allocations: 0.7118 MB / 1.064 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001845/0.363, allocations: 1.194 MB / 1.066 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.609e-05/0.3631, allocations: 4 kB / 1.066 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.758e-05/0.3631, allocations: 3.938 kB / 1.066 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.104e-05/0.3632, allocations: 3.938 kB / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007812/0.364, allocations: 202.5 kB / 1.066 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003069/0.3643, allocations: 187.7 kB / 1.066 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.3645, allocations: 11.98 kB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.3646, allocations: 67.89 kB / 1.066 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.3647, allocations: 47.86 kB / 1.066 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.377e-05/0.3648, allocations: 16 kB / 1.066 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.779e-05/0.3649, allocations: 31.98 kB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.457e-05/0.3649, allocations: 11.92 kB / 1.066 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.828e-05/0.365, allocations: 51.89 kB / 1.066 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.3652, allocations: 107.8 kB / 1.066 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3652, allocations: 0 / 1.066 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.164e-06/0.3652, allocations: 4 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.3652, allocations: 0 / 1.066 GB, free: 12.71 MB / 0.8419 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.0005611/0.3658, allocations: 438.9 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.3658, allocations: 8.625 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.747e-05/0.3659, allocations: 16.78 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.366, allocations: 164.4 kB / 1.067 GB, free: 12 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.3661, allocations: 12.31 kB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.3661, allocations: 8.375 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001184/0.3662, allocations: 50.23 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.3662, allocations: 4.188 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.3662, allocations: 7.938 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.3663, allocations: 0 / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.074e-05/0.3663, allocations: 12 kB / 1.067 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005006/0.3668, allocations: 352.6 kB / 1.067 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.087e-05/0.3669, allocations: 42.5 kB / 1.067 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.927e-05/0.3669, allocations: 16.86 kB / 1.067 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.367, allocations: 7.984 kB / 1.067 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.3671, allocations: 83.39 kB / 1.067 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.3672, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0002571/0.3674, allocations: 105.6 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.3675, allocations: 55.41 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.3676, allocations: 113.8 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.3676, allocations: 33.7 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.425e-05/0.3677, allocations: 96.03 kB / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.3677, allocations: 11.91 kB / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.385e-05/0.3678, allocations: 45.69 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.919e-05/0.3679, allocations: 322.8 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.3681, allocations: 63.91 kB / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.3682, allocations: 96.62 kB / 1.068 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.3684, allocations: 155.7 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.3684, allocations: 4 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004033/0.3688, allocations: 264.9 kB / 1.069 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.481e-05/0.3689, allocations: 67.39 kB / 1.069 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.3689, allocations: 4 kB / 1.069 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.3689, allocations: 0 / 1.069 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.239e-05/0.369, allocations: 4 kB / 1.069 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.369, allocations: 3.938 kB / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.3693, allocations: 55.83 kB / 1.069 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.3694, allocations: 16.05 kB / 1.069 GB, free: 9.723 MB / 0.8419 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,nand1.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.0001038/0.3695, allocations: 129.7 kB / 1.069 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.588e-05/0.3695, allocations: 4 kB / 1.069 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.615e-05/0.3696, allocations: 8.312 kB / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3696, allocations: 4 kB / 1.069 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3696, allocations: 0 / 1.069 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.3696, allocations: 0 / 1.069 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.3697, allocations: 185.6 kB / 1.069 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3697, allocations: 0 / 1.069 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.237e-06/0.3697, allocations: 4 kB / 1.069 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3698, allocations: 0 / 1.069 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.3698, allocations: 4 kB / 1.069 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3698, allocations: 0 / 1.069 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3698, allocations: 0 / 1.069 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.3699, allocations: 116.9 kB / 1.069 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-05/0.37, allocations: 81.02 kB / 1.069 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.796e-05/0.37, allocations: 3.984 kB / 1.069 GB, free: 9.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.275e-05/0.37, allocations: 8 kB / 1.069 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.546e-05/0.3701, allocations: 7.938 kB / 1.069 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/0.3701, allocations: 7.984 kB / 1.069 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.332e-05/0.3701, allocations: 87.28 kB / 1.07 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3701, allocations: 0 / 1.07 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002392/0.3704, allocations: 32 kB / 1.07 GB, free: 8.957 MB / 0.8419 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,nand1.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.000163/0.3705, allocations: 107.2 kB / 1.07 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003426/0.3709, allocations: 254.7 kB / 1.07 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3709, allocations: 0 / 1.07 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.605e-05/0.371, allocations: 32.38 kB / 1.07 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.3712, allocations: 21.81 kB / 1.07 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00036/0.3716, allocations: 196.6 kB / 1.07 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.3718, allocations: 0.6846 MB / 1.071 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.247e-05/0.3718, allocations: 11.44 kB / 1.071 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of SimCode: time 3.4e-07/0.3718, allocations: 0 / 1.071 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of Templates: time 0.003179/0.375, allocations: 1.372 MB / 1.072 GB, free: 6.211 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches