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.00222/0.002219, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.003064/0.003065, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.562/1.562, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.142/3.142, allocations: 472.7 MB / 0.7447 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 71.81 kB / 0.9114 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4918/0.4933, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002546/0.496, allocations: 0.714 MB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001811/0.4978, allocations: 1.205 MB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.888e-05/0.4978, allocations: 7.938 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.351e-05/0.4979, allocations: 3.938 kB / 1.069 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.283e-05/0.498, allocations: 7.922 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006091/0.4986, allocations: 202.8 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.4988, allocations: 151.7 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.4989, allocations: 15.94 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.273e-05/0.499, allocations: 63.88 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.464e-05/0.4991, allocations: 43.88 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.34e-05/0.4991, allocations: 8 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.93e-05/0.4992, allocations: 23.98 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.722e-05/0.4992, allocations: 15.92 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.966e-05/0.4993, allocations: 43.89 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.4996, allocations: 155.5 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.4996, allocations: 0 / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.32e-07/0.4996, allocations: 0 / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.4996, allocations: 0 / 1.07 GB, free: 8.246 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.0005491/0.5001, allocations: 439 kB / 1.071 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.5002, allocations: 8.031 kB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.77e-05/0.5003, allocations: 12.84 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.5004, allocations: 168.4 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.5004, allocations: 8.375 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.5005, allocations: 8.375 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001166/0.5006, allocations: 46.23 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.5006, allocations: 192 / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.5006, allocations: 7.938 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.5006, allocations: 0 / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.558e-05/0.5007, allocations: 15.94 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005193/0.5012, allocations: 356.7 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.773e-05/0.5013, allocations: 38.5 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.978e-05/0.5013, allocations: 16.86 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-06/0.5013, allocations: 0 / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001856/0.5015, allocations: 83.39 kB / 1.071 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.5015, allocations: 8 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0002515/0.5018, allocations: 101.6 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.5018, allocations: 55.41 kB / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.574e-05/0.5019, allocations: 121.8 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.502, allocations: 29.7 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.522e-05/0.5021, allocations: 99.97 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.5021, allocations: 7.906 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-05/0.5022, allocations: 53.62 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.5023, allocations: 326.8 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.5025, allocations: 55.97 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.5026, allocations: 92.25 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001925/0.5028, allocations: 159.6 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.5028, allocations: 0 / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004164/0.5032, allocations: 260.8 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.566e-05/0.5033, allocations: 67.39 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.5033, allocations: 0 / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.5033, allocations: 4 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.213e-05/0.5034, allocations: 3.938 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.5034, allocations: 4 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003582/0.5037, allocations: 63.95 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/0.5038, allocations: 11.98 kB / 1.073 GB, free: 5.262 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.0001043/0.5039, allocations: 127.5 kB / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.281e-05/0.5039, allocations: 4.469 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.722e-05/0.5039, allocations: 8.375 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.504, allocations: 4 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.504, allocations: 4 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.504, allocations: 0 / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.5041, allocations: 189.5 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5041, allocations: 4 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.829e-06/0.5041, allocations: 4 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.5041, allocations: 0 / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.5042, allocations: 0 / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.5042, allocations: 7.938 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5042, allocations: 0 / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.5043, allocations: 117.3 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.5044, allocations: 85.02 kB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.5044, allocations: 3.984 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.866e-05/0.5044, allocations: 0 / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.673e-05/0.5045, allocations: 4 kB / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.5045, allocations: 7.984 kB / 1.073 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.806e-05/0.5045, allocations: 87.28 kB / 1.073 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5045, allocations: 0 / 1.073 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002364/0.5048, allocations: 39.98 kB / 1.073 GB, free: 4.484 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.0001604/0.5049, allocations: 103.1 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003647/0.5053, allocations: 254.6 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5053, allocations: 0 / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.591e-05/0.5054, allocations: 23.98 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.5056, allocations: 18.62 kB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.506, allocations: 164.5 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.5062, allocations: 0.6872 MB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.206e-05/0.5063, allocations: 7.781 kB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.265e-05/0.5063, allocations: 15.42 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.5063, allocations: 4 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of Templates: time 0.004297/0.5106, allocations: 1.758 MB / 1.076 GB, free: 1.402 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