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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 219.6 kB / 22.99 MB, free: 4.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.289/3.289, allocations: 0.5107 GB / 0.8166 GB, free: 17.77 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 64.97 kB / 1.187 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3665, allocations: 181.9 MB / 1.365 GB, free: 13.55 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002128/0.3686, allocations: 0.649 MB / 1.365 GB, free: 12.89 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001842/0.3705, allocations: 1.202 MB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.444e-05/0.3705, allocations: 0 / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.278e-05/0.3706, allocations: 7.922 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.763e-05/0.3707, allocations: 15.88 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007543/0.3714, allocations: 214.9 kB / 1.367 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003177/0.3717, allocations: 175.8 kB / 1.367 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.714e-05/0.3718, allocations: 15.92 kB / 1.367 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.372, allocations: 63.95 kB / 1.367 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.3721, allocations: 63.72 kB / 1.367 GB, free: 11.14 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.177e-05/0.3722, allocations: 12 kB / 1.367 GB, free: 11.13 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.448e-05/0.3722, allocations: 35.92 kB / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.199e-05/0.3723, allocations: 4 kB / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.412e-05/0.3724, allocations: 55.88 kB / 1.367 GB, free: 11.04 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.00025/0.3726, allocations: 155.5 kB / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3726, allocations: 0 / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.644e-06/0.3726, allocations: 4 kB / 1.367 GB, free: 10.88 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.3726, allocations: 0 / 1.367 GB, free: 10.88 MB / 1.061 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.0005878/0.3732, allocations: 357.5 kB / 1.368 GB, free: 10.48 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.3732, allocations: 8.031 kB / 1.368 GB, free: 10.48 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.845e-05/0.3733, allocations: 12.89 kB / 1.368 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.3734, allocations: 110.5 kB / 1.368 GB, free: 10.33 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.3734, allocations: 4.375 kB / 1.368 GB, free: 10.33 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.858e-05/0.3735, allocations: 12.38 kB / 1.368 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001228/0.3736, allocations: 54.17 kB / 1.368 GB, free: 10.26 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.3736, allocations: 192 / 1.368 GB, free: 10.26 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.3736, allocations: 3.938 kB / 1.368 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3736, allocations: 4 kB / 1.368 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.367e-05/0.3737, allocations: 15.98 kB / 1.368 GB, free: 10.23 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004831/0.3742, allocations: 272.4 kB / 1.368 GB, free: 9.938 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.3743, allocations: 38.5 kB / 1.368 GB, free: 9.891 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.312e-05/0.3743, allocations: 16.8 kB / 1.368 GB, free: 9.871 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 6.582e-06/0.3743, allocations: 0 / 1.368 GB, free: 9.871 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002033/0.3745, allocations: 79.45 kB / 1.368 GB, free: 9.781 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.3745, allocations: 0 / 1.368 GB, free: 9.781 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0002699/0.3748, allocations: 109.5 kB / 1.368 GB, free: 9.668 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.243e-05/0.3748, allocations: 67.34 kB / 1.368 GB, free: 9.59 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.375, allocations: 114.1 kB / 1.368 GB, free: 9.469 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.375, allocations: 29.7 kB / 1.368 GB, free: 9.434 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.408e-05/0.3751, allocations: 97.14 kB / 1.369 GB, free: 9.336 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.978e-05/0.3751, allocations: 12 kB / 1.369 GB, free: 9.324 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.856e-05/0.3752, allocations: 53.62 kB / 1.369 GB, free: 9.266 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3753, allocations: 318.8 kB / 1.369 GB, free: 8.945 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001999/0.3755, allocations: 119.4 kB / 1.369 GB, free: 8.816 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.3757, allocations: 151.7 kB / 1.369 GB, free: 8.641 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.376, allocations: 163.5 kB / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.376, allocations: 7.938 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004929/0.3764, allocations: 324.2 kB / 1.37 GB, free: 8.098 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.384e-05/0.3765, allocations: 63.41 kB / 1.37 GB, free: 8.023 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.3765, allocations: 12.05 kB / 1.37 GB, free: 8.012 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.3765, allocations: 0 / 1.37 GB, free: 8.012 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.926e-05/0.3766, allocations: 4 kB / 1.37 GB, free: 8.008 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3766, allocations: 4.125 kB / 1.37 GB, free: 8.004 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003552/0.3769, allocations: 51.94 kB / 1.37 GB, free: 7.953 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.377, allocations: 11.98 kB / 1.37 GB, free: 7.941 MB / 1.061 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.0001206/0.3771, allocations: 130.4 kB / 1.37 GB, free: 7.805 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.3771, allocations: 3.953 kB / 1.37 GB, free: 7.801 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.62e-05/0.3771, allocations: 12.38 kB / 1.37 GB, free: 7.781 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3771, allocations: 7.938 kB / 1.37 GB, free: 7.773 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3771, allocations: 0 / 1.37 GB, free: 7.773 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3772, allocations: 3.984 kB / 1.37 GB, free: 7.77 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.3773, allocations: 125.2 kB / 1.37 GB, free: 7.617 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3773, allocations: 0 / 1.37 GB, free: 7.617 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.546e-06/0.3773, allocations: 0 / 1.37 GB, free: 7.617 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3773, allocations: 0 / 1.37 GB, free: 7.617 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3773, allocations: 4 kB / 1.37 GB, free: 7.613 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3773, allocations: 96 / 1.37 GB, free: 7.613 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3773, allocations: 4.25 kB / 1.37 GB, free: 7.609 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/0.3775, allocations: 117 kB / 1.37 GB, free: 7.477 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.238e-05/0.3775, allocations: 8 kB / 1.37 GB, free: 7.469 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.3775, allocations: 3.984 kB / 1.37 GB, free: 7.465 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.025e-05/0.3775, allocations: 3.938 kB / 1.37 GB, free: 7.461 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.3776, allocations: 8 kB / 1.37 GB, free: 7.453 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.3776, allocations: 11.92 kB / 1.37 GB, free: 7.441 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.828e-05/0.3776, allocations: 87.28 kB / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3776, allocations: 0 / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002495/0.3779, allocations: 31.94 kB / 1.37 GB, free: 7.324 MB / 1.061 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.0001565/0.378, allocations: 99.25 kB / 1.37 GB, free: 7.219 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004082/0.3784, allocations: 286.1 kB / 1.371 GB, free: 6.902 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3785, allocations: 0 / 1.371 GB, free: 6.902 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.323e-05/0.3785, allocations: 24 kB / 1.371 GB, free: 6.879 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.3788, allocations: 17.81 kB / 1.371 GB, free: 6.863 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004287/0.3792, allocations: 188.4 kB / 1.371 GB, free: 6.645 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.593e-05/0.3793, allocations: 71.58 kB / 1.371 GB, free: 6.555 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.634e-05/0.3793, allocations: 15.44 kB / 1.371 GB, free: 6.539 MB / 1.061 GB Notification: Performance of SimCode: time 4.51e-07/0.3793, allocations: 0 / 1.371 GB, free: 6.539 MB / 1.061 GB Notification: Performance of Templates: time 0.003601/0.3829, allocations: 1.382 MB / 1.372 GB, free: 5.176 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) [Timeout 800] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.160767380148172]