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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.00756/0.00756, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001435/0.001436, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.891/2.891, allocations: 472.6 MB / 0.7453 GB, free: 0.5273 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 63.89 kB / 1.069 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.077/1.078, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001828/1.08, allocations: 0.6469 MB / 1.226 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001653/1.082, allocations: 1.194 MB / 1.227 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5e-05/1.082, allocations: 0 / 1.227 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.169e-05/1.082, allocations: 3.938 kB / 1.227 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.829e-05/1.082, allocations: 7.875 kB / 1.227 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009356/1.083, allocations: 219.2 kB / 1.228 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002703/1.083, allocations: 191.6 kB / 1.228 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/1.083, allocations: 4 kB / 1.228 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/1.084, allocations: 67.89 kB / 1.228 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/1.084, allocations: 59.84 kB / 1.228 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.738e-05/1.084, allocations: 16 kB / 1.228 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.015e-05/1.084, allocations: 31.98 kB / 1.228 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.353e-05/1.084, allocations: 11.97 kB / 1.228 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.776e-05/1.084, allocations: 59.83 kB / 1.228 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002666/1.084, allocations: 155.1 kB / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/1.084, allocations: 3.938 kB / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.613e-06/1.084, allocations: 0 / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.701e-06/1.084, allocations: 3.938 kB / 1.228 GB, free: 10.88 MB / 0.9512 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.000592/1.085, allocations: 435.6 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/1.085, allocations: 12.03 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.932e-05/1.085, allocations: 12.89 kB / 1.229 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/1.085, allocations: 168.3 kB / 1.229 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/1.085, allocations: 8.375 kB / 1.229 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/1.085, allocations: 12.38 kB / 1.229 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/1.085, allocations: 50.23 kB / 1.229 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/1.085, allocations: 192 / 1.229 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/1.085, allocations: 3.938 kB / 1.229 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/1.085, allocations: 0 / 1.229 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.267e-05/1.085, allocations: 19.92 kB / 1.229 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005354/1.086, allocations: 348.8 kB / 1.229 GB, free: 9.672 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 9.515e-05/1.086, allocations: 38.5 kB / 1.229 GB, free: 9.625 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.745e-05/1.086, allocations: 16.86 kB / 1.229 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-06/1.086, allocations: 96 / 1.229 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/1.086, allocations: 87.28 kB / 1.229 GB, free: 9.508 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/1.086, allocations: 0 / 1.229 GB, free: 9.508 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0002862/1.087, allocations: 105.6 kB / 1.229 GB, free: 9.398 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/1.087, allocations: 55.41 kB / 1.23 GB, free: 9.332 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/1.087, allocations: 117.8 kB / 1.23 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/1.087, allocations: 33.69 kB / 1.23 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.092e-05/1.087, allocations: 96.09 kB / 1.23 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/1.087, allocations: 11.91 kB / 1.23 GB, free: 9.059 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.793e-05/1.087, allocations: 49.69 kB / 1.23 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001618/1.087, allocations: 322.8 kB / 1.23 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/1.087, allocations: 59.97 kB / 1.23 GB, free: 8.621 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/1.088, allocations: 99.38 kB / 1.23 GB, free: 8.512 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/1.088, allocations: 163.6 kB / 1.23 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/1.088, allocations: 0 / 1.23 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004563/1.088, allocations: 260.9 kB / 1.231 GB, free: 8.051 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.524e-05/1.088, allocations: 71.39 kB / 1.231 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/1.088, allocations: 3.938 kB / 1.231 GB, free: 7.965 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/1.089, allocations: 4 kB / 1.231 GB, free: 7.961 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.91e-05/1.089, allocations: 3.938 kB / 1.231 GB, free: 7.957 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/1.089, allocations: 4 kB / 1.231 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/1.089, allocations: 59.94 kB / 1.231 GB, free: 7.895 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/1.089, allocations: 16 kB / 1.231 GB, free: 7.879 MB / 0.9512 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.0001284/1.089, allocations: 126.6 kB / 1.231 GB, free: 7.746 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/1.089, allocations: 7.953 kB / 1.231 GB, free: 7.738 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.905e-05/1.089, allocations: 8.375 kB / 1.231 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/1.089, allocations: 0 / 1.231 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/1.089, allocations: 0 / 1.231 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/1.089, allocations: 0 / 1.231 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/1.089, allocations: 181.6 kB / 1.231 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/1.089, allocations: 0 / 1.231 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.402e-05/1.089, allocations: 7.938 kB / 1.231 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/1.089, allocations: 0 / 1.231 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/1.089, allocations: 0 / 1.231 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/1.089, allocations: 0 / 1.231 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/1.089, allocations: 0 / 1.231 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/1.09, allocations: 113 kB / 1.231 GB, free: 7.363 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.757e-05/1.09, allocations: 85.11 kB / 1.231 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/1.09, allocations: 0 / 1.231 GB, free: 7.262 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.1e-05/1.09, allocations: 3.984 kB / 1.231 GB, free: 7.258 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.411e-05/1.09, allocations: 8 kB / 1.231 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/1.09, allocations: 4 kB / 1.231 GB, free: 7.246 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.33e-05/1.09, allocations: 91.2 kB / 1.231 GB, free: 7.156 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/1.09, allocations: 4 kB / 1.231 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002239/1.09, allocations: 24 kB / 1.232 GB, free: 7.129 MB / 0.9512 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.0002/1.09, allocations: 127.1 kB / 1.232 GB, free: 6.996 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000373/1.091, allocations: 246.6 kB / 1.232 GB, free: 6.73 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.091, allocations: 0 / 1.232 GB, free: 6.73 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.048e-05/1.091, allocations: 24 kB / 1.232 GB, free: 6.707 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/1.091, allocations: 17.89 kB / 1.232 GB, free: 6.691 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004097/1.091, allocations: 162.8 kB / 1.232 GB, free: 6.504 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/1.092, allocations: 0.6962 MB / 1.233 GB, free: 5.781 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.958e-05/1.092, allocations: 4 kB / 1.233 GB, free: 5.777 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.576e-05/1.092, allocations: 19.38 kB / 1.233 GB, free: 5.758 MB / 0.9512 GB Notification: Performance of SimCode: time 2.6e-07/1.092, allocations: 0 / 1.233 GB, free: 5.758 MB / 0.9512 GB Notification: Performance of Templates: time 0.004761/1.097, allocations: 1.843 MB / 1.235 GB, free: 3.938 MB / 0.9512 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/jenkins/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