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.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.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.001616/0.001617, allocations: 107.6 kB / 16.36 MB, free: 6.285 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.001731/0.001731, allocations: 193.2 kB / 17.29 MB, free: 5.863 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.569/1.569, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.678/2.678, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 65.97 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4118/0.4132, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001852/0.4151, allocations: 0.6621 MB / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.4165, allocations: 1.185 MB / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.108e-05/0.4165, allocations: 0 / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.334e-05/0.4166, allocations: 7.922 kB / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.586e-05/0.4167, allocations: 15.86 kB / 1.029 GB, free: 176 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006188/0.4173, allocations: 223.6 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.4175, allocations: 183.7 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.826e-05/0.4176, allocations: 12 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.27e-05/0.4177, allocations: 67.88 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.4178, allocations: 59.84 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.236e-05/0.4179, allocations: 15.94 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.177e-05/0.418, allocations: 35.92 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.288e-05/0.418, allocations: 15.92 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.09e-05/0.4181, allocations: 55.89 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001938/0.4183, allocations: 151.6 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.4183, allocations: 0 / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.724e-06/0.4183, allocations: 0 / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.586e-06/0.4183, 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.0005395/0.4189, allocations: 430.7 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.4189, allocations: 8.031 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.892e-05/0.419, allocations: 16.83 kB / 1.03 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.4191, allocations: 164.4 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.4191, allocations: 20.38 kB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.4192, allocations: 8.375 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.4193, allocations: 50.17 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.4193, allocations: 192 / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.4193, allocations: 3.938 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.4193, allocations: 4 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.205e-05/0.4194, allocations: 12 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000484/0.4198, allocations: 352.7 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.326e-05/0.4199, allocations: 46.44 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.668e-05/0.42, allocations: 12.86 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.42, allocations: 0 / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001627/0.4202, allocations: 79.45 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.984e-06/0.4202, allocations: 0 / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002303/0.4204, allocations: 105.5 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.4205, allocations: 63.39 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.4e-05/0.4205, allocations: 117.8 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.4206, allocations: 30.08 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.064e-05/0.4207, allocations: 92.12 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.4207, allocations: 7.812 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.429e-05/0.4208, allocations: 57.62 kB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.4209, allocations: 326.7 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.421, allocations: 55.97 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.4212, allocations: 96.25 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.4213, allocations: 155.6 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4213, allocations: 3.938 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003955/0.4217, allocations: 260.8 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.858e-05/0.4218, allocations: 71.39 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4218, allocations: 0 / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.4218, allocations: 4 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.835e-05/0.4219, allocations: 0 / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.4219, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.4222, allocations: 56.06 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.4222, 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,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 9.994e-05/0.4223, allocations: 129.7 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.4224, allocations: 11.89 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.4224, allocations: 12.36 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.4224, allocations: 3.938 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.4224, allocations: 0 / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.4224, allocations: 4 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.4225, allocations: 177.6 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4226, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.088e-05/0.4226, allocations: 7.984 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.4226, allocations: 64 / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.4226, allocations: 8 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.4226, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4226, allocations: 4.094 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001364/0.4227, allocations: 108.9 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.4228, allocations: 93.02 kB / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.4228, allocations: 0 / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.914e-05/0.4228, allocations: 0 / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.4229, allocations: 7.984 kB / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.4229, allocations: 7.938 kB / 1.032 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.424e-05/0.423, allocations: 91.27 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.423, allocations: 0 / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002407/0.4232, allocations: 32 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,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.0001383/0.4233, allocations: 111.2 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003204/0.4237, allocations: 246.6 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4237, allocations: 0 / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.205e-05/0.4237, allocations: 32.36 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.424, allocations: 16.12 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003793/0.4244, allocations: 155 kB / 1.033 GB, free: 11 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.4246, allocations: 0.6924 MB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.588e-05/0.4247, allocations: 4 kB / 1.034 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.216e-05/0.4247, allocations: 11.44 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.4247, allocations: 0 / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of Templates: time 0.004462/0.4292, allocations: 1.846 MB / 1.036 GB, free: 8.449 MB / 0.8106 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 -s cvode -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