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.008051/0.008051, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.002054/0.002054, allocations: 191.9 kB / 16.79 MB, free: 5.809 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.412/1.412, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.764/2.764, allocations: 461.8 MB / 0.7348 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 61.97 kB / 0.8991 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3276, allocations: 157.4 MB / 1.053 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.0024/0.33, allocations: 0.7174 MB / 1.053 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001766/0.3318, allocations: 1.217 MB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.624e-05/0.3319, allocations: 0 / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.528e-05/0.332, allocations: 4 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.484e-05/0.3321, allocations: 3.938 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006675/0.3327, allocations: 199.9 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.3329, allocations: 147.8 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.3331, allocations: 8 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.3332, allocations: 67.81 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.3333, allocations: 43.88 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.504e-05/0.3334, allocations: 12 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.3335, allocations: 23.97 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.361e-05/0.3335, allocations: 11.94 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.431e-05/0.3336, allocations: 47.89 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.3338, allocations: 107.7 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3338, allocations: 4 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.42e-07/0.3338, allocations: 0 / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.3338, allocations: 0 / 1.055 GB, free: 5.629 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.0006123/0.3344, allocations: 439 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3345, allocations: 8.031 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.921e-05/0.3346, allocations: 16.83 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.3347, allocations: 168.3 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.3347, allocations: 8.375 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.3348, allocations: 12.31 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.3349, allocations: 54.22 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3349, allocations: 192 / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.335, allocations: 3.938 kB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.335, allocations: 8 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.299e-05/0.335, allocations: 12 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.3356, allocations: 348.7 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.755e-05/0.3357, allocations: 46.44 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.762e-05/0.3357, allocations: 12.86 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.3357, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.336, allocations: 83.45 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.336, allocations: 0 / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002635/0.3362, allocations: 105.5 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.3363, allocations: 55.39 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.3364, allocations: 117.8 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.3364, allocations: 29.7 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.262e-05/0.3365, allocations: 96.12 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.681e-05/0.3366, allocations: 15.81 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.3367, allocations: 49.69 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.3368, allocations: 326.8 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.337, allocations: 51.97 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.3371, allocations: 92.27 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.3373, allocations: 172 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3374, allocations: 0 / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000445/0.3378, allocations: 264.8 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.284e-05/0.3379, allocations: 71.33 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3379, allocations: 4.125 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.3379, allocations: 4 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.59e-05/0.3379, allocations: 0 / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.338, allocations: 4 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000377/0.3383, allocations: 51.92 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.3384, allocations: 12 kB / 1.058 GB, free: 2.637 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 0.0001311/0.3385, allocations: 137.6 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.808e-05/0.3385, allocations: 7.906 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.221e-05/0.3386, allocations: 8.375 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.3386, allocations: 0 / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3386, allocations: 0 / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.3386, allocations: 4 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.3388, allocations: 177.6 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3388, allocations: 0 / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.125e-05/0.3388, allocations: 4 kB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3388, allocations: 0 / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.3388, allocations: 4 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3388, allocations: 0 / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3388, allocations: 4 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.339, allocations: 109 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.507e-05/0.3391, allocations: 88.95 kB / 1.058 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.3391, allocations: 0 / 1.058 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.301e-05/0.3391, allocations: 3.984 kB / 1.058 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.3392, allocations: 8 kB / 1.058 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.3392, allocations: 8 kB / 1.058 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.497e-05/0.3393, allocations: 95.2 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3393, allocations: 0 / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002428/0.3395, allocations: 28 kB / 1.059 GB, free: 1.867 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.0001825/0.3397, allocations: 107.2 kB / 1.059 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003648/0.3401, allocations: 246.6 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3401, allocations: 0 / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.902e-05/0.3402, allocations: 32.23 kB / 1.059 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.3404, allocations: 22.56 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003962/0.3408, allocations: 194.7 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.3411, allocations: 0.6848 MB / 1.06 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.161e-05/0.3411, allocations: 11.44 kB / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of SimCode: time 8.11e-07/0.3411, allocations: 0 / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of Templates: time 0.003399/0.3446, allocations: 1.381 MB / 1.061 GB, free: 15.12 MB / 0.8262 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