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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_latest_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.0009405/0.0009405, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.006933/0.006933, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.405/1.405, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.754/2.754, allocations: 462.6 MB / 0.7364 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.000358, allocations: 14.34 kB / 0.9029 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3228, allocations: 159.6 MB / 1.059 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001014/0.3238, allocations: 393.6 kB / 1.059 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001869/0.3257, allocations: 1.221 MB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.178e-05/0.3258, allocations: 0 / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.079e-05/0.3258, allocations: 0 / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.529e-05/0.3259, allocations: 7.922 kB / 1.06 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006818/0.3266, allocations: 195.7 kB / 1.061 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.3268, allocations: 155.7 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.921e-05/0.3269, allocations: 8 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001295/0.3271, allocations: 67.81 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.895e-05/0.3272, allocations: 39.88 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.309e-05/0.3272, allocations: 8 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.719e-05/0.3273, allocations: 23.98 kB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.454e-05/0.3273, allocations: 15.92 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.899e-05/0.3274, allocations: 65.59 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002148/0.3277, allocations: 151.8 kB / 1.061 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3277, allocations: 4 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3277, allocations: 0 / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.3277, allocations: 0 / 1.061 GB, free: 2.57 MB / 0.8106 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.0004886/0.3282, allocations: 410.8 kB / 1.061 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.3282, allocations: 11.97 kB / 1.061 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.872e-05/0.3283, allocations: 30.75 kB / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.368e-05/0.3283, allocations: 8.938 kB / 1.062 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.3285, allocations: 180.2 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.3285, allocations: 4.375 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/0.3285, allocations: 12.38 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.3286, allocations: 50.25 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3287, allocations: 7.922 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.3287, allocations: 0 / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3287, allocations: 0 / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.282e-05/0.3287, allocations: 12 kB / 1.062 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000481/0.3292, allocations: 360.6 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.804e-05/0.3293, allocations: 34.56 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.821e-05/0.3293, allocations: 12.86 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.3294, allocations: 4 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001873/0.3295, allocations: 83.38 kB / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.3296, allocations: 0 / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002361/0.3298, allocations: 109.5 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.3299, allocations: 59.41 kB / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.33, allocations: 121.8 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.33, allocations: 29.7 kB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.633e-05/0.3301, allocations: 88.14 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.3301, allocations: 15.8 kB / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-05/0.3302, allocations: 21.72 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3303, allocations: 322.8 kB / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.3304, allocations: 59.97 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.3305, allocations: 102.4 kB / 1.063 GB, free: 212 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.3307, allocations: 159.6 kB / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3307, allocations: 0 / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004368/0.3312, allocations: 260.9 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.666e-05/0.3313, allocations: 71.39 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/0.3313, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.3313, allocations: 480 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.066e-05/0.3313, allocations: 4 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3313, allocations: 3.984 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003969/0.3317, allocations: 76.06 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.3318, allocations: 11.98 kB / 1.064 GB, free: 15.57 MB / 0.8262 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.0001194/0.3319, allocations: 133.6 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.337e-05/0.3319, allocations: 11.91 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.3319, allocations: 12.38 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.332, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.332, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.332, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.3321, allocations: 181.5 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3321, allocations: 4 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.887e-06/0.3321, allocations: 0 / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3321, allocations: 0 / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.3322, allocations: 8 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3322, allocations: 4 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3322, allocations: 3.984 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.3323, allocations: 109.2 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.271e-05/0.3324, allocations: 81.09 kB / 1.064 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.3324, allocations: 4 kB / 1.064 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.981e-05/0.3324, allocations: 4 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.225e-05/0.3324, allocations: 3.984 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.3325, allocations: 4 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.995e-05/0.3325, allocations: 91.28 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3325, allocations: 0 / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002288/0.3328, allocations: 35.98 kB / 1.064 GB, free: 14.8 MB / 0.8262 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.0004536/0.3332, allocations: 0.6553 MB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003352/0.3336, allocations: 246.7 kB / 1.065 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3336, allocations: 0 / 1.065 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.425e-05/0.3336, allocations: 27.92 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.3338, allocations: 18.23 kB / 1.065 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.3357, allocations: 1.722 MB / 1.067 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.3359, allocations: 0.6888 MB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.115e-05/0.336, allocations: 7.984 kB / 1.068 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.336, allocations: 19.44 kB / 1.068 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.336, allocations: 0 / 1.068 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01246/0.3485, allocations: 2.607 MB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/0.3487, allocations: 207.6 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/2.048, allocations: 0 / 1.07 GB, free: 8.504 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > 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