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.0008754/0.0008754, allocations: 91.52 kB / 15.06 MB, free: 1.078 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.0009404/0.0009404, allocations: 176.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.831/2.831, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003586, allocations: 12.78 kB / 0.9021 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3628, allocations: 159.6 MB / 1.058 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001009/0.3639, allocations: 377.8 kB / 1.058 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001747/0.3656, allocations: 1.178 MB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.317e-05/0.3657, allocations: 0 / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.886e-05/0.3657, allocations: 3.938 kB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.502e-05/0.3658, allocations: 7.922 kB / 1.06 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005935/0.3664, allocations: 193.3 kB / 1.06 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001726/0.3666, allocations: 131.8 kB / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.515e-05/0.3667, allocations: 11.98 kB / 1.06 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.956e-05/0.3668, allocations: 59.89 kB / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.404e-05/0.3669, allocations: 43.86 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.3669, allocations: 11.94 kB / 1.06 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.747e-05/0.367, allocations: 31.92 kB / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.783e-05/0.367, allocations: 3.984 kB / 1.06 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.796e-05/0.3671, allocations: 41.7 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.3672, allocations: 95.77 kB / 1.06 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3672, allocations: 4 kB / 1.06 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3673, allocations: 0 / 1.06 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.7e-06/0.3673, allocations: 0 / 1.06 GB, free: 3.109 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.0004468/0.3677, allocations: 418.7 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.3678, allocations: 16.02 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.903e-05/0.3678, allocations: 4 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.3679, allocations: 167 kB / 1.061 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.368, allocations: 4 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.185e-05/0.368, allocations: 11.95 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.3681, allocations: 57.67 kB / 1.061 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.3682, allocations: 0 / 1.061 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-06/0.3682, allocations: 0 / 1.061 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3682, allocations: 0 / 1.061 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.156e-05/0.3682, allocations: 15.94 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000481/0.3687, allocations: 356.7 kB / 1.061 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.881e-05/0.3688, allocations: 30.56 kB / 1.061 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.647e-05/0.3689, allocations: 20.86 kB / 1.061 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.3689, allocations: 0 / 1.061 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001716/0.3691, allocations: 87.38 kB / 1.061 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.785e-06/0.3691, allocations: 3.984 kB / 1.061 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002338/0.3693, allocations: 97.58 kB / 1.061 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.3694, allocations: 55.41 kB / 1.061 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.123e-05/0.3695, allocations: 125.9 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/0.3695, allocations: 33.7 kB / 1.062 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.136e-05/0.3696, allocations: 88.31 kB / 1.062 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.3696, allocations: 19.8 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-05/0.3696, allocations: 4 kB / 1.062 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3698, allocations: 322.8 kB / 1.062 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.3699, allocations: 67.84 kB / 1.062 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.3701, allocations: 88.27 kB / 1.062 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.3702, allocations: 115.4 kB / 1.062 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3702, allocations: 0 / 1.062 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004088/0.3706, allocations: 256.9 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.837e-05/0.3707, allocations: 73.27 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3707, allocations: 128 / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.3707, allocations: 8 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.584e-05/0.3708, allocations: 3.938 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.3708, allocations: 4 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003665/0.3712, allocations: 71.84 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.3712, allocations: 19.98 kB / 1.063 GB, free: 236 kB / 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,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,nand1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.3713, allocations: 125.7 kB / 1.063 GB, free: 100 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.179e-05/0.3713, allocations: 4.375 kB / 1.063 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.334e-05/0.3714, allocations: 16.36 kB / 1.063 GB, free: 80 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3714, allocations: 0 / 1.063 GB, free: 80 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3714, allocations: 4 kB / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3714, allocations: 0 / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.3716, allocations: 177.5 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3716, allocations: 64 / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.29e-05/0.3716, allocations: 7.984 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.3716, allocations: 7.938 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.3716, allocations: 0 / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3716, allocations: 0 / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3716, allocations: 0 / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000152/0.3718, allocations: 113.1 kB / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.915e-05/0.3718, allocations: 84.97 kB / 1.063 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.3718, allocations: 4 kB / 1.063 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.85e-05/0.3719, allocations: 0 / 1.063 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.141e-05/0.3719, allocations: 11.98 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.3719, allocations: 0 / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.134e-05/0.372, allocations: 91.27 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.372, allocations: 0 / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002336/0.3722, allocations: 28 kB / 1.063 GB, free: 15.47 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001842/0.3724, allocations: 115.2 kB / 1.063 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000345/0.3728, allocations: 242.6 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3728, allocations: 0 / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.769e-05/0.3729, allocations: 23.98 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002343/0.3731, allocations: 15.98 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003134/0.3734, allocations: 167.6 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.3737, allocations: 0.6888 MB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.681e-05/0.3738, allocations: 7.984 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.78e-05/0.3738, allocations: 11.44 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.3738, allocations: 4 kB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of Templates: time 0.004337/0.3781, allocations: 1.691 MB / 1.066 GB, free: 12.45 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