Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.0008168/0.000817, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0009381/0.0009382, allocations: 172.7 kB / 15.95 MB, free: 208 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.463/1.463, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.69/2.69, allocations: 390.9 MB / 0.666 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003623, allocations: 12 kB / 0.8154 GB, free: 13.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8256/0.826, allocations: 142.4 MB / 0.9545 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.0008678/0.8269, allocations: 383 kB / 0.9548 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001761/0.8287, allocations: 1.16 MB / 0.9559 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.845e-05/0.8288, allocations: 0 / 0.9559 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.861e-05/0.8288, allocations: 0 / 0.9559 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.8e-05/0.8289, allocations: 14.48 kB / 0.956 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007966/0.8297, allocations: 197 kB / 0.9561 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001937/0.8299, allocations: 128.6 kB / 0.9563 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.83, allocations: 16.86 kB / 0.9563 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.8302, allocations: 58.38 kB / 0.9563 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001057/0.8303, allocations: 46.25 kB / 0.9564 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.8303, allocations: 7.344 kB / 0.9564 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.996e-05/0.8304, allocations: 27.66 kB / 0.9564 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.002e-05/0.8305, allocations: 6.469 kB / 0.9564 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.161e-05/0.8305, allocations: 37.08 kB / 0.9565 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001615/0.8307, allocations: 103.1 kB / 0.9566 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.8307, allocations: 5 kB / 0.9566 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.8307, allocations: 4 kB / 0.9566 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.8307, allocations: 0 / 0.9566 GB, free: 6.023 MB / 0.7169 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.0004443/0.8312, allocations: 408.7 kB / 0.957 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.8312, allocations: 9.469 kB / 0.957 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.587e-05/0.8313, allocations: 10.27 kB / 0.957 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.358e-05/0.8314, allocations: 178.2 kB / 0.9571 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.8314, allocations: 8.359 kB / 0.9572 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.8315, allocations: 9.188 kB / 0.9572 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001136/0.8316, allocations: 42.56 kB / 0.9572 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.8316, allocations: 4 kB / 0.9572 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.8316, allocations: 5.188 kB / 0.9572 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.8316, allocations: 1.281 kB / 0.9572 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.746e-05/0.8317, allocations: 22.94 kB / 0.9572 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000444/0.8321, allocations: 351.5 kB / 0.9576 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.531e-05/0.8322, allocations: 32.39 kB / 0.9576 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.945e-05/0.8323, allocations: 22.66 kB / 0.9576 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.8323, allocations: 0 / 0.9576 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001439/0.8324, allocations: 76.81 kB / 0.9577 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.883e-06/0.8324, allocations: 0 / 0.9577 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000262/0.8327, allocations: 119.2 kB / 0.9578 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.8328, allocations: 52.69 kB / 0.9579 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.798e-05/0.8329, allocations: 118.5 kB / 0.958 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.8329, allocations: 33.8 kB / 0.958 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.874e-05/0.833, allocations: 93.33 kB / 0.9581 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.833, allocations: 14.42 kB / 0.9581 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.919e-05/0.833, allocations: 3.875 kB / 0.9581 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.847e-05/0.8331, allocations: 316 kB / 0.9584 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.8332, allocations: 58.31 kB / 0.9585 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001442/0.8333, allocations: 103.1 kB / 0.9586 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/0.8335, allocations: 111.2 kB / 0.9587 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.8335, allocations: 0 / 0.9587 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003944/0.8339, allocations: 261 kB / 0.9589 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.123e-05/0.834, allocations: 71.67 kB / 0.959 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.834, allocations: 5.469 kB / 0.959 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.834, allocations: 9.578 kB / 0.959 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.352e-05/0.834, allocations: 5.422 kB / 0.959 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.834, allocations: 1.5 kB / 0.959 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003943/0.8344, allocations: 92.53 kB / 0.9591 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.8345, allocations: 13.02 kB / 0.9591 GB, free: 3.613 MB / 0.7169 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 9.216e-05/0.8346, allocations: 118.9 kB / 0.9592 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.409e-05/0.8346, allocations: 2.406 kB / 0.9592 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.734e-05/0.8346, allocations: 9.719 kB / 0.9592 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.8346, allocations: 5.484 kB / 0.9592 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.8347, allocations: 4 kB / 0.9592 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.8347, allocations: 0 / 0.9592 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.846e-05/0.8348, allocations: 176.9 kB / 0.9594 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.8348, allocations: 0 / 0.9594 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.849e-06/0.8348, allocations: 5.562 kB / 0.9594 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.8348, allocations: 1.812 kB / 0.9594 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.8348, allocations: 0 / 0.9594 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.8348, allocations: 1.75 kB / 0.9594 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.8348, allocations: 3.953 kB / 0.9594 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.835, allocations: 115.4 kB / 0.9595 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.265e-05/0.835, allocations: 82.83 kB / 0.9596 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.835, allocations: 5.766 kB / 0.9596 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.968e-05/0.835, allocations: 0 / 0.9596 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.838e-05/0.8351, allocations: 7.547 kB / 0.9596 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.8351, allocations: 7.547 kB / 0.9596 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.309e-05/0.8351, allocations: 86.47 kB / 0.9597 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8351, allocations: 0 / 0.9597 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002486/0.8354, allocations: 34.48 kB / 0.9598 GB, free: 2.969 MB / 0.7169 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.000168/0.8356, allocations: 107.5 kB / 0.9599 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000314/0.8359, allocations: 251.6 kB / 0.9601 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.8359, allocations: 0 / 0.9601 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.96e-05/0.836, allocations: 36.36 kB / 0.9601 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.8362, allocations: 17.11 kB / 0.9601 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000329/0.8365, allocations: 164.6 kB / 0.9603 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/0.8367, allocations: 0.6878 MB / 0.961 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.618e-05/0.8367, allocations: 7.906 kB / 0.961 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.988e-05/0.8368, allocations: 11.56 kB / 0.961 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.8368, allocations: 4 kB / 0.961 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of Templates: time 0.004991/0.8418, allocations: 1.677 MB / 0.9626 GB, free: 0.9258 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches