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.0009144/0.0009145, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.007641/0.007641, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.571/1.571, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.885/2.885, allocations: 443.3 MB / 0.7175 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000413/0.000413, allocations: 11.28 kB / 0.8796 GB, free: 41.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4601/0.4605, allocations: 155.2 MB / 1.031 GB, free: 4.477 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001159/0.4617, allocations: 386.3 kB / 1.031 GB, free: 4.102 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002061/0.4638, allocations: 1.199 MB / 1.033 GB, free: 2.887 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.813e-05/0.4639, allocations: 4 kB / 1.033 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.4639, allocations: 3.938 kB / 1.033 GB, free: 2.879 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.464, allocations: 3.938 kB / 1.033 GB, free: 2.875 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008883/0.4649, allocations: 205.3 kB / 1.033 GB, free: 2.68 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.4652, allocations: 151.7 kB / 1.033 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.4654, allocations: 19.97 kB / 1.033 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.4656, allocations: 55.91 kB / 1.033 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.4657, allocations: 47.86 kB / 1.033 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/0.4658, allocations: 8 kB / 1.033 GB, free: 2.402 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.4659, allocations: 23.92 kB / 1.033 GB, free: 2.379 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.747e-05/0.4659, allocations: 11.98 kB / 1.033 GB, free: 2.367 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.466, allocations: 73.53 kB / 1.033 GB, free: 2.289 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.4663, allocations: 139.9 kB / 1.033 GB, free: 2.152 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.4663, allocations: 0 / 1.033 GB, free: 2.152 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.786e-06/0.4663, allocations: 0 / 1.033 GB, free: 2.152 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.4663, allocations: 3.938 kB / 1.033 GB, free: 2.148 MB / 0.7794 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.0005932/0.4669, allocations: 414.8 kB / 1.034 GB, free: 1.68 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/0.467, allocations: 8.031 kB / 1.034 GB, free: 1.672 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.22e-05/0.4671, allocations: 12.88 kB / 1.034 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.4672, allocations: 172.3 kB / 1.034 GB, free: 1.453 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.4673, allocations: 4.375 kB / 1.034 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.4673, allocations: 12.38 kB / 1.034 GB, free: 1.438 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.4675, allocations: 46.19 kB / 1.034 GB, free: 1.387 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.4675, allocations: 192 / 1.034 GB, free: 1.387 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.4675, allocations: 11.92 kB / 1.034 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.4675, allocations: 4 kB / 1.034 GB, free: 1.371 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.874e-05/0.4676, allocations: 12 kB / 1.034 GB, free: 1.359 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005955/0.4682, allocations: 352.7 kB / 1.034 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001068/0.4683, allocations: 38.5 kB / 1.034 GB, free: 0.918 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.389e-05/0.4683, allocations: 16.8 kB / 1.034 GB, free: 0.8984 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.4684, allocations: 0 / 1.034 GB, free: 0.8984 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002088/0.4686, allocations: 87.38 kB / 1.035 GB, free: 0.8008 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.4686, allocations: 0 / 1.035 GB, free: 0.8008 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003173/0.4689, allocations: 93.67 kB / 1.035 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.469, allocations: 63.33 kB / 1.035 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.4691, allocations: 117.8 kB / 1.035 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.4692, allocations: 33.7 kB / 1.035 GB, free: 476 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.637e-05/0.4692, allocations: 96.12 kB / 1.035 GB, free: 376 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.4693, allocations: 15.8 kB / 1.035 GB, free: 360 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/0.4693, allocations: 21.72 kB / 1.035 GB, free: 332 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4695, allocations: 322.8 kB / 1.035 GB, free: 0 / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.4696, allocations: 59.97 kB / 1.035 GB, free: 15.94 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.4698, allocations: 90.75 kB / 1.035 GB, free: 15.84 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.47, allocations: 159.7 kB / 1.036 GB, free: 15.66 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.47, allocations: 4 kB / 1.036 GB, free: 15.65 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004689/0.4705, allocations: 260.8 kB / 1.036 GB, free: 15.38 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.155e-05/0.4706, allocations: 67.39 kB / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.4706, allocations: 4.125 kB / 1.036 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.4706, allocations: 4 kB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.82e-05/0.4706, allocations: 7.938 kB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.4706, allocations: 0 / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000449/0.4711, allocations: 82.03 kB / 1.036 GB, free: 15.21 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.75e-05/0.4712, allocations: 11.98 kB / 1.036 GB, free: 15.2 MB / 0.795 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.0001458/0.4713, allocations: 133.6 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.962e-05/0.4713, allocations: 7.906 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.4714, allocations: 12.36 kB / 1.036 GB, free: 15.04 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-06/0.4714, allocations: 64 / 1.036 GB, free: 15.04 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.4714, allocations: 12 kB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4714, allocations: 0 / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.4716, allocations: 173.6 kB / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.4716, allocations: 4 kB / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.979e-06/0.4716, allocations: 3.938 kB / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.4716, allocations: 0 / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.4716, allocations: 4 kB / 1.036 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.4717, allocations: 4 kB / 1.036 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.4717, allocations: 0 / 1.036 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.4718, allocations: 112.9 kB / 1.036 GB, free: 14.66 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-05/0.4719, allocations: 81.11 kB / 1.036 GB, free: 14.56 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.4719, allocations: 7.984 kB / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.993e-05/0.472, allocations: 0 / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.472, allocations: 4 kB / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.472, allocations: 7.984 kB / 1.037 GB, free: 14.54 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.801e-05/0.4721, allocations: 95.16 kB / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.61e-07/0.4721, allocations: 0 / 1.037 GB, free: 14.45 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002554/0.4723, allocations: 35.98 kB / 1.037 GB, free: 14.41 MB / 0.795 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.0001984/0.4726, allocations: 99.25 kB / 1.037 GB, free: 14.31 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000389/0.4729, allocations: 250.6 kB / 1.037 GB, free: 14.04 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.473, allocations: 0 / 1.037 GB, free: 14.04 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.175e-05/0.473, allocations: 23.98 kB / 1.037 GB, free: 14.02 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.4733, allocations: 16.23 kB / 1.037 GB, free: 14 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/0.4737, allocations: 175.2 kB / 1.037 GB, free: 13.8 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.474, allocations: 0.6926 MB / 1.038 GB, free: 13.08 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.743e-05/0.4741, allocations: 4 kB / 1.038 GB, free: 13.08 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.379e-05/0.4741, allocations: 11.44 kB / 1.038 GB, free: 13.07 MB / 0.795 GB Notification: Performance of SimCode: time 3.9e-07/0.4741, allocations: 4 kB / 1.038 GB, free: 13.06 MB / 0.795 GB Notification: Performance of Templates: time 0.005642/0.4798, allocations: 1.757 MB / 1.04 GB, free: 11.33 MB / 0.795 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