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.001365/0.001364, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 194 kB / 16.53 MB, free: 6.664 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.465/1.465, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.153/3.153, allocations: 472.6 MB / 0.7451 GB, free: 4.723 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 67.67 kB / 0.912 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4624/0.4638, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002334/0.4662, allocations: 0.6546 MB / 1.069 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.4677, allocations: 1.188 MB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.055e-05/0.4678, allocations: 0 / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.363e-05/0.4679, allocations: 3.938 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.835e-05/0.468, allocations: 11.86 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008359/0.4688, allocations: 221.5 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002897/0.4691, allocations: 183.8 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.4693, allocations: 4 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.4694, allocations: 67.89 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.4696, allocations: 51.86 kB / 1.071 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.356e-05/0.4697, allocations: 16 kB / 1.071 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.4698, allocations: 35.92 kB / 1.071 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.562e-05/0.4698, allocations: 15.92 kB / 1.071 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.4699, allocations: 51.89 kB / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002839/0.4702, allocations: 151.6 kB / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.4702, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.406e-06/0.4702, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.727e-06/0.4703, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 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.0007133/0.471, allocations: 439 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.471, allocations: 12.02 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.978e-05/0.4711, allocations: 16.84 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.4713, allocations: 164.4 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.4713, allocations: 12.31 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.4713, allocations: 12.38 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001355/0.4715, allocations: 50.17 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.4715, allocations: 192 / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.4715, allocations: 3.938 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.4715, allocations: 4 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.975e-05/0.4716, allocations: 12 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006246/0.4722, allocations: 356.7 kB / 1.072 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.4724, allocations: 38.5 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.492e-05/0.4724, allocations: 16.8 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.4724, allocations: 0 / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/0.4727, allocations: 83.45 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.4727, allocations: 0 / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0002535/0.4729, allocations: 109.5 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.473, allocations: 55.34 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.4731, allocations: 117.8 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.4731, allocations: 33.7 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.553e-05/0.4732, allocations: 96.03 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.4732, allocations: 3.906 kB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.542e-05/0.4733, allocations: 49.69 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.4734, allocations: 330.8 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.4736, allocations: 55.97 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.4737, allocations: 96.19 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.4739, allocations: 160.1 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.4739, allocations: 0 / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000389/0.4743, allocations: 264.7 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.699e-05/0.4744, allocations: 69.11 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.4744, allocations: 0 / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.4744, allocations: 4 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.667e-05/0.4745, allocations: 3.938 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.4745, allocations: 8.125 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003695/0.4748, allocations: 63.89 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.4749, allocations: 8 kB / 1.073 GB, free: 4.828 MB / 0.8262 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.0001174/0.475, allocations: 133.8 kB / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.341e-05/0.475, allocations: 4 kB / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.777e-05/0.4751, allocations: 12.38 kB / 1.074 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.4751, allocations: 0 / 1.074 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.4751, allocations: 0 / 1.074 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.4751, allocations: 4 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001442/0.4752, allocations: 181.5 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4752, allocations: 0 / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.084e-06/0.4753, allocations: 7.938 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.4753, allocations: 0 / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.4753, allocations: 4 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4753, allocations: 0 / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.4753, allocations: 4 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001372/0.4754, allocations: 105 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.532e-05/0.4755, allocations: 85.02 kB / 1.074 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.4755, allocations: 7.984 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.828e-05/0.4755, allocations: 0 / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.215e-05/0.4756, allocations: 7.984 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.4756, allocations: 4 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.37e-05/0.4757, allocations: 99.14 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4757, allocations: 4 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00023/0.4759, allocations: 28 kB / 1.074 GB, free: 4.059 MB / 0.8262 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.0001931/0.4761, allocations: 103.2 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003653/0.4765, allocations: 254.6 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4765, allocations: 3.938 kB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.474e-05/0.4765, allocations: 27.98 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.4768, allocations: 16.23 kB / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000352/0.4772, allocations: 165.5 kB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.4774, allocations: 0.6846 MB / 1.075 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.867e-05/0.4775, allocations: 7.781 kB / 1.075 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.197e-05/0.4775, allocations: 19.42 kB / 1.075 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.4775, allocations: 0 / 1.075 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of Templates: time 0.004783/0.4823, allocations: 1.836 MB / 1.077 GB, free: 0.8906 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/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