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: "" <> 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.001376/0.001376, 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.001711/0.001711, allocations: 197.9 kB / 16.54 MB, free: 6.672 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.348/1.348, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.623/2.623, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 62.98 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.374, allocations: 157.4 MB / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002739/0.3768, allocations: 0.6508 MB / 1.054 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001835/0.3786, allocations: 1.201 MB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.679e-05/0.3787, allocations: 0 / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.321e-05/0.3788, allocations: 3.938 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.585e-05/0.3789, allocations: 11.88 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007756/0.3797, allocations: 210 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002691/0.38, allocations: 183.7 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.3801, allocations: 23.97 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.3802, allocations: 63.89 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.3803, allocations: 55.86 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.3804, allocations: 16 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.3805, allocations: 27.92 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.391e-05/0.3805, allocations: 8 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.624e-05/0.3806, allocations: 55.83 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.3809, allocations: 143.9 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3809, allocations: 3.938 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3809, allocations: 4 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.3809, allocations: 0 / 1.055 GB, free: 5.562 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.0006416/0.3816, allocations: 442.7 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.3816, allocations: 8.625 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.351e-05/0.3817, allocations: 34.75 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.918e-05/0.3818, allocations: 12.84 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.3819, allocations: 168.4 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.3819, allocations: 4.375 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.382, allocations: 8.375 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.3821, allocations: 58.19 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.3822, allocations: 3.938 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.3822, allocations: 3.984 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.3822, allocations: 0 / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.675e-05/0.3822, allocations: 12 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005792/0.3828, allocations: 364.6 kB / 1.057 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.3829, allocations: 38.5 kB / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.542e-05/0.383, allocations: 16.84 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.383, allocations: 4 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.3833, allocations: 75.47 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.3833, allocations: 0 / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002973/0.3836, allocations: 101.8 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/0.3836, allocations: 59.39 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.3838, allocations: 117.8 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.627e-05/0.3838, allocations: 33.7 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.3839, allocations: 88.12 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.3839, allocations: 19.8 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.384, allocations: 49.69 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3842, allocations: 318.8 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.3843, allocations: 63.95 kB / 1.058 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.3845, allocations: 88.64 kB / 1.058 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.3847, allocations: 159.6 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3847, allocations: 4 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004301/0.3851, allocations: 268.8 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.419e-05/0.3852, allocations: 71.33 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3852, allocations: 8.016 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.3853, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.19e-05/0.3853, allocations: 4 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.3853, allocations: 3.984 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003793/0.3857, allocations: 52.06 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.3857, allocations: 15.98 kB / 1.058 GB, free: 2.523 MB / 0.8106 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.0001189/0.3858, allocations: 131.5 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.801e-05/0.3859, allocations: 7.891 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.333e-05/0.3859, allocations: 12.38 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3859, allocations: 0 / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3859, allocations: 0 / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3859, allocations: 3.938 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001545/0.3861, allocations: 173.6 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3861, allocations: 4 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.109e-05/0.3861, allocations: 3.984 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3861, allocations: 0 / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.3861, allocations: 4 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.3862, allocations: 0 / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3862, allocations: 0 / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001642/0.3863, allocations: 116.9 kB / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.743e-05/0.3864, allocations: 81.02 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.3864, allocations: 8 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.996e-05/0.3864, allocations: 3.938 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.3865, allocations: 11.98 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.3865, allocations: 0 / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.795e-05/0.3866, allocations: 95.2 kB / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3866, allocations: 0 / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002423/0.3868, allocations: 32 kB / 1.059 GB, free: 1.754 MB / 0.8106 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.0004741/0.3873, allocations: 0.6476 MB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003598/0.3877, allocations: 250.7 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3877, allocations: 0 / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.808e-05/0.3877, allocations: 23.94 kB / 1.06 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.388, allocations: 17.33 kB / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.3901, allocations: 1.711 MB / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.3904, allocations: 0.6885 MB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.439e-05/0.3905, allocations: 4 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.655e-05/0.3905, allocations: 19.44 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of SimCode: time 1.022e-06/0.3905, allocations: 0.5625 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02437/0.4149, allocations: 2.864 MB / 1.065 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.096/7.511, allocations: 1.719 kB / 1.065 GB, free: 11.44 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