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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001435/0.001435, allocations: 99.56 kB / 16.27 MB, free: 5.977 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.00148/0.00148, allocations: 189.9 kB / 17.2 MB, free: 5.602 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.353/1.353, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.637/2.637, allocations: 482.4 MB / 0.7553 GB, free: 6.965 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 59 kB / 0.9245 GB, free: 8 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6521/0.654, allocations: 162.2 MB / 1.083 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001744/0.6558, allocations: 0.6508 MB / 1.084 GB, free: 1.262 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00115/0.6569, allocations: 1.187 MB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.301e-05/0.657, allocations: 0 / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.194e-05/0.657, allocations: 0.75 kB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.072e-05/0.6571, allocations: 14.66 kB / 1.085 GB, free: 392 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005283/0.6576, allocations: 207.1 kB / 1.085 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000202/0.6578, allocations: 185.3 kB / 1.085 GB, free: 212 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.658e-05/0.6579, allocations: 10.91 kB / 1.085 GB, free: 208 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.942e-05/0.658, allocations: 71.67 kB / 1.085 GB, free: 180 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.544e-05/0.6581, allocations: 50.02 kB / 1.085 GB, free: 160 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.715e-05/0.6581, allocations: 18.44 kB / 1.085 GB, free: 156 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.956e-05/0.6582, allocations: 29.56 kB / 1.085 GB, free: 152 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.972e-05/0.6583, allocations: 16.25 kB / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.121e-05/0.6583, allocations: 50.55 kB / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.6585, allocations: 158.9 kB / 1.085 GB, free: 60 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.6586, allocations: 0 / 1.085 GB, free: 60 kB / 0.8262 GB Notification: Performance of FrontEnd: time 8.81e-07/0.6586, allocations: 1.406 kB / 1.085 GB, free: 60 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.6586, allocations: 0 / 1.085 GB, free: 60 kB / 0.8262 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.0005434/0.6591, allocations: 432.7 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.6591, allocations: 10.52 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.318e-05/0.6592, allocations: 11.66 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.6593, allocations: 168.8 kB / 1.086 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.6594, allocations: 5.688 kB / 1.086 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.55e-05/0.6594, allocations: 13.97 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.6595, allocations: 53.61 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.6595, allocations: 0.875 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.6595, allocations: 4.688 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.6596, allocations: 0.7188 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.331e-05/0.6596, allocations: 17.77 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004729/0.6601, allocations: 354.3 kB / 1.087 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.977e-05/0.6602, allocations: 43.94 kB / 1.087 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.146e-05/0.6602, allocations: 15.12 kB / 1.087 GB, free: 15 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 9.298e-06/0.6602, allocations: 0.5938 kB / 1.087 GB, free: 15 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000141/0.6604, allocations: 81.69 kB / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.6604, allocations: 0 / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0002428/0.6606, allocations: 104.2 kB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.6607, allocations: 57.88 kB / 1.087 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.768e-05/0.6608, allocations: 116 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.46e-05/0.6608, allocations: 36.06 kB / 1.087 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.779e-05/0.6609, allocations: 93.28 kB / 1.087 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.6609, allocations: 10.61 kB / 1.087 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-05/0.661, allocations: 52.45 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.6612, allocations: 324 kB / 1.087 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.6613, allocations: 60.03 kB / 1.087 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.6615, allocations: 91.61 kB / 1.088 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002067/0.6617, allocations: 159.9 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.6617, allocations: 0 / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004449/0.6622, allocations: 265.6 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.829e-05/0.6622, allocations: 68.53 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.329e-06/0.6622, allocations: 5.312 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.6623, allocations: 2.625 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.856e-05/0.6623, allocations: 3.016 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.6623, allocations: 1.797 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003637/0.6627, allocations: 65.73 kB / 1.088 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.6627, allocations: 15.52 kB / 1.088 GB, free: 13.77 MB / 0.8419 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.0001135/0.6628, allocations: 123.6 kB / 1.088 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.216e-05/0.6628, allocations: 4.469 kB / 1.088 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.649e-05/0.6629, allocations: 10.48 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.6629, allocations: 1.281 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.6629, allocations: 0 / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.6629, allocations: 4.5 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/0.663, allocations: 183.8 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6631, allocations: 96 / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.676e-06/0.6631, allocations: 6.219 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.6631, allocations: 0.7031 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.6631, allocations: 2.453 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.6631, allocations: 0 / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.6631, allocations: 1.5 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001419/0.6632, allocations: 110.7 kB / 1.089 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.103e-05/0.6633, allocations: 88.16 kB / 1.089 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.6633, allocations: 1.859 kB / 1.089 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.318e-05/0.6634, allocations: 8.891 kB / 1.089 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.6634, allocations: 6.062 kB / 1.089 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-06/0.6634, allocations: 2.938 kB / 1.089 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.563e-05/0.6635, allocations: 94.86 kB / 1.089 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6635, allocations: 0 / 1.089 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002273/0.6637, allocations: 31.16 kB / 1.089 GB, free: 13.14 MB / 0.8419 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.0001318/0.6638, allocations: 104.6 kB / 1.089 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003589/0.6642, allocations: 249.8 kB / 1.089 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.6642, allocations: 0 / 1.089 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.39e-05/0.6643, allocations: 31.67 kB / 1.089 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.6645, allocations: 11.09 kB / 1.089 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003252/0.6648, allocations: 200.1 kB / 1.089 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.6652, allocations: 0.6856 MB / 1.09 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.139e-05/0.6652, allocations: 12.67 kB / 1.09 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.6652, allocations: 0 / 1.09 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.003234/0.6684, allocations: 1.398 MB / 1.091 GB, free: 11.84 MB / 0.8419 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=400 -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