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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001458/0.001458, allocations: 105 kB / 16.41 MB, free: 6.457 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.00155/0.00155, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.412/1.412, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.694/2.694, allocations: 461.9 MB / 0.7354 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 63.89 kB / 1.055 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.009/1.011, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002096/1.013, allocations: 0.6429 MB / 1.209 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001647/1.015, allocations: 1.19 MB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.982e-05/1.015, allocations: 0 / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.154e-05/1.015, allocations: 3.938 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.166e-05/1.015, allocations: 15.84 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007931/1.016, allocations: 216.9 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002825/1.016, allocations: 187.7 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/1.016, allocations: 15.97 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/1.016, allocations: 55.97 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/1.016, allocations: 67.77 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.21e-05/1.016, allocations: 16 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/1.017, allocations: 39.86 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.016e-05/1.017, allocations: 4 kB / 1.211 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.223e-05/1.017, allocations: 59.81 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000244/1.017, allocations: 147.7 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/1.017, allocations: 0 / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.593e-06/1.017, allocations: 0 / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.313e-06/1.017, allocations: 0 / 1.211 GB, free: 10.94 MB / 0.9356 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.0006139/1.018, allocations: 432.5 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/1.018, allocations: 15.97 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.045e-05/1.018, allocations: 12.84 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/1.018, allocations: 172.3 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/1.018, allocations: 4.375 kB / 1.212 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.614e-05/1.018, allocations: 20.38 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001136/1.018, allocations: 46.19 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/1.018, allocations: 192 / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/1.018, allocations: 3.938 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/1.018, allocations: 0 / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.495e-05/1.018, allocations: 15.98 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000522/1.019, allocations: 352.7 kB / 1.212 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.65e-05/1.019, allocations: 38.55 kB / 1.212 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.062e-05/1.019, allocations: 20.84 kB / 1.212 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-06/1.019, allocations: 0 / 1.212 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001438/1.019, allocations: 83.36 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/1.019, allocations: 0 / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0002635/1.019, allocations: 109.5 kB / 1.212 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/1.019, allocations: 51.41 kB / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/1.019, allocations: 121.8 kB / 1.212 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/1.019, allocations: 33.7 kB / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.002e-05/1.019, allocations: 96.42 kB / 1.213 GB, free: 9.133 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/1.02, allocations: 7.891 kB / 1.213 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/1.02, allocations: 49.69 kB / 1.213 GB, free: 9.07 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001281/1.02, allocations: 318.8 kB / 1.213 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/1.02, allocations: 63.91 kB / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/1.02, allocations: 96.25 kB / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001919/1.02, allocations: 159.5 kB / 1.213 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/1.02, allocations: 0 / 1.213 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004504/1.021, allocations: 264.8 kB / 1.213 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.052e-05/1.021, allocations: 69.28 kB / 1.214 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/1.021, allocations: 3.984 kB / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/1.021, allocations: 0 / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.342e-05/1.021, allocations: 4 kB / 1.214 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/1.021, allocations: 0 / 1.214 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/1.021, allocations: 63.91 kB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/1.021, allocations: 19.92 kB / 1.214 GB, free: 7.949 MB / 0.9356 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.0001164/1.021, allocations: 121.8 kB / 1.214 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.662e-05/1.021, allocations: 4 kB / 1.214 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.338e-05/1.021, allocations: 12.31 kB / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/1.021, allocations: 0 / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/1.021, allocations: 0 / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/1.021, allocations: 3.984 kB / 1.214 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/1.022, allocations: 185.5 kB / 1.214 GB, free: 7.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/1.022, allocations: 4 kB / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.038e-05/1.022, allocations: 4 kB / 1.214 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/1.022, allocations: 0 / 1.214 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/1.022, allocations: 0 / 1.214 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/1.022, allocations: 3.984 kB / 1.214 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/1.022, allocations: 0 / 1.214 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001454/1.022, allocations: 105.2 kB / 1.214 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.351e-05/1.022, allocations: 92.94 kB / 1.214 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/1.022, allocations: 4 kB / 1.214 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.225e-05/1.022, allocations: 4 kB / 1.214 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/1.022, allocations: 11.92 kB / 1.214 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/1.022, allocations: 0 / 1.214 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.992e-05/1.022, allocations: 87.28 kB / 1.214 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.8e-07/1.022, allocations: 0 / 1.214 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002557/1.022, allocations: 35.98 kB / 1.214 GB, free: 7.184 MB / 0.9356 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.0001594/1.022, allocations: 103.2 kB / 1.214 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003657/1.023, allocations: 258.7 kB / 1.215 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/1.023, allocations: 0 / 1.215 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.3e-05/1.023, allocations: 23.98 kB / 1.215 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/1.023, allocations: 20.11 kB / 1.215 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003781/1.024, allocations: 188.3 kB / 1.215 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/1.024, allocations: 0.6848 MB / 1.216 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/1.024, allocations: 11.44 kB / 1.216 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of SimCode: time 2.9e-07/1.024, allocations: 0 / 1.216 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of Templates: time 0.003444/1.027, allocations: 1.39 MB / 1.217 GB, free: 4.441 MB / 0.9356 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/jenkins1/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