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.001508/0.001507, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001901/0.001901, allocations: 177.3 kB / 15.94 MB, free: 228 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.46/1.46, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.648/2.648, allocations: 436.5 MB / 0.7104 GB, free: 7.773 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006516/0.0006524, allocations: 16 kB / 0.8708 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9042/0.9049, allocations: 153.6 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.0009055/0.9058, allocations: 389 kB / 1.021 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001457/0.9073, allocations: 1.124 MB / 1.022 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.4e-05/0.9074, allocations: 4 kB / 1.022 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.481e-05/0.9074, allocations: 0 / 1.022 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.853e-05/0.9075, allocations: 7.984 kB / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006431/0.9081, allocations: 197.9 kB / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.9083, allocations: 83.89 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.627e-05/0.9084, allocations: 11.92 kB / 1.023 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.427e-05/0.9085, allocations: 55.95 kB / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.976e-05/0.9086, allocations: 47.86 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.464e-05/0.9086, allocations: 8 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.497e-05/0.9087, allocations: 23.92 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.9087, allocations: 12 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.22e-05/0.9088, allocations: 33.7 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.9089, allocations: 107.6 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.9089, allocations: 0 / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.537e-06/0.9089, allocations: 4 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.909, allocations: 0 / 1.023 GB, free: 15 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.0004682/0.9094, allocations: 408.5 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.9095, allocations: 15.98 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.181e-05/0.9095, allocations: 7.938 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.9097, allocations: 175 kB / 1.023 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.9097, allocations: 12 kB / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.9097, allocations: 12 kB / 1.023 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.9099, allocations: 45.64 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.9099, allocations: 0 / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.9099, allocations: 3.984 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.9099, allocations: 0 / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.311e-05/0.91, allocations: 15.98 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005146/0.9105, allocations: 368.6 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.819e-05/0.9106, allocations: 30.56 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-06/0.9106, allocations: 0 / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.9108, allocations: 83.41 kB / 1.024 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.9108, allocations: 0 / 1.024 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0002774/0.9111, allocations: 105.8 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.9111, allocations: 55.41 kB / 1.024 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.822e-05/0.9112, allocations: 122 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.9113, allocations: 29.7 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.9113, allocations: 96.22 kB / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.9114, allocations: 7.906 kB / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.725e-05/0.9114, allocations: 4 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.9115, allocations: 322.8 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.9116, allocations: 52.34 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.9118, allocations: 104.2 kB / 1.025 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001345/0.9119, allocations: 115.4 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.9119, allocations: 3.953 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000378/0.9123, allocations: 256.9 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.066e-05/0.9124, allocations: 73.27 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.9124, allocations: 7.938 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.9124, allocations: 0 / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.38e-05/0.9125, allocations: 4 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.9125, allocations: 3.938 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003971/0.9129, allocations: 89.88 kB / 1.025 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.9129, allocations: 8 kB / 1.025 GB, free: 12.13 MB / 0.7794 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.000104/0.913, allocations: 121.8 kB / 1.025 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.913, allocations: 7.953 kB / 1.025 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.9131, allocations: 12.38 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.9131, allocations: 4 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.9131, allocations: 0 / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.9131, allocations: 0 / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.9132, allocations: 173.6 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.9133, allocations: 0 / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.508e-06/0.9133, allocations: 3.953 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.9133, allocations: 0 / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.9133, allocations: 4 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.9133, allocations: 4 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.9133, allocations: 4.062 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001499/0.9135, allocations: 112.9 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.403e-05/0.9135, allocations: 85.02 kB / 1.026 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.9135, allocations: 7.953 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.998e-05/0.9136, allocations: 3.984 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.9136, allocations: 4 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.9136, allocations: 4 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.632e-05/0.9137, allocations: 95.2 kB / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9137, allocations: 4 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002351/0.9139, allocations: 28 kB / 1.026 GB, free: 11.37 MB / 0.7794 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.0001674/0.9141, allocations: 107.2 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003314/0.9144, allocations: 246.7 kB / 1.026 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.9144, allocations: 0 / 1.026 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.919e-05/0.9145, allocations: 27.94 kB / 1.026 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.9147, allocations: 12.23 kB / 1.026 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003795/0.9151, allocations: 175.2 kB / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.9154, allocations: 0.6887 MB / 1.027 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.846e-05/0.9155, allocations: 8 kB / 1.027 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.96e-05/0.9155, allocations: 11.44 kB / 1.027 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.9155, allocations: 0 / 1.027 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of Templates: time 0.004406/0.9199, allocations: 1.693 MB / 1.029 GB, free: 8.348 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches