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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, 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.001155/0.001156, allocations: 193.7 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.363/2.363, allocations: 390.3 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 67.89 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6608/0.6622, allocations: 140.4 MB / 0.9497 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001537/0.6637, allocations: 0.6568 MB / 0.9504 GB, free: 8.691 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.6648, allocations: 1.186 MB / 0.9515 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.706e-05/0.6648, allocations: 1.344 kB / 0.9515 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.415e-05/0.6648, allocations: 3.938 kB / 0.9515 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.62e-05/0.6649, allocations: 9.109 kB / 0.9515 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004974/0.6654, allocations: 220.2 kB / 0.9518 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001562/0.6656, allocations: 174.8 kB / 0.9519 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.843e-05/0.6657, allocations: 11.41 kB / 0.9519 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.134e-05/0.6657, allocations: 73.31 kB / 0.952 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.58e-05/0.6658, allocations: 48.75 kB / 0.9521 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.325e-05/0.6658, allocations: 15.22 kB / 0.9521 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.386e-05/0.6659, allocations: 33.25 kB / 0.9521 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.622e-05/0.666, allocations: 6.906 kB / 0.9521 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.557e-05/0.666, allocations: 58.7 kB / 0.9522 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.6662, allocations: 151.7 kB / 0.9523 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.6662, allocations: 1.5 kB / 0.9523 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6662, allocations: 0 / 0.9523 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.6662, allocations: 0 / 0.9523 GB, free: 7.234 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.0003536/0.6666, allocations: 433.2 kB / 0.9527 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.6666, allocations: 9.156 kB / 0.9527 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.866e-05/0.6666, allocations: 31.88 kB / 0.9528 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.582e-05/0.6667, allocations: 12.02 kB / 0.9528 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.825e-05/0.6667, allocations: 178.3 kB / 0.9529 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.6668, allocations: 9.406 kB / 0.9529 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.857e-05/0.6668, allocations: 9.031 kB / 0.953 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.558e-05/0.6669, allocations: 52.34 kB / 0.953 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.6669, allocations: 7.938 kB / 0.953 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.6669, allocations: 5.156 kB / 0.953 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.6669, allocations: 0 / 0.953 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.423e-05/0.667, allocations: 11.94 kB / 0.953 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003182/0.6673, allocations: 358.6 kB / 0.9534 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.934e-05/0.6673, allocations: 32.72 kB / 0.9534 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.338e-05/0.6674, allocations: 14.67 kB / 0.9534 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.934e-06/0.6674, allocations: 0 / 0.9534 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001172/0.6675, allocations: 88.31 kB / 0.9535 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.684e-06/0.6675, allocations: 9.062 kB / 0.9535 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0001947/0.6677, allocations: 98.83 kB / 0.9536 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.294e-05/0.6678, allocations: 57.78 kB / 0.9537 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.847e-05/0.6678, allocations: 118.4 kB / 0.9538 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.6678, allocations: 29.42 kB / 0.9538 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.827e-05/0.6679, allocations: 93.25 kB / 0.9539 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.245e-05/0.6679, allocations: 14.39 kB / 0.9539 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.72e-05/0.668, allocations: 51.75 kB / 0.954 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.605e-05/0.668, allocations: 325.8 kB / 0.9543 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.6681, allocations: 58.81 kB / 0.9543 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.6683, allocations: 93.25 kB / 0.9544 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.6684, allocations: 160.2 kB / 0.9546 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.6684, allocations: 1.344 kB / 0.9546 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003373/0.6688, allocations: 257.8 kB / 0.9548 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.6688, allocations: 71.27 kB / 0.9549 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.6688, allocations: 1.688 kB / 0.9549 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.6688, allocations: 1.219 kB / 0.9549 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.589e-05/0.6688, allocations: 2.406 kB / 0.9549 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.6689, allocations: 2.438 kB / 0.9549 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.6692, allocations: 67.08 kB / 0.9549 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.585e-05/0.6692, allocations: 8.688 kB / 0.955 GB, free: 4.711 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,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 6.33e-05/0.6693, allocations: 132.3 kB / 0.9551 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.212e-05/0.6693, allocations: 7.625 kB / 0.9551 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.997e-05/0.6693, allocations: 9.531 kB / 0.9551 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.6693, allocations: 5.344 kB / 0.9551 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.6693, allocations: 0 / 0.9551 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.6693, allocations: 0 / 0.9551 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.238e-05/0.6694, allocations: 180.9 kB / 0.9553 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.6694, allocations: 0 / 0.9553 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.995e-06/0.6694, allocations: 5.469 kB / 0.9553 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.6694, allocations: 1.375 kB / 0.9553 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-06/0.6695, allocations: 1.375 kB / 0.9553 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.6695, allocations: 0 / 0.9553 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.6695, allocations: 64 / 0.9553 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.6696, allocations: 132.5 kB / 0.9554 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.592e-05/0.6696, allocations: 79.52 kB / 0.9555 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.6696, allocations: 5.297 kB / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.804e-05/0.6696, allocations: 0 / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.289e-05/0.6697, allocations: 3.312 kB / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.6697, allocations: 2.438 kB / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.627e-05/0.6697, allocations: 91.64 kB / 0.9556 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6697, allocations: 0 / 0.9556 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002223/0.6699, allocations: 34.56 kB / 0.9556 GB, free: 4.047 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 (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.000266/0.6702, allocations: 0.655 MB / 0.9563 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002612/0.6705, allocations: 249.2 kB / 0.9565 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.6705, allocations: 0 / 0.9565 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.044e-05/0.6705, allocations: 32.55 kB / 0.9565 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.6708, allocations: 16.7 kB / 0.9565 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.6723, allocations: 1.71 MB / 0.9582 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.6724, allocations: 0.6911 MB / 0.9589 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.747e-05/0.6724, allocations: 8.156 kB / 0.9589 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.467e-05/0.6725, allocations: 22.8 kB / 0.9589 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.6725, allocations: 4 kB / 0.9589 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01773/0.6902, allocations: 2.854 MB / 0.9617 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.51/8.2, allocations: 5.828 kB / 0.9617 GB, free: 15.42 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > 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/jenkins1/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