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.00993/0.00993, allocations: 104.9 kB / 15.74 MB, free: 6.039 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.001938/0.001938, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.596/1.596, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.029/3.029, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 67.89 kB / 1.054 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4226/0.4241, allocations: 157.4 MB / 1.208 GB, free: 9.609 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002776/0.4269, allocations: 0.6508 MB / 1.208 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002062/0.4291, allocations: 1.182 MB / 1.21 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.687e-05/0.4292, allocations: 3.938 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 6.022e-05/0.4292, allocations: 7.922 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001074/0.4294, allocations: 15.86 kB / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000919/0.4303, allocations: 218.4 kB / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000342/0.4306, allocations: 183.7 kB / 1.21 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.4308, allocations: 16 kB / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.4309, allocations: 67.88 kB / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.4311, allocations: 59.84 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.639e-05/0.4312, allocations: 16 kB / 1.21 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.4313, allocations: 31.92 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.916e-05/0.4313, allocations: 11.98 kB / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.918e-05/0.4314, allocations: 51.83 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002965/0.4317, allocations: 151.7 kB / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.4317, allocations: 7.938 kB / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.246e-06/0.4318, allocations: 0 / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.4318, allocations: 0 / 1.21 GB, free: 6.941 MB / 0.9669 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.0007728/0.4326, allocations: 438.6 kB / 1.211 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.4326, allocations: 8.625 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.397e-05/0.4327, allocations: 12.92 kB / 1.211 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.4329, allocations: 172.3 kB / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.4329, allocations: 4.375 kB / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.199e-05/0.433, allocations: 12.38 kB / 1.211 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.4331, allocations: 58.17 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4331, allocations: 192 / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.4332, allocations: 7.938 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.4332, allocations: 0 / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.637e-05/0.4333, allocations: 12 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006299/0.4339, allocations: 348.8 kB / 1.211 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.732e-05/0.434, allocations: 38.5 kB / 1.211 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.437e-05/0.434, allocations: 20.8 kB / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.4341, allocations: 0 / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.4343, allocations: 79.45 kB / 1.212 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.4343, allocations: 4 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0002994/0.4346, allocations: 101.6 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.4347, allocations: 59.28 kB / 1.212 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.4348, allocations: 117.8 kB / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/0.4349, allocations: 37.7 kB / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.21e-05/0.4349, allocations: 96.03 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.435, allocations: 11.81 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.4351, allocations: 45.69 kB / 1.212 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.4352, allocations: 326.8 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.4354, allocations: 55.97 kB / 1.212 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.4355, allocations: 96.25 kB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.4357, allocations: 151.6 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4358, allocations: 0 / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004524/0.4362, allocations: 261 kB / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.944e-05/0.4363, allocations: 71.42 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.4363, allocations: 3.938 kB / 1.213 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.749e-05/0.4364, allocations: 4 kB / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.616e-05/0.4364, allocations: 4.406 kB / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.4364, allocations: 4 kB / 1.213 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.4368, allocations: 55.84 kB / 1.213 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/0.4368, allocations: 11.98 kB / 1.213 GB, free: 3.961 MB / 0.9669 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.0001177/0.4369, allocations: 129.7 kB / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.437, allocations: 11.84 kB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.799e-05/0.437, allocations: 12.36 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.437, allocations: 3.984 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.437, allocations: 4 kB / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.437, allocations: 0 / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.4372, allocations: 173.6 kB / 1.213 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4372, allocations: 7.938 kB / 1.213 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.525e-05/0.4372, allocations: 7.984 kB / 1.213 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.4372, allocations: 0 / 1.213 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.4372, allocations: 0 / 1.213 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.4373, allocations: 4 kB / 1.213 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4373, allocations: 4.062 kB / 1.213 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001533/0.4374, allocations: 105.5 kB / 1.213 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.946e-05/0.4375, allocations: 85.02 kB / 1.213 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.4375, allocations: 4 kB / 1.213 GB, free: 3.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.206e-05/0.4375, allocations: 4 kB / 1.213 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.855e-05/0.4376, allocations: 7.984 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.4376, allocations: 4 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.615e-05/0.4377, allocations: 95.2 kB / 1.214 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4377, allocations: 0 / 1.214 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002486/0.4379, allocations: 32 kB / 1.214 GB, free: 3.18 MB / 0.9669 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.0001879/0.4381, allocations: 99.23 kB / 1.214 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003561/0.4385, allocations: 251.1 kB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4385, allocations: 0 / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.253e-05/0.4386, allocations: 31.95 kB / 1.214 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.4388, allocations: 18.92 kB / 1.214 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003684/0.4392, allocations: 154.9 kB / 1.214 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.4395, allocations: 0.6925 MB / 1.215 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.207e-05/0.4395, allocations: 8 kB / 1.215 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.329e-05/0.4395, allocations: 15.38 kB / 1.215 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of SimCode: time 3.91e-07/0.4395, allocations: 0 / 1.215 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of Templates: time 0.005339/0.4449, allocations: 1.842 MB / 1.217 GB, free: 16 kB / 0.9669 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