Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001449/0.001449, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.561/1.561, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.959/2.959, allocations: 437 MB / 0.7104 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 71.88 kB / 0.8692 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7533/0.7553, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002162/0.7575, allocations: 0.6612 MB / 1.018 GB, free: 1.852 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001677/0.7592, allocations: 1.187 MB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.57e-05/0.7592, allocations: 0 / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.723e-05/0.7593, allocations: 3.938 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.138e-05/0.7594, allocations: 11.92 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006885/0.7601, allocations: 217.4 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002448/0.7603, allocations: 183.6 kB / 1.02 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.7605, allocations: 16 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.7606, allocations: 67.88 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.7607, allocations: 47.88 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 4.218e-05/0.7607, allocations: 16 kB / 1.02 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.05e-05/0.7608, allocations: 27.98 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.432e-05/0.7609, allocations: 11.98 kB / 1.02 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.761, allocations: 55.83 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.7612, allocations: 147.7 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.7612, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7612, allocations: 4 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.577e-05/0.7613, allocations: 0 / 1.02 GB, free: 15.86 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.0006445/0.7619, allocations: 444.6 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.762, allocations: 8.031 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.567e-05/0.762, allocations: 8.938 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001716/0.7622, allocations: 184.1 kB / 1.021 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.7622, allocations: 4.375 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.849e-05/0.7623, allocations: 12.38 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.7624, allocations: 46.25 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.7624, allocations: 8.188 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.7625, allocations: 7.922 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.7625, allocations: 0 / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.057e-05/0.7625, allocations: 12 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005325/0.763, allocations: 348.8 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.474e-05/0.7631, allocations: 38.5 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.983e-05/0.7632, allocations: 16.86 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.7632, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001854/0.7634, allocations: 91.34 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.7634, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0002507/0.7636, allocations: 97.61 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.7637, allocations: 59.39 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.7638, allocations: 117.8 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.7639, allocations: 37.7 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.35e-05/0.7639, allocations: 84.14 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.764, allocations: 23.78 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.116e-05/0.7641, allocations: 45.69 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.7642, allocations: 322.8 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.7644, allocations: 63.95 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.7645, allocations: 92.2 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.7648, allocations: 160 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.7648, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004588/0.7652, allocations: 268.8 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.354e-05/0.7653, allocations: 67.39 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.7653, allocations: 4 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.7653, allocations: 0 / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.512e-05/0.7654, allocations: 4 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.7654, allocations: 3.938 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003627/0.7657, allocations: 51.88 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.277e-05/0.7658, allocations: 20.08 kB / 1.023 GB, free: 12.86 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,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.0001177/0.7659, allocations: 125.7 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.809e-05/0.7659, allocations: 11.89 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.743e-05/0.766, allocations: 8.375 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.766, allocations: 4 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.766, allocations: 0 / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.766, allocations: 0 / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.7662, allocations: 173.6 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.7662, allocations: 3.984 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.136e-06/0.7662, allocations: 4 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.7662, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.7662, allocations: 8.062 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.7662, allocations: 0 / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7662, allocations: 0 / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.7665, allocations: 124.9 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.938e-05/0.7665, allocations: 77.11 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.7666, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.465e-05/0.7666, allocations: 12 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.7666, allocations: 3.984 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.7667, allocations: 4 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.992e-05/0.7667, allocations: 95.2 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7667, allocations: 0 / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002423/0.767, allocations: 32 kB / 1.023 GB, free: 12.09 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 (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.0001783/0.7672, allocations: 103.2 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004089/0.7676, allocations: 250.6 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.7676, allocations: 0 / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.479e-05/0.7677, allocations: 27.94 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000233/0.7679, allocations: 15.98 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003676/0.7683, allocations: 166.9 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.7686, allocations: 0.6885 MB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.642e-05/0.7687, allocations: 4 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.137e-05/0.7687, allocations: 7.438 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.7687, allocations: 7.938 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of Templates: time 0.005173/0.7739, allocations: 1.845 MB / 1.026 GB, free: 8.922 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches